PolicyAssignmentPropertiesPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.PolicyAssignmentPropertiesPolicy

Implements

public final class PolicyAssignmentPropertiesPolicy
implements JsonSerializable<PolicyAssignmentPropertiesPolicy>

Details of the policy.

Constructor Summary

Constructor Description
PolicyAssignmentPropertiesPolicy()

Creates an instance of PolicyAssignmentPropertiesPolicy class.

Method Summary

Modifier and Type Method and Description
static PolicyAssignmentPropertiesPolicy fromJson(JsonReader jsonReader)

Reads an instance of PolicyAssignmentPropertiesPolicy from the JsonReader.

String id()

Get the id property: Id of the policy.

Principal lastModifiedBy()

Get the lastModifiedBy property: The name of the entity last modified it.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The last modified date time.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PolicyAssignmentPropertiesPolicy withId(String id)

Set the id property: Id of the policy.

PolicyAssignmentPropertiesPolicy withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The last modified date time.

Methods inherited from java.lang.Object

Constructor Details

PolicyAssignmentPropertiesPolicy

public PolicyAssignmentPropertiesPolicy()

Creates an instance of PolicyAssignmentPropertiesPolicy class.

Method Details

fromJson

public static PolicyAssignmentPropertiesPolicy fromJson(JsonReader jsonReader)

Reads an instance of PolicyAssignmentPropertiesPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: Id of the policy.

Returns:

the id value.

lastModifiedBy

public Principal lastModifiedBy()

Get the lastModifiedBy property: The name of the entity last modified it.

Returns:

the lastModifiedBy value.

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: The last modified date time.

Returns:

the lastModifiedDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public PolicyAssignmentPropertiesPolicy withId(String id)

Set the id property: Id of the policy.

Parameters:

id - the id value to set.

Returns:

the PolicyAssignmentPropertiesPolicy object itself.

withLastModifiedDateTime

public PolicyAssignmentPropertiesPolicy withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The last modified date time.

Parameters:

lastModifiedDateTime - the lastModifiedDateTime value to set.

Returns:

the PolicyAssignmentPropertiesPolicy object itself.

Applies to