Interface CreateEntitlementRequest.Builder
- All Superinterfaces:
AccountAccessRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateEntitlementRequest.Builder,,CreateEntitlementRequest> SdkBuilder<CreateEntitlementRequest.Builder,,CreateEntitlementRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateEntitlementRequest
@Mutable
@NotThreadSafe
public static interface CreateEntitlementRequest.Builder
extends AccountAccessRequest.Builder, SdkPojo, CopyableBuilder<CreateEntitlementRequest.Builder,CreateEntitlementRequest>
-
Method Summary
Modifier and TypeMethodDescriptionapplicationArn(String applicationArn) Specifies the ARN of the application to create the entitlement for.default CreateEntitlementRequest.Builderentitlement(Consumer<Entitlement.Builder> entitlement) Specifies the entitlement configuration, including the principal and the IAM role to grant access to.entitlement(Entitlement entitlement) Specifies the entitlement configuration, including the principal and the IAM role to grant access to.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.services.accountaccess.model.AccountAccessRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods 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
-
applicationArn
Specifies the ARN of the application to create the entitlement for.
- Parameters:
applicationArn- Specifies the ARN of the application to create the entitlement for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entitlement
Specifies the entitlement configuration, including the principal and the IAM role to grant access to.
- Parameters:
entitlement- Specifies the entitlement configuration, including the principal and the IAM role to grant access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
entitlement
Specifies the entitlement configuration, including the principal and the IAM role to grant access to.
This is a convenience method that creates an instance of theEntitlement.Builderavoiding the need to create one manually viaEntitlement.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toentitlement(Entitlement).- Parameters:
entitlement- a consumer that will call methods onEntitlement.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateEntitlementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateEntitlementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-