Interface AttachPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudDirectoryRequest.Builder
,CopyableBuilder<AttachPolicyRequest.Builder,
,AttachPolicyRequest> SdkBuilder<AttachPolicyRequest.Builder,
,AttachPolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AttachPolicyRequest
public static interface AttachPolicyRequest.Builder
extends CloudDirectoryRequest.Builder, SdkPojo, CopyableBuilder<AttachPolicyRequest.Builder,AttachPolicyRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondirectoryArn
(String directoryArn) The Amazon Resource Name (ARN) that is associated with the Directory where both objects reside.default AttachPolicyRequest.Builder
objectReference
(Consumer<ObjectReference.Builder> objectReference) The reference that identifies the object to which the policy will be attached.objectReference
(ObjectReference objectReference) The reference that identifies the object to which the policy will be attached.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default AttachPolicyRequest.Builder
policyReference
(Consumer<ObjectReference.Builder> policyReference) The reference that is associated with the policy object.policyReference
(ObjectReference policyReference) The reference that is associated with the policy object.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.clouddirectory.model.CloudDirectoryRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
directoryArn
-
policyReference
The reference that is associated with the policy object.
- Parameters:
policyReference
- The reference that is associated with the policy object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyReference
default AttachPolicyRequest.Builder policyReference(Consumer<ObjectReference.Builder> policyReference) The reference that is associated with the policy object.
This is a convenience method that creates an instance of theObjectReference.Builder
avoiding the need to create one manually viaObjectReference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicyReference(ObjectReference)
.- Parameters:
policyReference
- a consumer that will call methods onObjectReference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
objectReference
The reference that identifies the object to which the policy will be attached.
- Parameters:
objectReference
- The reference that identifies the object to which the policy will be attached.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectReference
default AttachPolicyRequest.Builder objectReference(Consumer<ObjectReference.Builder> objectReference) The reference that identifies the object to which the policy will be attached.
This is a convenience method that creates an instance of theObjectReference.Builder
avoiding the need to create one manually viaObjectReference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toobjectReference(ObjectReference)
.- Parameters:
objectReference
- a consumer that will call methods onObjectReference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
AttachPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AttachPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-