Class SwaggerXml

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

public final class SwaggerXml extends Object
The Swagger XML.
  • Constructor Details

    • SwaggerXml

      public SwaggerXml()
      Creates an instance of SwaggerXml class.
  • Method Details

    • name

      public String name()
      Get the name property: The xml element or attribute name.
      Returns:
      the name value.
    • 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.
    • namespace

      public String namespace()
      Get the namespace property: The xml namespace.
      Returns:
      the namespace value.
    • 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.
    • prefix

      public String prefix()
      Get the prefix property: The name prefix.
      Returns:
      the prefix value.
    • 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.
    • attribute

      public Boolean attribute()
      Get the attribute property: Indicates whether the property should be an attribute instead of an element.
      Returns:
      the attribute value.
    • 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.
    • wrapped

      public Boolean wrapped()
      Get the wrapped property: Indicates whether the array elements are wrapped in a container element.
      Returns:
      the wrapped value.
    • 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.
    • extensions

      public Map<String,Object> extensions()
      Get the extensions property: The vendor extensions.
      Returns:
      the extensions value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.