Share via


SwaggerXml Class

  • java.lang.Object
    • com.azure.resourcemanager.logic.models.SwaggerXml

Implements

public final class SwaggerXml
implements JsonSerializable<SwaggerXml>

The Swagger XML.

Constructor Summary

Constructor Description
SwaggerXml()

Creates an instance of SwaggerXml class.

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 SwaggerXml fromJson(JsonReader jsonReader)

Reads an instance of SwaggerXml from the JsonReader.

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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SwaggerXml withAttribute(Boolean attribute)

Set the attribute property: Indicates whether the property should be an attribute instead of an element.

SwaggerXml withExtensions(Map<String,Object> extensions)

Set the extensions property: The vendor extensions.

SwaggerXml withName(String name)

Set the name property: The xml element or attribute name.

SwaggerXml withNamespace(String namespace)

Set the namespace property: The xml namespace.

SwaggerXml withPrefix(String prefix)

Set the prefix property: The name prefix.

SwaggerXml 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:

the attribute value.

extensions

public Map<String,Object> extensions()

Get the extensions property: The vendor extensions.

Returns:

the extensions value.

fromJson

public static SwaggerXml fromJson(JsonReader jsonReader)

Reads an instance of SwaggerXml from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SwaggerXml if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SwaggerXml.

name

public String name()

Get the name property: The xml element or attribute name.

Returns:

the name value.

namespace

public String namespace()

Get the namespace property: The xml namespace.

Returns:

the namespace value.

prefix

public String prefix()

Get the prefix property: The name prefix.

Returns:

the prefix value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

attribute - the attribute value to set.

Returns:

the SwaggerXml object itself.

withExtensions

public SwaggerXml withExtensions(Map<String,Object> extensions)

Set the extensions property: The vendor extensions.

Parameters:

extensions - the extensions value to set.

Returns:

the SwaggerXml object itself.

withName

public SwaggerXml withName(String name)

Set the name property: The xml element or attribute name.

Parameters:

name - the name value to set.

Returns:

the SwaggerXml object itself.

withNamespace

public SwaggerXml withNamespace(String namespace)

Set the namespace property: The xml namespace.

Parameters:

namespace - the namespace value to set.

Returns:

the SwaggerXml object itself.

withPrefix

public SwaggerXml withPrefix(String prefix)

Set the prefix property: The name prefix.

Parameters:

prefix - the prefix value to set.

Returns:

the SwaggerXml object itself.

withWrapped

public SwaggerXml withWrapped(Boolean wrapped)

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.

wrapped

public Boolean wrapped()

Get the wrapped property: Indicates whether the array elements are wrapped in a container element.

Returns:

the wrapped value.

Applies to