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) TheAccessPolicy
and scope associated to theAccessEntry
.associatedAccessPolicy
(AssociatedAccessPolicy associatedAccessPolicy) TheAccessPolicy
and 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
copy
Methods inherited from interface software.amazon.awssdk.services.eks.model.EksResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods 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
AccessPolicy
and scope associated to theAccessEntry
.- Parameters:
associatedAccessPolicy
- TheAccessPolicy
and 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 theAccessPolicy
and scope associated to theAccessEntry
.AssociatedAccessPolicy.Builder
avoiding the need to create one manually viaAssociatedAccessPolicy.builder()
.When the
Consumer
completes,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:
-