Interface AssociateAccessPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<AssociateAccessPolicyResponse.Builder,,AssociateAccessPolicyResponse> EksResponse.Builder,SdkBuilder<AssociateAccessPolicyResponse.Builder,,AssociateAccessPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AssociateAccessPolicyResponse
public static interface AssociateAccessPolicyResponse.Builder
extends EksResponse.Builder, SdkPojo, CopyableBuilder<AssociateAccessPolicyResponse.Builder,AssociateAccessPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionassociatedAccessPolicy(Consumer<AssociatedAccessPolicy.Builder> associatedAccessPolicy) TheAccessPolicyand scope associated to theAccessEntry.associatedAccessPolicy(AssociatedAccessPolicy associatedAccessPolicy) TheAccessPolicyand scope associated to theAccessEntry.clusterName(String clusterName) The name of your cluster.principalArn(String principalArn) The ARN of the IAM principal for theAccessEntry.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.eks.model.EksResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
clusterName
The name of your cluster.
- Parameters:
clusterName- The name of your cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principalArn
The ARN of the IAM principal for the
AccessEntry.- Parameters:
principalArn- The ARN of the IAM principal for theAccessEntry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedAccessPolicy
AssociateAccessPolicyResponse.Builder associatedAccessPolicy(AssociatedAccessPolicy associatedAccessPolicy) The
AccessPolicyand scope associated to theAccessEntry.- Parameters:
associatedAccessPolicy- TheAccessPolicyand scope associated to theAccessEntry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
associatedAccessPolicy
default AssociateAccessPolicyResponse.Builder associatedAccessPolicy(Consumer<AssociatedAccessPolicy.Builder> associatedAccessPolicy) The
This is a convenience method that creates an instance of theAccessPolicyand scope associated to theAccessEntry.AssociatedAccessPolicy.Builderavoiding the need to create one manually viaAssociatedAccessPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassociatedAccessPolicy(AssociatedAccessPolicy).- Parameters:
associatedAccessPolicy- a consumer that will call methods onAssociatedAccessPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-