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 Details

    • ProviderResourceType

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

    • resourceType

      public String resourceType()
      Get the resourceType property: The resource type.
      Returns:
      the resourceType value.
    • withResourceType

      public ProviderResourceType withResourceType(String resourceType)
      Set the resourceType property: The resource type.
      Parameters:
      resourceType - the resourceType value to set.
      Returns:
      the ProviderResourceType object itself.
    • locations

      public List<String> locations()
      Get the locations property: The collection of locations where this resource type can be created.
      Returns:
      the locations value.
    • withLocations

      public ProviderResourceType withLocations(List<String> locations)
      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

      public List<ProviderExtendedLocation> locationMappings()
      Get the locationMappings property: The location mappings that are supported by this resource type.
      Returns:
      the locationMappings value.
    • withLocationMappings

      public ProviderResourceType withLocationMappings(List<ProviderExtendedLocation> locationMappings)
      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

      public List<Alias> aliases()
      Get the aliases property: The aliases that are supported by this resource type.
      Returns:
      the aliases value.
    • withAliases

      public ProviderResourceType withAliases(List<Alias> aliases)
      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

      public List<String> apiVersions()
      Get the apiVersions property: The API version.
      Returns:
      the apiVersions value.
    • withApiVersions

      public ProviderResourceType withApiVersions(List<String> apiVersions)
      Set the apiVersions property: The API version.
      Parameters:
      apiVersions - the apiVersions value to set.
      Returns:
      the ProviderResourceType object itself.
    • defaultApiVersion

      public String defaultApiVersion()
      Get the defaultApiVersion property: The default API version.
      Returns:
      the defaultApiVersion value.
    • zoneMappings

      public List<ZoneMapping> zoneMappings()
      Get the zoneMappings property: The zoneMappings property.
      Returns:
      the zoneMappings value.
    • withZoneMappings

      public ProviderResourceType withZoneMappings(List<ZoneMapping> zoneMappings)
      Set the zoneMappings property: The zoneMappings property.
      Parameters:
      zoneMappings - the zoneMappings value to set.
      Returns:
      the ProviderResourceType object itself.
    • apiProfiles

      public List<ApiProfile> apiProfiles()
      Get the apiProfiles property: The API profiles for the resource provider.
      Returns:
      the apiProfiles value.
    • capabilities

      public String capabilities()
      Get the capabilities property: The additional capabilities offered by this resource type.
      Returns:
      the capabilities value.
    • withCapabilities

      public ProviderResourceType withCapabilities(String capabilities)
      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

      public Map<String,String> properties()
      Get the properties property: The properties.
      Returns:
      the properties value.
    • withProperties

      public ProviderResourceType withProperties(Map<String,String> properties)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.