Class SwaggerXml
java.lang.Object
com.azure.resourcemanager.logic.models.SwaggerXml
The Swagger XML.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the attribute property: Indicates whether the property should be an attribute instead of an element.Get the extensions property: The vendor extensions.name()
Get the name property: The xml element or attribute name.Get the namespace property: The xml namespace.prefix()
Get the prefix property: The name prefix.void
validate()
Validates the instance.withAttribute
(Boolean attribute) Set the attribute property: Indicates whether the property should be an attribute instead of an element.withExtensions
(Map<String, Object> extensions) Set the extensions property: The vendor extensions.Set the name property: The xml element or attribute name.withNamespace
(String namespace) Set the namespace property: The xml namespace.withPrefix
(String prefix) Set the prefix property: The name prefix.withWrapped
(Boolean wrapped) Set the wrapped property: Indicates whether the array elements are wrapped in a container element.wrapped()
Get the wrapped property: Indicates whether the array elements are wrapped in a container element.
-
Constructor Details
-
SwaggerXml
public SwaggerXml()Creates an instance of SwaggerXml class.
-
-
Method Details
-
name
Get the name property: The xml element or attribute name.- Returns:
- the name value.
-
withName
Set the name property: The xml element or attribute name.- Parameters:
name
- the name value to set.- Returns:
- the SwaggerXml object itself.
-
namespace
Get the namespace property: The xml namespace.- Returns:
- the namespace value.
-
withNamespace
Set the namespace property: The xml namespace.- Parameters:
namespace
- the namespace value to set.- Returns:
- the SwaggerXml object itself.
-
prefix
Get the prefix property: The name prefix.- Returns:
- the prefix value.
-
withPrefix
Set the prefix property: The name prefix.- Parameters:
prefix
- the prefix value to set.- Returns:
- the SwaggerXml object itself.
-
attribute
Get the attribute property: Indicates whether the property should be an attribute instead of an element.- Returns:
- the attribute value.
-
withAttribute
Set the attribute property: Indicates whether the property should be an attribute instead of an element.- Parameters:
attribute
- the attribute value to set.- Returns:
- the SwaggerXml object itself.
-
wrapped
Get the wrapped property: Indicates whether the array elements are wrapped in a container element.- Returns:
- the wrapped value.
-
withWrapped
Set the wrapped property: Indicates whether the array elements are wrapped in a container element.- Parameters:
wrapped
- the wrapped value to set.- Returns:
- the SwaggerXml object itself.
-
extensions
Get the extensions property: The vendor extensions.- Returns:
- the extensions value.
-
withExtensions
Set the extensions property: The vendor extensions.- Parameters:
extensions
- the extensions value to set.- Returns:
- the SwaggerXml object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-