PolicyAssignmentPropertiesRoleDefinition Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. models. PolicyAssignmentPropertiesRoleDefinition
- com.
Implements
public final class PolicyAssignmentPropertiesRoleDefinition
implements JsonSerializable<PolicyAssignmentPropertiesRoleDefinition>
Details of role definition.
Constructor Summary
Constructor | Description |
---|---|
PolicyAssignmentPropertiesRoleDefinition() |
Creates an instance of Policy |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
displayName()
Get the display |
static
Policy |
fromJson(JsonReader jsonReader)
Reads an instance of Policy |
String |
id()
Get the id property: Id of the role definition. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Type of the role definition. |
void |
validate()
Validates the instance. |
Policy |
withDisplayName(String displayName)
Set the display |
Policy |
withId(String id)
Set the id property: Id of the role definition. |
Policy |
withType(String type)
Set the type property: Type of the role definition. |
Methods inherited from java.lang.Object
Constructor Details
PolicyAssignmentPropertiesRoleDefinition
public PolicyAssignmentPropertiesRoleDefinition()
Creates an instance of PolicyAssignmentPropertiesRoleDefinition class.
Method Details
displayName
public String displayName()
Get the displayName property: Display name of the role definition.
Returns:
fromJson
public static PolicyAssignmentPropertiesRoleDefinition fromJson(JsonReader jsonReader)
Reads an instance of PolicyAssignmentPropertiesRoleDefinition from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Id of the role definition.
Returns:
toJson
type
public String type()
Get the type property: Type of the role definition.
Returns:
validate
public void validate()
Validates the instance.
withDisplayName
public PolicyAssignmentPropertiesRoleDefinition withDisplayName(String displayName)
Set the displayName property: Display name of the role definition.
Parameters:
Returns:
withId
public PolicyAssignmentPropertiesRoleDefinition withId(String id)
Set the id property: Id of the role definition.
Parameters:
Returns:
withType
public PolicyAssignmentPropertiesRoleDefinition withType(String type)
Set the type property: Type of the role definition.
Parameters:
Returns:
Applies to
Azure SDK for Java