Interface DelegationRequest.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DelegationRequest.Builder,,DelegationRequest> SdkBuilder<DelegationRequest.Builder,,DelegationRequest> SdkPojo
- Enclosing class:
DelegationRequest
-
Method Summary
Modifier and TypeMethodDescriptionapproverId(String approverId) Sets the value of the ApproverId property for this object.createDate(Instant createDate) Creation date (timestamp) of this delegation request.delegationRequestId(String delegationRequestId) The unique identifier for the delegation request.description(String description) Description of the delegation request.Notes added to this delegation request, if this request was updated via the UpdateDelegationRequest API.onlySendByOwner(Boolean onlySendByOwner) A flag indicating whether the SendDelegationToken must be called by the owner of this delegation request.ownerAccountId(String ownerAccountId) Amazon Web Services account ID of the owner of the delegation request.ARN of the owner of this delegation request.permissionPolicy(String permissionPolicy) JSON content of the associated permission policy of this delegation request.default DelegationRequest.Builderpermissions(Consumer<DelegationPermission.Builder> permissions) Sets the value of the Permissions property for this object.permissions(DelegationPermission permissions) Sets the value of the Permissions property for this object.redirectUrl(String redirectUrl) A URL to be redirected to once the delegation request is approved.rejectionReason(String rejectionReason) Reasons for rejecting this delegation request, if this request was rejected.requestMessage(String requestMessage) A custom message that is added to the delegation request by the partner.requestorId(String requestorId) Identity of the requestor of this delegation request.requestorName(String requestorName) A friendly name of the requestor.rolePermissionRestrictionArns(String... rolePermissionRestrictionArns) If thePermissionPolicyincludes role creation permissions, this element will include the list of permissions boundary policies associated with the role creation.rolePermissionRestrictionArns(Collection<String> rolePermissionRestrictionArns) If thePermissionPolicyincludes role creation permissions, this element will include the list of permissions boundary policies associated with the role creation.sessionDuration(Integer sessionDuration) The life-time of the requested session credential.The state of this delegation request.The state of this delegation request.updatedTime(Instant updatedTime) Last updated timestamp of the request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
delegationRequestId
The unique identifier for the delegation request.
- Parameters:
delegationRequestId- The unique identifier for the delegation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerAccountId
Amazon Web Services account ID of the owner of the delegation request.
- Parameters:
ownerAccountId- Amazon Web Services account ID of the owner of the delegation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Description of the delegation request. This is a message that is provided by the Amazon Web Services partner that filed the delegation request.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
permissions
Sets the value of the Permissions property for this object.- Parameters:
permissions- The new value for the Permissions property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissions
Sets the value of the Permissions property for this object. This is a convenience method that creates an instance of theDelegationPermission.Builderavoiding the need to create one manually viaDelegationPermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topermissions(DelegationPermission).- Parameters:
permissions- a consumer that will call methods onDelegationPermission.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
permissionPolicy
JSON content of the associated permission policy of this delegation request.
- Parameters:
permissionPolicy- JSON content of the associated permission policy of this delegation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rolePermissionRestrictionArns
DelegationRequest.Builder rolePermissionRestrictionArns(Collection<String> 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.- Parameters:
rolePermissionRestrictionArns- If thePermissionPolicyincludes 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
rolePermissionRestrictionArns- If thePermissionPolicyincludes 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
ARN of the owner of this delegation request.
- Parameters:
ownerId- ARN of the owner of this delegation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
approverId
Sets the value of the ApproverId property for this object.- Parameters:
approverId- The new value for the ApproverId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The state of this delegation request.
See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.
- Parameters:
state- The state of this delegation request.See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The state of this delegation request.
See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.
- Parameters:
state- The state of this delegation request.See the Understanding the Request Lifecycle for an explanation of how these states are transitioned.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requestorId
Identity of the requestor of this delegation request. This will be an Amazon Web Services account ID.
- Parameters:
requestorId- Identity of the requestor of this delegation request. This will be an Amazon Web Services account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
requestorName
A friendly name of the requestor.
- Parameters:
requestorName- A friendly name of the requestor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createDate
Creation date (timestamp) of this delegation request.
- Parameters:
createDate- Creation date (timestamp) of this delegation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionDuration
The life-time of the requested session credential.
- Parameters:
sessionDuration- The life-time of the requested session credential.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redirectUrl
A URL to be redirected to once the delegation request is approved. Partners provide this URL when creating the delegation request.
- Parameters:
redirectUrl- A URL to be redirected to once the delegation request is approved. Partners provide this URL when creating the delegation request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notes
Notes added to this delegation request, if this request was updated via the UpdateDelegationRequest API.
- Parameters:
notes- Notes added to this delegation request, if this request was updated via the UpdateDelegationRequest API.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rejectionReason
Reasons for rejecting this delegation request, if this request was rejected. See also RejectDelegationRequest API documentation.
- Parameters:
rejectionReason- Reasons for rejecting this delegation request, if this request was rejected. See also RejectDelegationRequest API documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onlySendByOwner
A flag indicating whether the SendDelegationToken must be called by the owner of this delegation request. This is set by the requesting partner.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
updatedTime
Last updated timestamp of the request.
- Parameters:
updatedTime- Last updated timestamp of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-