Class DelegationRequest
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DelegationRequest.Builder,DelegationRequest>
Contains information about a delegation request, including its status, permissions, and associated metadata.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringReturns the value of the ApproverId property for this object.static DelegationRequest.Builderbuilder()final InstantCreation date (timestamp) of this delegation request.final StringThe unique identifier for the delegation request.final StringDescription of the delegation request.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the RolePermissionRestrictionArns property.final Stringnotes()Notes added to this delegation request, if this request was updated via the UpdateDelegationRequest API.final BooleanA flag indicating whether the SendDelegationToken must be called by the owner of this delegation request.final StringAmazon Web Services account ID of the owner of the delegation request.final StringownerId()ARN of the owner of this delegation request.final StringJSON content of the associated permission policy of this delegation request.final DelegationPermissionReturns the value of the Permissions property for this object.final StringA URL to be redirected to once the delegation request is approved.final StringReasons for rejecting this delegation request, if this request was rejected.final StringA custom message that is added to the delegation request by the partner.final StringIdentity of the requestor of this delegation request.final StringA friendly name of the requestor.If thePermissionPolicyincludes role creation permissions, this element will include the list of permissions boundary policies associated with the role creation.static Class<? extends DelegationRequest.Builder> final IntegerThe life-time of the requested session credential.final StateTypestate()The state of this delegation request.final StringThe state of this delegation request.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantLast updated timestamp of the request.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
delegationRequestId
The unique identifier for the delegation request.
- Returns:
- The unique identifier for the delegation request.
-
ownerAccountId
Amazon Web Services account ID of the owner of the delegation request.
- Returns:
- Amazon Web Services account ID of the owner of the delegation request.
-
description
Description of the delegation request. This is a message that is provided by the Amazon Web Services partner that filed the delegation request.
- Returns:
- Description of the delegation request. This is a message that is provided by the Amazon Web Services partner that filed the delegation request.
-
requestMessage
A custom message that is added to the delegation request by the partner.
This element is different from the
Descriptionelement such that this is a request specific message injected by the partner. TheDescriptionis typically a generic explanation of what the delegation request is targeted to do.- Returns:
- A custom message that is added to the delegation request by the partner.
This element is different from the
Descriptionelement such that this is a request specific message injected by the partner. TheDescriptionis typically a generic explanation of what the delegation request is targeted to do.
-
permissions
Returns the value of the Permissions property for this object.- Returns:
- The value of the Permissions property for this object.
-
permissionPolicy
JSON content of the associated permission policy of this delegation request.
- Returns:
- JSON content of the associated permission policy of this delegation request.
-
hasRolePermissionRestrictionArns
public final boolean hasRolePermissionRestrictionArns()For responses, this returns true if the service returned a value for the RolePermissionRestrictionArns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
rolePermissionRestrictionArns
If the
PermissionPolicyincludes role creation permissions, this element will include the list of permissions boundary policies associated with the role creation. See Permissions boundaries for IAM entities for more details about IAM permission boundaries.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasRolePermissionRestrictionArns()method.- Returns:
- If the
PermissionPolicyincludes role creation permissions, this element will include the list of permissions boundary policies associated with the role creation. See Permissions boundaries for IAM entities for more details about IAM permission boundaries.
-
ownerId
ARN of the owner of this delegation request.
- Returns:
- ARN of the owner of this delegation request.
-
approverId
Returns the value of the ApproverId property for this object.- Returns:
- The value of the ApproverId property for this object.
-
state
The state of this delegation request.
See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.
If the service returns an enum value that is not available in the current SDK version,
statewill returnStateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of this delegation request.
See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.
- See Also:
-
stateAsString
The state of this delegation request.
See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.
If the service returns an enum value that is not available in the current SDK version,
statewill returnStateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of this delegation request.
See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.
- See Also:
-
requestorId
Identity of the requestor of this delegation request. This will be an Amazon Web Services account ID.
- Returns:
- Identity of the requestor of this delegation request. This will be an Amazon Web Services account ID.
-
requestorName
A friendly name of the requestor.
- Returns:
- A friendly name of the requestor.
-
createDate
Creation date (timestamp) of this delegation request.
- Returns:
- Creation date (timestamp) of this delegation request.
-
sessionDuration
The life-time of the requested session credential.
- Returns:
- The life-time of the requested session credential.
-
redirectUrl
A URL to be redirected to once the delegation request is approved. Partners provide this URL when creating the delegation request.
- Returns:
- A URL to be redirected to once the delegation request is approved. Partners provide this URL when creating the delegation request.
-
notes
Notes added to this delegation request, if this request was updated via the UpdateDelegationRequest API.
- Returns:
- Notes added to this delegation request, if this request was updated via the UpdateDelegationRequest API.
-
rejectionReason
Reasons for rejecting this delegation request, if this request was rejected. See also RejectDelegationRequest API documentation.
- Returns:
- Reasons for rejecting this delegation request, if this request was rejected. See also RejectDelegationRequest API documentation.
-
onlySendByOwner
A flag indicating whether the SendDelegationToken must be called by the owner of this delegation request. This is set by the requesting partner.
- Returns:
- A flag indicating whether the SendDelegationToken must be called by the owner of this delegation request. This is set by the requesting partner.
-
updatedTime
Last updated timestamp of the request.
- Returns:
- Last updated timestamp of the request.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DelegationRequest.Builder,DelegationRequest> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-