Interface SubscribedPrincipal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SubscribedPrincipal.Builder,
,SubscribedPrincipal> SdkBuilder<SubscribedPrincipal.Builder,
,SubscribedPrincipal> SdkPojo
- Enclosing class:
SubscribedPrincipal
@Mutable
@NotThreadSafe
public static interface SubscribedPrincipal.Builder
extends SdkPojo, CopyableBuilder<SubscribedPrincipal.Builder,SubscribedPrincipal>
-
Method Summary
Modifier and TypeMethodDescriptiondefault SubscribedPrincipal.Builder
project
(Consumer<SubscribedProject.Builder> project) The project that has the subscription grant.project
(SubscribedProject project) The project that has the subscription grant.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, sdkFieldNameToField, sdkFields
-
Method Details
-
project
The project that has the subscription grant.
- Parameters:
project
- The project that has the subscription grant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
project
The project that has the subscription grant.
This is a convenience method that creates an instance of theSubscribedProject.Builder
avoiding the need to create one manually viaSubscribedProject.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toproject(SubscribedProject)
.- Parameters:
project
- a consumer that will call methods onSubscribedProject.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-