ParameterDefinitionsValueMetadata Class

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

Implements

public final class ParameterDefinitionsValueMetadata
implements JsonSerializable<ParameterDefinitionsValueMetadata>

General metadata for the parameter.

Constructor Summary

Constructor Description
ParameterDefinitionsValueMetadata()

Creates an instance of ParameterDefinitionsValueMetadata class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: General metadata for the parameter.

Boolean assignPermissions()

Get the assignPermissions property: Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment.

String description()

Get the description property: The description of the parameter.

String displayName()

Get the displayName property: The display name for the parameter.

static ParameterDefinitionsValueMetadata fromJson(JsonReader jsonReader)

Reads an instance of ParameterDefinitionsValueMetadata from the JsonReader.

String strongType()

Get the strongType property: Used when assigning the policy definition through the portal.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ParameterDefinitionsValueMetadata withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: General metadata for the parameter.

ParameterDefinitionsValueMetadata withAssignPermissions(Boolean assignPermissions)

Set the assignPermissions property: Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment.

ParameterDefinitionsValueMetadata withDescription(String description)

Set the description property: The description of the parameter.

ParameterDefinitionsValueMetadata withDisplayName(String displayName)

Set the displayName property: The display name for the parameter.

ParameterDefinitionsValueMetadata withStrongType(String strongType)

Set the strongType property: Used when assigning the policy definition through the portal.

Methods inherited from java.lang.Object

Constructor Details

ParameterDefinitionsValueMetadata

public ParameterDefinitionsValueMetadata()

Creates an instance of ParameterDefinitionsValueMetadata class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: General metadata for the parameter.

Returns:

the additionalProperties value.

assignPermissions

public Boolean assignPermissions()

Get the assignPermissions property: Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.

Returns:

the assignPermissions value.

description

public String description()

Get the description property: The description of the parameter.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The display name for the parameter.

Returns:

the displayName value.

fromJson

public static ParameterDefinitionsValueMetadata fromJson(JsonReader jsonReader)

Reads an instance of ParameterDefinitionsValueMetadata from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ParameterDefinitionsValueMetadata 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 ParameterDefinitionsValueMetadata.

strongType

public String strongType()

Get the strongType property: Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.

Returns:

the strongType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public ParameterDefinitionsValueMetadata withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: General metadata for the parameter.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the ParameterDefinitionsValueMetadata object itself.

withAssignPermissions

public ParameterDefinitionsValueMetadata withAssignPermissions(Boolean assignPermissions)

Set the assignPermissions property: Set to true to have Azure portal create role assignments on the resource ID or resource scope value of this parameter during policy assignment. This property is useful in case you wish to assign permissions outside the assignment scope.

Parameters:

assignPermissions - the assignPermissions value to set.

Returns:

the ParameterDefinitionsValueMetadata object itself.

withDescription

public ParameterDefinitionsValueMetadata withDescription(String description)

Set the description property: The description of the parameter.

Parameters:

description - the description value to set.

Returns:

the ParameterDefinitionsValueMetadata object itself.

withDisplayName

public ParameterDefinitionsValueMetadata withDisplayName(String displayName)

Set the displayName property: The display name for the parameter.

Parameters:

displayName - the displayName value to set.

Returns:

the ParameterDefinitionsValueMetadata object itself.

withStrongType

public ParameterDefinitionsValueMetadata withStrongType(String strongType)

Set the strongType property: Used when assigning the policy definition through the portal. Provides a context aware list of values for the user to choose from.

Parameters:

strongType - the strongType value to set.

Returns:

the ParameterDefinitionsValueMetadata object itself.

Applies to