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