AccessReviewDecisionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.AccessReviewDecisionProperties

Implements

public final class AccessReviewDecisionProperties
implements JsonSerializable<AccessReviewDecisionProperties>

Approval Step.

Constructor Summary

Constructor Description
AccessReviewDecisionProperties()

Creates an instance of AccessReviewDecisionProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime appliedDateTime()

Get the appliedDateTime property: The date and time when the review decision was applied.

AccessReviewApplyResult applyResult()

Get the applyResult property: The outcome of applying the decision.

AccessReviewResult decision()

Get the decision property: The decision on the approval step.

String displayName()

Get the displayName property: The display name of resource associated with a decision record.

static AccessReviewDecisionProperties fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewDecisionProperties from the JsonReader.

String id()

Get the id property: The id of resource associated with a decision record.

List<AccessReviewDecisionInsight> insights()

Get the insights property: This is the collection of insights for this decision item.

String justification()

Get the justification property: Justification provided by approvers for their action.

List<AccessReviewDecisionPrincipalResourceMembershipType> membershipTypes()

Get the membershipTypes property: Every decision item in an access review represents a principal's membership to a resource.

AccessReviewDecisionIdentity principal()

Get the principal property: Principal associated with the decision record.

String principalId()

Get the principalId property: The identity id.

String principalIdAppliedByPrincipalId()

Get the principalId property: The identity id.

String principalName()

Get the principalName property: The identity display name.

String principalNameAppliedByPrincipalName()

Get the principalName property: The identity display name.

AccessReviewActorIdentityType principalType()

Get the principalType property: The identity type : user/servicePrincipal.

AccessReviewActorIdentityType principalTypeAppliedByPrincipalType()

Get the principalType property: The identity type : user/servicePrincipal.

AccessRecommendationType recommendation()

Get the recommendation property: The feature- generated recommendation shown to the reviewer.

OffsetDateTime reviewedDateTime()

Get the reviewedDateTime property: Date Time when a decision was taken.

JsonWriter toJson(JsonWriter jsonWriter)
DecisionResourceType type()

Get the type property: The type of resource.

String userPrincipalName()

Get the userPrincipalName property: The user principal name(if valid).

String userPrincipalNameAppliedByUserPrincipalName()

Get the userPrincipalName property: The user principal name(if valid).

void validate()

Validates the instance.

AccessReviewDecisionProperties withDecision(AccessReviewResult decision)

Set the decision property: The decision on the approval step.

AccessReviewDecisionProperties withInsights(List<AccessReviewDecisionInsight> insights)

Set the insights property: This is the collection of insights for this decision item.

AccessReviewDecisionProperties withJustification(String justification)

Set the justification property: Justification provided by approvers for their action.

Methods inherited from java.lang.Object

Constructor Details

AccessReviewDecisionProperties

public AccessReviewDecisionProperties()

Creates an instance of AccessReviewDecisionProperties class.

Method Details

appliedDateTime

public OffsetDateTime appliedDateTime()

Get the appliedDateTime property: The date and time when the review decision was applied.

Returns:

the appliedDateTime value.

applyResult

public AccessReviewApplyResult applyResult()

Get the applyResult property: The outcome of applying the decision.

Returns:

the applyResult value.

decision

public AccessReviewResult decision()

Get the decision property: The decision on the approval step. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny.

Returns:

the decision value.

displayName

public String displayName()

Get the displayName property: The display name of resource associated with a decision record.

Returns:

the displayName value.

fromJson

public static AccessReviewDecisionProperties fromJson(JsonReader jsonReader)

Reads an instance of AccessReviewDecisionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The id of resource associated with a decision record.

Returns:

the id value.

insights

public List<AccessReviewDecisionInsight> insights()

Get the insights property: This is the collection of insights for this decision item.

Returns:

the insights value.

justification

public String justification()

Get the justification property: Justification provided by approvers for their action.

Returns:

the justification value.

membershipTypes

public List<AccessReviewDecisionPrincipalResourceMembershipType> membershipTypes()

Get the membershipTypes property: Every decision item in an access review represents a principal's membership to a resource. This property represents details of the membership. Examples of this detail might be whether the principal has direct access or indirect access.

Returns:

the membershipTypes value.

principal

public AccessReviewDecisionIdentity principal()

Get the principal property: Principal associated with the decision record. Can be AccessReviewDecisionUserIdentity or AccessReviewDecisionServicePrincipalIdentity.

Returns:

the principal value.

principalId

public String principalId()

Get the principalId property: The identity id.

Returns:

the principalId value.

principalIdAppliedByPrincipalId

public String principalIdAppliedByPrincipalId()

Get the principalId property: The identity id.

Returns:

the principalId value.

principalName

public String principalName()

Get the principalName property: The identity display name.

Returns:

the principalName value.

principalNameAppliedByPrincipalName

public String principalNameAppliedByPrincipalName()

Get the principalName property: The identity display name.

Returns:

the principalName value.

principalType

public AccessReviewActorIdentityType principalType()

Get the principalType property: The identity type : user/servicePrincipal.

Returns:

the principalType value.

principalTypeAppliedByPrincipalType

public AccessReviewActorIdentityType principalTypeAppliedByPrincipalType()

Get the principalType property: The identity type : user/servicePrincipal.

Returns:

the principalType value.

recommendation

public AccessRecommendationType recommendation()

Get the recommendation property: The feature- generated recommendation shown to the reviewer.

Returns:

the recommendation value.

reviewedDateTime

public OffsetDateTime reviewedDateTime()

Get the reviewedDateTime property: Date Time when a decision was taken.

Returns:

the reviewedDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public DecisionResourceType type()

Get the type property: The type of resource.

Returns:

the type value.

userPrincipalName

public String userPrincipalName()

Get the userPrincipalName property: The user principal name(if valid).

Returns:

the userPrincipalName value.

userPrincipalNameAppliedByUserPrincipalName

public String userPrincipalNameAppliedByUserPrincipalName()

Get the userPrincipalName property: The user principal name(if valid).

Returns:

the userPrincipalName value.

validate

public void validate()

Validates the instance.

withDecision

public AccessReviewDecisionProperties withDecision(AccessReviewResult decision)

Set the decision property: The decision on the approval step. This value is initially set to NotReviewed. Approvers can take action of Approve/Deny.

Parameters:

decision - the decision value to set.

Returns:

the AccessReviewDecisionProperties object itself.

withInsights

public AccessReviewDecisionProperties withInsights(List<AccessReviewDecisionInsight> insights)

Set the insights property: This is the collection of insights for this decision item.

Parameters:

insights - the insights value to set.

Returns:

the AccessReviewDecisionProperties object itself.

withJustification

public AccessReviewDecisionProperties withJustification(String justification)

Set the justification property: Justification provided by approvers for their action.

Parameters:

justification - the justification value to set.

Returns:

the AccessReviewDecisionProperties object itself.

Applies to