Package com.microsoft.graph.models
Class DelegatedAdminRelationship
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DelegatedAdminRelationship
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
ResellerDelegatedAdminRelationship
@Generated("com.microsoft.kiota")
public class DelegatedAdminRelationship
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DelegatedAdminRelationship
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the accessAssignments property value.Gets the accessDetails property value.Gets the activatedDateTime property value.com.microsoft.kiota.PeriodAndDuration
Gets the autoExtendDuration property value.Gets the createdDateTime property value.Gets the customer property value.Gets the displayName property value.com.microsoft.kiota.PeriodAndDuration
Gets the duration property value.Gets the endDateTime property value.The deserialization information for the current modelGets the lastModifiedDateTime property value.Gets the operations property value.Gets the requests property value.Gets the status property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
Sets the accessAssignments property value.void
Sets the accessDetails property value.void
Sets the activatedDateTime property value.void
setAutoExtendDuration
(com.microsoft.kiota.PeriodAndDuration value) Sets the autoExtendDuration property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
Sets the customer property value.void
setDisplayName
(String value) Sets the displayName property value.void
setDuration
(com.microsoft.kiota.PeriodAndDuration value) Sets the duration property value.void
setEndDateTime
(OffsetDateTime value) Sets the endDateTime property value.void
Sets the lastModifiedDateTime property value.void
Sets the operations property value.void
Sets the requests property value.void
Sets the status property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
DelegatedAdminRelationship
public DelegatedAdminRelationship()Instantiates a newDelegatedAdminRelationship
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static DelegatedAdminRelationship 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
DelegatedAdminRelationship
-
getAccessAssignments
Gets the accessAssignments property value. The access assignments associated with the delegated admin relationship.- Returns:
- a
List<DelegatedAdminAccessAssignment>
-
getAccessDetails
Gets the accessDetails property value. The accessDetails property- Returns:
- a
DelegatedAdminAccessDetails
-
getActivatedDateTime
Gets the activatedDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship became active. Read-only.- Returns:
- a
OffsetDateTime
-
getAutoExtendDuration
@Nullable public com.microsoft.kiota.PeriodAndDuration getAutoExtendDuration()Gets the autoExtendDuration property value. The duration by which the validity of the relationship is automatically extended, denoted in ISO 8601 format. Supported values are: P0D, PT0S, P180D. The default value is PT0S. PT0S indicates that the relationship expires when the endDateTime is reached and it isn't automatically extended.- Returns:
- a
PeriodAndDuration
-
getCreatedDateTime
Gets the createdDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship was created. Read-only.- Returns:
- a
OffsetDateTime
-
getCustomer
Gets the customer property value. The display name and unique identifier of the customer of the relationship. This is configured either by the partner at the time the relationship is created or by the system after the customer approves the relationship. Can't be changed by the customer. -
getDisplayName
Gets the displayName property value. The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner and is set by the partner only when the relationship is in the created status and can't be changed by the customer. Maximum length is 50 characters.- Returns:
- a
String
-
getDuration
@Nullable public com.microsoft.kiota.PeriodAndDuration getDuration()Gets the duration property value. The duration of the relationship in ISO 8601 format. Must be a value between P1D and P2Y inclusive. This is set by the partner only when the relationship is in the created status and can't be changed by the customer.- Returns:
- a
PeriodAndDuration
-
getEndDateTime
Gets the endDateTime property value. The date and time in ISO 8601 format and in UTC time when the status of relationship changes to either terminated or expired. Calculated as endDateTime = activatedDateTime + duration. Read-only.- Returns:
- a
OffsetDateTime
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship was last modified. Read-only.- Returns:
- a
OffsetDateTime
-
getOperations
Gets the operations property value. The long running operations associated with the delegated admin relationship.- Returns:
- a
List<DelegatedAdminRelationshipOperation>
-
getRequests
Gets the requests property value. The requests associated with the delegated admin relationship.- Returns:
- a
List<DelegatedAdminRelationshipRequest>
-
getStatus
Gets the status property value. The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby.- Returns:
- a
DelegatedAdminRelationshipStatus
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setAccessAssignments
Sets the accessAssignments property value. The access assignments associated with the delegated admin relationship.- Parameters:
value
- Value to set for the accessAssignments property.
-
setAccessDetails
Sets the accessDetails property value. The accessDetails property- Parameters:
value
- Value to set for the accessDetails property.
-
setActivatedDateTime
Sets the activatedDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship became active. Read-only.- Parameters:
value
- Value to set for the activatedDateTime property.
-
setAutoExtendDuration
public void setAutoExtendDuration(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the autoExtendDuration property value. The duration by which the validity of the relationship is automatically extended, denoted in ISO 8601 format. Supported values are: P0D, PT0S, P180D. The default value is PT0S. PT0S indicates that the relationship expires when the endDateTime is reached and it isn't automatically extended.- Parameters:
value
- Value to set for the autoExtendDuration property.
-
setCreatedDateTime
Sets the createdDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship was created. Read-only.- Parameters:
value
- Value to set for the createdDateTime property.
-
setCustomer
Sets the customer property value. The display name and unique identifier of the customer of the relationship. This is configured either by the partner at the time the relationship is created or by the system after the customer approves the relationship. Can't be changed by the customer.- Parameters:
value
- Value to set for the customer property.
-
setDisplayName
Sets the displayName property value. The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner and is set by the partner only when the relationship is in the created status and can't be changed by the customer. Maximum length is 50 characters.- Parameters:
value
- Value to set for the displayName property.
-
setDuration
public void setDuration(@Nullable com.microsoft.kiota.PeriodAndDuration value) Sets the duration property value. The duration of the relationship in ISO 8601 format. Must be a value between P1D and P2Y inclusive. This is set by the partner only when the relationship is in the created status and can't be changed by the customer.- Parameters:
value
- Value to set for the duration property.
-
setEndDateTime
Sets the endDateTime property value. The date and time in ISO 8601 format and in UTC time when the status of relationship changes to either terminated or expired. Calculated as endDateTime = activatedDateTime + duration. Read-only.- Parameters:
value
- Value to set for the endDateTime property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. The date and time in ISO 8601 format and in UTC time when the relationship was last modified. Read-only.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setOperations
Sets the operations property value. The long running operations associated with the delegated admin relationship.- Parameters:
value
- Value to set for the operations property.
-
setRequests
Sets the requests property value. The requests associated with the delegated admin relationship.- Parameters:
value
- Value to set for the requests property.
-
setStatus
Sets the status property value. The status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby.- Parameters:
value
- Value to set for the status property.
-