Class ProviderResourceType
java.lang.Object
com.azure.resourcemanager.resources.models.ProviderResourceType
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ProviderResourceType>
public final class ProviderResourceType
extends Object
implements com.azure.json.JsonSerializable<ProviderResourceType>
Resource type managed by the resource provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliases()Get the aliases property: The aliases that are supported by this resource type.Get the apiProfiles property: The API profiles for the resource provider.Get the apiVersions property: The API version.Get the capabilities property: The additional capabilities offered by this resource type.Get the defaultApiVersion property: The default API version.static ProviderResourceTypefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ProviderResourceType from the JsonReader.Get the locationMappings property: The location mappings that are supported by this resource type.Get the locations property: The collection of locations where this resource type can be created.Get the properties property: The properties.Get the resourceType property: The resource type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAliases(List<Alias> aliases) Set the aliases property: The aliases that are supported by this resource type.withApiVersions(List<String> apiVersions) Set the apiVersions property: The API version.withCapabilities(String capabilities) Set the capabilities property: The additional capabilities offered by this resource type.withLocationMappings(List<ProviderExtendedLocation> locationMappings) Set the locationMappings property: The location mappings that are supported by this resource type.withLocations(List<String> locations) Set the locations property: The collection of locations where this resource type can be created.withProperties(Map<String, String> properties) Set the properties property: The properties.withResourceType(String resourceType) Set the resourceType property: The resource type.withZoneMappings(List<ZoneMapping> zoneMappings) Set the zoneMappings property: The zoneMappings property.Get the zoneMappings property: The zoneMappings property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ProviderResourceType
public ProviderResourceType()Creates an instance of ProviderResourceType class.
-
-
Method Details
-
resourceType
Get the resourceType property: The resource type.- Returns:
- the resourceType value.
-
withResourceType
Set the resourceType property: The resource type.- Parameters:
resourceType- the resourceType value to set.- Returns:
- the ProviderResourceType object itself.
-
locations
Get the locations property: The collection of locations where this resource type can be created.- Returns:
- the locations value.
-
withLocations
Set the locations property: The collection of locations where this resource type can be created.- Parameters:
locations- the locations value to set.- Returns:
- the ProviderResourceType object itself.
-
locationMappings
Get the locationMappings property: The location mappings that are supported by this resource type.- Returns:
- the locationMappings value.
-
withLocationMappings
Set the locationMappings property: The location mappings that are supported by this resource type.- Parameters:
locationMappings- the locationMappings value to set.- Returns:
- the ProviderResourceType object itself.
-
aliases
Get the aliases property: The aliases that are supported by this resource type.- Returns:
- the aliases value.
-
withAliases
Set the aliases property: The aliases that are supported by this resource type.- Parameters:
aliases- the aliases value to set.- Returns:
- the ProviderResourceType object itself.
-
apiVersions
Get the apiVersions property: The API version.- Returns:
- the apiVersions value.
-
withApiVersions
Set the apiVersions property: The API version.- Parameters:
apiVersions- the apiVersions value to set.- Returns:
- the ProviderResourceType object itself.
-
defaultApiVersion
Get the defaultApiVersion property: The default API version.- Returns:
- the defaultApiVersion value.
-
zoneMappings
Get the zoneMappings property: The zoneMappings property.- Returns:
- the zoneMappings value.
-
withZoneMappings
Set the zoneMappings property: The zoneMappings property.- Parameters:
zoneMappings- the zoneMappings value to set.- Returns:
- the ProviderResourceType object itself.
-
apiProfiles
Get the apiProfiles property: The API profiles for the resource provider.- Returns:
- the apiProfiles value.
-
capabilities
Get the capabilities property: The additional capabilities offered by this resource type.- Returns:
- the capabilities value.
-
withCapabilities
Set the capabilities property: The additional capabilities offered by this resource type.- Parameters:
capabilities- the capabilities value to set.- Returns:
- the ProviderResourceType object itself.
-
properties
Get the properties property: The properties.- Returns:
- the properties value.
-
withProperties
Set the properties property: The properties.- Parameters:
properties- the properties value to set.- Returns:
- the ProviderResourceType object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ProviderResourceType>- Throws:
IOException
-
fromJson
public static ProviderResourceType fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ProviderResourceType from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ProviderResourceType 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 ProviderResourceType.
-