Interface GetAdministratorAccountResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetAdministratorAccountResponse.Builder,,GetAdministratorAccountResponse> Macie2Response.Builder,SdkBuilder<GetAdministratorAccountResponse.Builder,,GetAdministratorAccountResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetAdministratorAccountResponse
@Mutable
@NotThreadSafe
public static interface GetAdministratorAccountResponse.Builder
extends Macie2Response.Builder, SdkPojo, CopyableBuilder<GetAdministratorAccountResponse.Builder,GetAdministratorAccountResponse>
-
Method Summary
Modifier and TypeMethodDescriptionadministrator(Consumer<Invitation.Builder> administrator) The Amazon Web Services account ID for the administrator account.administrator(Invitation administrator) The Amazon Web Services account ID for the administrator account.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.macie2.model.Macie2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
administrator
The Amazon Web Services account ID for the administrator account. If the accounts are associated by an Amazon Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.
- Parameters:
administrator- The Amazon Web Services account ID for the administrator account. If the accounts are associated by an Amazon Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
administrator
default GetAdministratorAccountResponse.Builder administrator(Consumer<Invitation.Builder> administrator) The Amazon Web Services account ID for the administrator account. If the accounts are associated by an Amazon Macie membership invitation, this object also provides details about the invitation that was sent to establish the relationship between the accounts.
This is a convenience method that creates an instance of theInvitation.Builderavoiding the need to create one manually viaInvitation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toadministrator(Invitation).- Parameters:
administrator- a consumer that will call methods onInvitation.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-