public static interface AttachPolicyRequest.Builder extends CloudDirectoryRequest.Builder, CopyableBuilder<AttachPolicyRequest.Builder,AttachPolicyRequest>
Modifier and Type | Method and Description |
---|---|
AttachPolicyRequest.Builder |
directoryArn(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.
|
AttachPolicyRequest.Builder |
objectReference(ObjectReference objectReference)
The reference that identifies the object to which the policy will be attached.
|
AttachPolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
AttachPolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
default AttachPolicyRequest.Builder |
policyReference(Consumer<ObjectReference.Builder> policyReference)
The reference that is associated with the policy object.
|
AttachPolicyRequest.Builder |
policyReference(ObjectReference policyReference)
The reference that is associated with the policy object.
|
build
overrideConfiguration
copy
applyMutation, build
AttachPolicyRequest.Builder directoryArn(String directoryArn)
AttachPolicyRequest.Builder policyReference(ObjectReference policyReference)
The reference that is associated with the policy object.
policyReference
- The reference that is associated with the policy object.default AttachPolicyRequest.Builder policyReference(Consumer<ObjectReference.Builder> policyReference)
The reference that is associated with the policy object.
This is a convenience that creates an instance of theObjectReference.Builder
avoiding the need to
create one manually via ObjectReference.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to policyReference(ObjectReference)
.policyReference
- a consumer that will call methods on ObjectReference.Builder
policyReference(ObjectReference)
AttachPolicyRequest.Builder objectReference(ObjectReference objectReference)
The reference that identifies the object to which the policy will be attached.
objectReference
- The reference that identifies the object to which the policy will be attached.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 that creates an instance of theObjectReference.Builder
avoiding the need to
create one manually via ObjectReference.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to objectReference(ObjectReference)
.objectReference
- a consumer that will call methods on ObjectReference.Builder
objectReference(ObjectReference)
AttachPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.AttachPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.