Class SwaggerSchema
java.lang.Object
com.azure.resourcemanager.logic.models.SwaggerSchema
The swagger schema.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: The additional properties.allOf()
Get the allOf property: The schemas which must pass validation when this schema is used.Get the discriminator property: The discriminator.Get the dynamicListNew property: The dynamic list.Get the dynamicSchemaNew property: The dynamic schema configuration.Get the dynamicSchemaOld property: The dynamic schema configuration.Get the dynamicTree property: The dynamic values tree configuration.example()
Get the example property: The example value.Get the externalDocs property: The external documentation.items()
Get the items property: The items schema.Get the maxProperties property: The maximum number of allowed properties.Get the minProperties property: The minimum number of allowed properties.Get the notificationUrlExtension property: Indicates the notification url extension.Get the properties property: The object properties.readOnly()
Get the readOnly property: Indicates whether this property must be present in the a request.ref()
Get the ref property: The reference.required()
Get the required property: The object required properties.title()
Get the title property: The title.type()
Get the type property: The type.void
validate()
Validates the instance.withAdditionalProperties
(Object additionalProperties) Set the additionalProperties property: The additional properties.withAllOf
(List<SwaggerSchema> allOf) Set the allOf property: The schemas which must pass validation when this schema is used.withDiscriminator
(String discriminator) Set the discriminator property: The discriminator.withDynamicListNew
(SwaggerCustomDynamicList dynamicListNew) Set the dynamicListNew property: The dynamic list.withDynamicSchemaNew
(SwaggerCustomDynamicProperties dynamicSchemaNew) Set the dynamicSchemaNew property: The dynamic schema configuration.withDynamicSchemaOld
(SwaggerCustomDynamicSchema dynamicSchemaOld) Set the dynamicSchemaOld property: The dynamic schema configuration.withDynamicTree
(SwaggerCustomDynamicTree dynamicTree) Set the dynamicTree property: The dynamic values tree configuration.withExample
(Object example) Set the example property: The example value.withExternalDocs
(SwaggerExternalDocumentation externalDocs) Set the externalDocs property: The external documentation.withItems
(SwaggerSchema items) Set the items property: The items schema.withMaxProperties
(Integer maxProperties) Set the maxProperties property: The maximum number of allowed properties.withMinProperties
(Integer minProperties) Set the minProperties property: The minimum number of allowed properties.withNotificationUrlExtension
(Boolean notificationUrlExtension) Set the notificationUrlExtension property: Indicates the notification url extension.withProperties
(Map<String, SwaggerSchema> properties) Set the properties property: The object properties.withReadOnly
(Boolean readOnly) Set the readOnly property: Indicates whether this property must be present in the a request.Set the ref property: The reference.withRequired
(List<String> required) Set the required property: The object required properties.Set the title property: The title.withType
(SwaggerSchemaType type) Set the type property: The type.withXml
(SwaggerXml xml) Set the xml property: The xml representation format for a property.xml()
Get the xml property: The xml representation format for a property.
-
Constructor Details
-
SwaggerSchema
public SwaggerSchema()Creates an instance of SwaggerSchema class.
-
-
Method Details
-
ref
Get the ref property: The reference.- Returns:
- the ref value.
-
withRef
Set the ref property: The reference.- Parameters:
ref
- the ref value to set.- Returns:
- the SwaggerSchema object itself.
-
type
Get the type property: The type.- Returns:
- the type value.
-
withType
Set the type property: The type.- Parameters:
type
- the type value to set.- Returns:
- the SwaggerSchema object itself.
-
title
Get the title property: The title.- Returns:
- the title value.
-
withTitle
Set the title property: The title.- Parameters:
title
- the title value to set.- Returns:
- the SwaggerSchema object itself.
-
items
Get the items property: The items schema.- Returns:
- the items value.
-
withItems
Set the items property: The items schema.- Parameters:
items
- the items value to set.- Returns:
- the SwaggerSchema object itself.
-
properties
Get the properties property: The object properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: The object properties.- Parameters:
properties
- the properties value to set.- Returns:
- the SwaggerSchema object itself.
-
additionalProperties
Get the additionalProperties property: The additional properties.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: The additional properties.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the SwaggerSchema object itself.
-
required
Get the required property: The object required properties.- Returns:
- the required value.
-
withRequired
Set the required property: The object required properties.- Parameters:
required
- the required value to set.- Returns:
- the SwaggerSchema object itself.
-
maxProperties
Get the maxProperties property: The maximum number of allowed properties.- Returns:
- the maxProperties value.
-
withMaxProperties
Set the maxProperties property: The maximum number of allowed properties.- Parameters:
maxProperties
- the maxProperties value to set.- Returns:
- the SwaggerSchema object itself.
-
minProperties
Get the minProperties property: The minimum number of allowed properties.- Returns:
- the minProperties value.
-
withMinProperties
Set the minProperties property: The minimum number of allowed properties.- Parameters:
minProperties
- the minProperties value to set.- Returns:
- the SwaggerSchema object itself.
-
allOf
Get the allOf property: The schemas which must pass validation when this schema is used.- Returns:
- the allOf value.
-
withAllOf
Set the allOf property: The schemas which must pass validation when this schema is used.- Parameters:
allOf
- the allOf value to set.- Returns:
- the SwaggerSchema object itself.
-
discriminator
Get the discriminator property: The discriminator.- Returns:
- the discriminator value.
-
withDiscriminator
Set the discriminator property: The discriminator.- Parameters:
discriminator
- the discriminator value to set.- Returns:
- the SwaggerSchema object itself.
-
readOnly
Get the readOnly property: Indicates whether this property must be present in the a request.- Returns:
- the readOnly value.
-
withReadOnly
Set the readOnly property: Indicates whether this property must be present in the a request.- Parameters:
readOnly
- the readOnly value to set.- Returns:
- the SwaggerSchema object itself.
-
xml
Get the xml property: The xml representation format for a property.- Returns:
- the xml value.
-
withXml
Set the xml property: The xml representation format for a property.- Parameters:
xml
- the xml value to set.- Returns:
- the SwaggerSchema object itself.
-
externalDocs
Get the externalDocs property: The external documentation.- Returns:
- the externalDocs value.
-
withExternalDocs
Set the externalDocs property: The external documentation.- Parameters:
externalDocs
- the externalDocs value to set.- Returns:
- the SwaggerSchema object itself.
-
example
Get the example property: The example value.- Returns:
- the example value.
-
withExample
Set the example property: The example value.- Parameters:
example
- the example value to set.- Returns:
- the SwaggerSchema object itself.
-
notificationUrlExtension
Get the notificationUrlExtension property: Indicates the notification url extension. If this is set, the property's value should be a callback url for a webhook.- Returns:
- the notificationUrlExtension value.
-
withNotificationUrlExtension
Set the notificationUrlExtension property: Indicates the notification url extension. If this is set, the property's value should be a callback url for a webhook.- Parameters:
notificationUrlExtension
- the notificationUrlExtension value to set.- Returns:
- the SwaggerSchema object itself.
-
dynamicSchemaOld
Get the dynamicSchemaOld property: The dynamic schema configuration.- Returns:
- the dynamicSchemaOld value.
-
withDynamicSchemaOld
Set the dynamicSchemaOld property: The dynamic schema configuration.- Parameters:
dynamicSchemaOld
- the dynamicSchemaOld value to set.- Returns:
- the SwaggerSchema object itself.
-
dynamicSchemaNew
Get the dynamicSchemaNew property: The dynamic schema configuration.- Returns:
- the dynamicSchemaNew value.
-
withDynamicSchemaNew
Set the dynamicSchemaNew property: The dynamic schema configuration.- Parameters:
dynamicSchemaNew
- the dynamicSchemaNew value to set.- Returns:
- the SwaggerSchema object itself.
-
dynamicListNew
Get the dynamicListNew property: The dynamic list.- Returns:
- the dynamicListNew value.
-
withDynamicListNew
Set the dynamicListNew property: The dynamic list.- Parameters:
dynamicListNew
- the dynamicListNew value to set.- Returns:
- the SwaggerSchema object itself.
-
dynamicTree
Get the dynamicTree property: The dynamic values tree configuration.- Returns:
- the dynamicTree value.
-
withDynamicTree
Set the dynamicTree property: The dynamic values tree configuration.- Parameters:
dynamicTree
- the dynamicTree value to set.- Returns:
- the SwaggerSchema object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-