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.
|
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.
|
AttachPolicyRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
AttachPolicyRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
buildrequestOverrideConfigcopyapply, buildAttachPolicyRequest.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.BuilderpolicyReference(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.BuilderobjectReference(ObjectReference)AttachPolicyRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderawsRequestOverrideConfig - The override configuration.AttachPolicyRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfig.Builder will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.