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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AttachPolicyRequest.BuilderdirectoryArn(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.AttachPolicyRequest.BuilderobjectReference(ObjectReference objectReference)The reference that identifies the object to which the policy will be attached.AttachPolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)AttachPolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default AttachPolicyRequest.BuilderpolicyReference(Consumer<ObjectReference.Builder> policyReference)The reference that is associated with the policy object.AttachPolicyRequest.BuilderpolicyReference(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 Detail
-
directoryArn
AttachPolicyRequest.Builder directoryArn(String directoryArn)
-
policyReference
AttachPolicyRequest.Builder policyReference(ObjectReference 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:
policyReference(ObjectReference)
-
objectReference
AttachPolicyRequest.Builder objectReference(ObjectReference 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:
objectReference(ObjectReference)
-
overrideConfiguration
AttachPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
AttachPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-