Compartilhar via


ProviderResourceType Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.ProviderResourceType

Implements

public final class ProviderResourceType
implements JsonSerializable<ProviderResourceType>

Resource type managed by the resource provider.

Constructor Summary

Constructor Description
ProviderResourceType()

Creates an instance of ProviderResourceType class.

Method Summary

Modifier and Type Method and Description
List<Alias> aliases()

Get the aliases property: The aliases that are supported by this resource type.

List<ApiProfile> apiProfiles()

Get the apiProfiles property: The API profiles for the resource provider.

List<String> apiVersions()

Get the apiVersions property: The API version.

String capabilities()

Get the capabilities property: The additional capabilities offered by this resource type.

String defaultApiVersion()

Get the defaultApiVersion property: The default API version.

static ProviderResourceType fromJson(JsonReader jsonReader)

Reads an instance of ProviderResourceType from the JsonReader.

List<ProviderExtendedLocation> locationMappings()

Get the locationMappings property: The location mappings that are supported by this resource type.

List<String> locations()

Get the locations property: The collection of locations where this resource type can be created.

Map<String,String> properties()

Get the properties property: The properties.

String resourceType()

Get the resourceType property: The resource type.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ProviderResourceType withAliases(List<Alias> aliases)

Set the aliases property: The aliases that are supported by this resource type.

ProviderResourceType withApiVersions(List<String> apiVersions)

Set the apiVersions property: The API version.

ProviderResourceType withCapabilities(String capabilities)

Set the capabilities property: The additional capabilities offered by this resource type.

ProviderResourceType withLocationMappings(List<ProviderExtendedLocation> locationMappings)

Set the locationMappings property: The location mappings that are supported by this resource type.

ProviderResourceType withLocations(List<String> locations)

Set the locations property: The collection of locations where this resource type can be created.

ProviderResourceType withProperties(Map<String,String> properties)

Set the properties property: The properties.

ProviderResourceType withResourceType(String resourceType)

Set the resourceType property: The resource type.

ProviderResourceType withZoneMappings(List<ZoneMapping> zoneMappings)

Set the zoneMappings property: The zoneMappings property.

List<ZoneMapping> zoneMappings()

Get the zoneMappings property: The zoneMappings property.

Methods inherited from java.lang.Object

Constructor Details

ProviderResourceType

public ProviderResourceType()

Creates an instance of ProviderResourceType class.

Method Details

aliases

public List aliases()

Get the aliases property: The aliases that are supported by this resource type.

Returns:

the aliases value.

apiProfiles

public List apiProfiles()

Get the apiProfiles property: The API profiles for the resource provider.

Returns:

the apiProfiles value.

apiVersions

public List apiVersions()

Get the apiVersions property: The API version.

Returns:

the apiVersions value.

capabilities

public String capabilities()

Get the capabilities property: The additional capabilities offered by this resource type.

Returns:

the capabilities value.

defaultApiVersion

public String defaultApiVersion()

Get the defaultApiVersion property: The default API version.

Returns:

the defaultApiVersion value.

fromJson

public static ProviderResourceType fromJson(JsonReader jsonReader)

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.

locationMappings

public List locationMappings()

Get the locationMappings property: The location mappings that are supported by this resource type.

Returns:

the locationMappings value.

locations

public List locations()

Get the locations property: The collection of locations where this resource type can be created.

Returns:

the locations value.

properties

public Map properties()

Get the properties property: The properties.

Returns:

the properties value.

resourceType

public String resourceType()

Get the resourceType property: The resource type.

Returns:

the resourceType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAliases

public ProviderResourceType withAliases(List 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.

withApiVersions

public ProviderResourceType withApiVersions(List apiVersions)

Set the apiVersions property: The API version.

Parameters:

apiVersions - the apiVersions value to set.

Returns:

the ProviderResourceType object itself.

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.

withLocationMappings

public ProviderResourceType withLocationMappings(List 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.

withLocations

public ProviderResourceType withLocations(List 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.

withProperties

public ProviderResourceType withProperties(Map properties)

Set the properties property: The properties.

Parameters:

properties - the properties value to set.

Returns:

the ProviderResourceType object itself.

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.

withZoneMappings

public ProviderResourceType withZoneMappings(List zoneMappings)

Set the zoneMappings property: The zoneMappings property.

Parameters:

zoneMappings - the zoneMappings value to set.

Returns:

the ProviderResourceType object itself.

zoneMappings

public List zoneMappings()

Get the zoneMappings property: The zoneMappings property.

Returns:

the zoneMappings value.

Applies to