Interface PrincipalInput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PrincipalInput.Builder,,PrincipalInput> SdkBuilder<PrincipalInput.Builder,,PrincipalInput> SdkPojo
- Enclosing class:
PrincipalInput
@Mutable
@NotThreadSafe
public static interface PrincipalInput.Builder
extends SdkPojo, CopyableBuilder<PrincipalInput.Builder,PrincipalInput>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PrincipalInput.BuilderAn IAM role or IAM user.iam(IamPrincipalInput iam) An IAM role or IAM user.Methods 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
-
iam
An IAM role or IAM user.
- Parameters:
iam- An IAM role or IAM user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
iam
An IAM role or IAM user.
This is a convenience method that creates an instance of theIamPrincipalInput.Builderavoiding the need to create one manually viaIamPrincipalInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toiam(IamPrincipalInput).- Parameters:
iam- a consumer that will call methods onIamPrincipalInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-