Package com.microsoft.graph.models
Class AccessPackageApprovalStage
java.lang.Object
com.microsoft.graph.models.AccessPackageApprovalStage
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
AccessPackageDynamicApprovalStage
@Generated("com.microsoft.kiota")
public class AccessPackageApprovalStage
extends Object
implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AccessPackageApprovalStagecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.com.microsoft.kiota.PeriodAndDurationGets the durationBeforeAutomaticDenial property value.com.microsoft.kiota.PeriodAndDurationGets the durationBeforeEscalation property value.Gets the escalationApprovers property value.Gets the fallbackEscalationApprovers property value.Gets the fallbackPrimaryApprovers property value.The deserialization information for the current modelGets the isApproverJustificationRequired property value.Gets the isEscalationEnabled property value.Gets the @odata.type property value.Gets the primaryApprovers property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidsetDurationBeforeAutomaticDenial(com.microsoft.kiota.PeriodAndDuration value) Sets the durationBeforeAutomaticDenial property value.voidsetDurationBeforeEscalation(com.microsoft.kiota.PeriodAndDuration value) Sets the durationBeforeEscalation property value.voidsetEscalationApprovers(List<SubjectSet> value) Sets the escalationApprovers property value.voidSets the fallbackEscalationApprovers property value.voidSets the fallbackPrimaryApprovers property value.voidSets the isApproverJustificationRequired property value.voidsetIsEscalationEnabled(Boolean value) Sets the isEscalationEnabled property value.voidsetOdataType(String value) Sets the @odata.type property value.voidsetPrimaryApprovers(List<SubjectSet> value) Sets the primaryApprovers property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
AccessPackageApprovalStage
public AccessPackageApprovalStage()Instantiates a newAccessPackageApprovalStageand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static AccessPackageApprovalStage createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
AccessPackageApprovalStage
-
getAdditionalData
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getBackingStore
@Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()Gets the backingStore property value. Stores model information.- Specified by:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
getDurationBeforeAutomaticDenial
@Nullable public com.microsoft.kiota.PeriodAndDuration getDurationBeforeAutomaticDenial()Gets the durationBeforeAutomaticDenial property value. The number of days that a request can be pending a response before it is automatically denied.- Returns:
- a
PeriodAndDuration
-
getDurationBeforeEscalation
@Nullable public com.microsoft.kiota.PeriodAndDuration getDurationBeforeEscalation()Gets the durationBeforeEscalation property value. If escalation is required, the time a request can be pending a response from a primary approver.- Returns:
- a
PeriodAndDuration
-
getEscalationApprovers
Gets the escalationApprovers property value. If escalation is enabled and the primary approvers do not respond before the escalation time, the escalationApprovers are the users who will be asked to approve requests.- Returns:
- a
List<SubjectSet>
-
getFallbackEscalationApprovers
Gets the fallbackEscalationApprovers property value. The subjects, typically users, who are the fallback escalation approvers.- Returns:
- a
List<SubjectSet>
-
getFallbackPrimaryApprovers
Gets the fallbackPrimaryApprovers property value. The subjects, typically users, who are the fallback primary approvers.- Returns:
- a
List<SubjectSet>
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model -
getIsApproverJustificationRequired
Gets the isApproverJustificationRequired property value. Indicates whether the approver is required to provide a justification for approving a request.- Returns:
- a
Boolean
-
getIsEscalationEnabled
Gets the isEscalationEnabled property value. If true, then one or more escalationApprovers are configured in this approval stage.- Returns:
- a
Boolean
-
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
getPrimaryApprovers
Gets the primaryApprovers property value. The subjects, typically users, who will be asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors, or targetUserSponsors.- Returns:
- a
List<SubjectSet>
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.- Parameters:
value- Value to set for the AdditionalData property.
-
setBackingStore
public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value. Stores model information.- Parameters:
value- Value to set for the backingStore property.
-
setDurationBeforeAutomaticDenial
public void setDurationBeforeAutomaticDenial(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the durationBeforeAutomaticDenial property value. The number of days that a request can be pending a response before it is automatically denied.- Parameters:
value- Value to set for the durationBeforeAutomaticDenial property.
-
setDurationBeforeEscalation
public void setDurationBeforeEscalation(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the durationBeforeEscalation property value. If escalation is required, the time a request can be pending a response from a primary approver.- Parameters:
value- Value to set for the durationBeforeEscalation property.
-
setEscalationApprovers
Sets the escalationApprovers property value. If escalation is enabled and the primary approvers do not respond before the escalation time, the escalationApprovers are the users who will be asked to approve requests.- Parameters:
value- Value to set for the escalationApprovers property.
-
setFallbackEscalationApprovers
Sets the fallbackEscalationApprovers property value. The subjects, typically users, who are the fallback escalation approvers.- Parameters:
value- Value to set for the fallbackEscalationApprovers property.
-
setFallbackPrimaryApprovers
Sets the fallbackPrimaryApprovers property value. The subjects, typically users, who are the fallback primary approvers.- Parameters:
value- Value to set for the fallbackPrimaryApprovers property.
-
setIsApproverJustificationRequired
Sets the isApproverJustificationRequired property value. Indicates whether the approver is required to provide a justification for approving a request.- Parameters:
value- Value to set for the isApproverJustificationRequired property.
-
setIsEscalationEnabled
Sets the isEscalationEnabled property value. If true, then one or more escalationApprovers are configured in this approval stage.- Parameters:
value- Value to set for the isEscalationEnabled property.
-
setOdataType
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setPrimaryApprovers
Sets the primaryApprovers property value. The subjects, typically users, who will be asked to approve requests. A collection of singleUser, groupMembers, requestorManager, internalSponsors, externalSponsors, or targetUserSponsors.- Parameters:
value- Value to set for the primaryApprovers property.
-