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
  • Constructor Details

    • DelegatedAdminRelationship

      public DelegatedAdminRelationship()
      Instantiates a new DelegatedAdminRelationship 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

      @Nullable public List<DelegatedAdminAccessAssignment> getAccessAssignments()
      Gets the accessAssignments property value. The access assignments associated with the delegated admin relationship.
      Returns:
      a List<DelegatedAdminAccessAssignment>
    • getAccessDetails

      @Nullable public DelegatedAdminAccessDetails getAccessDetails()
      Gets the accessDetails property value. The accessDetails property
      Returns:
      a DelegatedAdminAccessDetails
    • getActivatedDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public OffsetDateTime 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

      @Nullable public DelegatedAdminRelationshipCustomerParticipant 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.
      Returns:
      a DelegatedAdminRelationshipCustomerParticipant
    • getDisplayName

      @Nullable public String 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

      @Nullable public OffsetDateTime 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public List<DelegatedAdminRelationshipOperation> getOperations()
      Gets the operations property value. The long running operations associated with the delegated admin relationship.
      Returns:
      a List<DelegatedAdminRelationshipOperation>
    • getRequests

      @Nullable public List<DelegatedAdminRelationshipRequest> getRequests()
      Gets the requests property value. The requests associated with the delegated admin relationship.
      Returns:
      a List<DelegatedAdminRelationshipRequest>
    • getStatus

      @Nullable public DelegatedAdminRelationshipStatus 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAccessAssignments

      public void setAccessAssignments(@Nullable List<DelegatedAdminAccessAssignment> value)
      Sets the accessAssignments property value. The access assignments associated with the delegated admin relationship.
      Parameters:
      value - Value to set for the accessAssignments property.
    • setAccessDetails

      public void setAccessDetails(@Nullable DelegatedAdminAccessDetails value)
      Sets the accessDetails property value. The accessDetails property
      Parameters:
      value - Value to set for the accessDetails property.
    • setActivatedDateTime

      public void setActivatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      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

      public void setCustomer(@Nullable DelegatedAdminRelationshipCustomerParticipant value)
      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

      public void setDisplayName(@Nullable String value)
      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

      public void setEndDateTime(@Nullable OffsetDateTime value)
      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

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      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

      public void setOperations(@Nullable List<DelegatedAdminRelationshipOperation> value)
      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

      public void setRequests(@Nullable List<DelegatedAdminRelationshipRequest> value)
      Sets the requests property value. The requests associated with the delegated admin relationship.
      Parameters:
      value - Value to set for the requests property.
    • setStatus

      public void setStatus(@Nullable DelegatedAdminRelationshipStatus value)
      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.