Interface BatchAttachPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BatchAttachPolicy.Builder,
,BatchAttachPolicy> SdkBuilder<BatchAttachPolicy.Builder,
,BatchAttachPolicy> SdkPojo
- Enclosing class:
BatchAttachPolicy
public static interface BatchAttachPolicy.Builder
extends SdkPojo, CopyableBuilder<BatchAttachPolicy.Builder,BatchAttachPolicy>
-
Method Summary
Modifier and TypeMethodDescriptiondefault BatchAttachPolicy.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.default BatchAttachPolicy.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.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
-
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 BatchAttachPolicy.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 BatchAttachPolicy.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:
-