Interface AttachPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudDirectoryRequest.Builder,CopyableBuilder<AttachPolicyRequest.Builder,,AttachPolicyRequest> SdkBuilder<AttachPolicyRequest.Builder,,AttachPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
AttachPolicyRequest
@Mutable
@NotThreadSafe
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.BuilderobjectReference(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.BuilderpolicyReference(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.clouddirectory.model.CloudDirectoryRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaObjectReference.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaObjectReference.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-