Class ParameterDefinitionsValueMetadata
java.lang.Object
com.azure.resourcemanager.resources.models.ParameterDefinitionsValueMetadata
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ParameterDefinitionsValueMetadata>
public final class ParameterDefinitionsValueMetadata
extends Object
implements com.azure.json.JsonSerializable<ParameterDefinitionsValueMetadata>
General metadata for the parameter.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ParameterDefinitionsValueMetadata class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: General metadata for the parameter.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.Get the description property: The description of the parameter.Get the displayName property: The display name for the parameter.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ParameterDefinitionsValueMetadata from the JsonReader.Get the strongType property: Used when assigning the policy definition through the portal.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: General metadata for the parameter.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.withDescription(String description) Set the description property: The description of the parameter.withDisplayName(String displayName) Set the displayName property: The display name for the parameter.withStrongType(String strongType) Set the strongType property: Used when assigning the policy definition through the portal.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
-
ParameterDefinitionsValueMetadata
public ParameterDefinitionsValueMetadata()Creates an instance of ParameterDefinitionsValueMetadata class.
-
-
Method Details
-
displayName
Get the displayName property: The display name for the parameter.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name for the parameter.- Parameters:
displayName- the displayName value to set.- Returns:
- the ParameterDefinitionsValueMetadata object itself.
-
description
Get the description property: The description of the parameter.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the parameter.- Parameters:
description- the description value to set.- Returns:
- the ParameterDefinitionsValueMetadata object itself.
-
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.
-
withStrongType
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.
-
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.
-
withAssignPermissions
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.
-
additionalProperties
Get the additionalProperties property: General metadata for the parameter.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public ParameterDefinitionsValueMetadata withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: General metadata for the parameter.- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the ParameterDefinitionsValueMetadata 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<ParameterDefinitionsValueMetadata>- Throws:
IOException
-
fromJson
public static ParameterDefinitionsValueMetadata fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-