SwaggerXml Class
- java.
lang. Object - com.
azure. resourcemanager. logic. models. SwaggerXml
- com.
Implements
public final class SwaggerXml
implements JsonSerializable<SwaggerXml>
The Swagger XML.
Constructor Summary
| Constructor | Description |
|---|---|
| SwaggerXml() |
Creates an instance of Swagger |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
attribute()
Get the attribute property: Indicates whether the property should be an attribute instead of an element. |
| Map<String,Object> |
extensions()
Get the extensions property: The vendor extensions. |
|
static
Swagger |
fromJson(JsonReader jsonReader)
Reads an instance of Swagger |
| String |
name()
Get the name property: The xml element or attribute name. |
| String |
namespace()
Get the namespace property: The xml namespace. |
| String |
prefix()
Get the prefix property: The name prefix. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Swagger |
withAttribute(Boolean attribute)
Set the attribute property: Indicates whether the property should be an attribute instead of an element. |
|
Swagger |
withExtensions(Map<String,Object> extensions)
Set the extensions property: The vendor extensions. |
|
Swagger |
withName(String name)
Set the name property: The xml element or attribute name. |
|
Swagger |
withNamespace(String namespace)
Set the namespace property: The xml namespace. |
|
Swagger |
withPrefix(String prefix)
Set the prefix property: The name prefix. |
|
Swagger |
withWrapped(Boolean wrapped)
Set the wrapped property: Indicates whether the array elements are wrapped in a container element. |
| Boolean |
wrapped()
Get the wrapped property: Indicates whether the array elements are wrapped in a container element. |
Methods inherited from java.lang.Object
Constructor Details
SwaggerXml
public SwaggerXml()
Creates an instance of SwaggerXml class.
Method Details
attribute
public Boolean attribute()
Get the attribute property: Indicates whether the property should be an attribute instead of an element.
Returns:
extensions
public Map<String,Object> extensions()
Get the extensions property: The vendor extensions.
Returns:
fromJson
public static SwaggerXml fromJson(JsonReader jsonReader)
Reads an instance of SwaggerXml from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The xml element or attribute name.
Returns:
namespace
public String namespace()
Get the namespace property: The xml namespace.
Returns:
prefix
public String prefix()
Get the prefix property: The name prefix.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAttribute
public SwaggerXml withAttribute(Boolean attribute)
Set the attribute property: Indicates whether the property should be an attribute instead of an element.
Parameters:
Returns:
withExtensions
public SwaggerXml withExtensions(Map<String,Object> extensions)
Set the extensions property: The vendor extensions.
Parameters:
Returns:
withName
public SwaggerXml withName(String name)
Set the name property: The xml element or attribute name.
Parameters:
Returns:
withNamespace
public SwaggerXml withNamespace(String namespace)
Set the namespace property: The xml namespace.
Parameters:
Returns:
withPrefix
public SwaggerXml withPrefix(String prefix)
Set the prefix property: The name prefix.
Parameters:
Returns:
withWrapped
public SwaggerXml withWrapped(Boolean wrapped)
Set the wrapped property: Indicates whether the array elements are wrapped in a container element.
Parameters:
Returns:
wrapped
public Boolean wrapped()
Get the wrapped property: Indicates whether the array elements are wrapped in a container element.
Returns: