Interface GetEntitlementResponse.Builder
- All Superinterfaces:
AccountAccessResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetEntitlementResponse.Builder,,GetEntitlementResponse> SdkBuilder<GetEntitlementResponse.Builder,,GetEntitlementResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetEntitlementResponse
@Mutable
@NotThreadSafe
public static interface GetEntitlementResponse.Builder
extends AccountAccessResponse.Builder, SdkPojo, CopyableBuilder<GetEntitlementResponse.Builder,GetEntitlementResponse>
-
Method Summary
Modifier and TypeMethodDescriptionapplicationArn(String applicationArn) The ARN of the application that the entitlement belongs to.The date and time when the entitlement was created.default GetEntitlementResponse.Builderentitlement(Consumer<EntitlementDetails.Builder> entitlement) The entitlement details, including the principal, IAM role, and target account.entitlement(EntitlementDetails entitlement) The entitlement details, including the principal, IAM role, and target account.entitlementId(String entitlementId) The unique identifier of the entitlement.Methods inherited from interface software.amazon.awssdk.services.accountaccess.model.AccountAccessResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
applicationArn
The ARN of the application that the entitlement belongs to.
- Parameters:
applicationArn- The ARN of the application that the entitlement belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entitlementId
The unique identifier of the entitlement.
- Parameters:
entitlementId- The unique identifier of the entitlement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entitlement
The entitlement details, including the principal, IAM role, and target account.
- Parameters:
entitlement- The entitlement details, including the principal, IAM role, and target account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entitlement
default GetEntitlementResponse.Builder entitlement(Consumer<EntitlementDetails.Builder> entitlement) The entitlement details, including the principal, IAM role, and target account.
This is a convenience method that creates an instance of theEntitlementDetails.Builderavoiding the need to create one manually viaEntitlementDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentitlement(EntitlementDetails).- Parameters:
entitlement- a consumer that will call methods onEntitlementDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The date and time when the entitlement was created.
- Parameters:
createdAt- The date and time when the entitlement was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-