/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* The details about a member account. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Member implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Web Services account ID of the member account. *

*/ private String accountId; /** *

* The email address of the member account. *

*/ private String email; /** *

* This is replaced by AdministratorID. *

*

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member account. *

*/ @Deprecated private String masterId; /** *

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member account. *

*/ private String administratorId; /** *

* The status of the relationship between the member account and its administrator account. *

*

* The status can have one of the following values: *

* */ private String memberStatus; /** *

* A timestamp for the date and time when the invitation was sent to the member account. *

*/ private java.util.Date invitedAt; /** *

* The timestamp for the date and time when the member account was updated. *

*/ private java.util.Date updatedAt; /** *

* The Amazon Web Services account ID of the member account. *

* * @param accountId * The Amazon Web Services account ID of the member account. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The Amazon Web Services account ID of the member account. *

* * @return The Amazon Web Services account ID of the member account. */ public String getAccountId() { return this.accountId; } /** *

* The Amazon Web Services account ID of the member account. *

* * @param accountId * The Amazon Web Services account ID of the member account. * @return Returns a reference to this object so that method calls can be chained together. */ public Member withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The email address of the member account. *

* * @param email * The email address of the member account. */ public void setEmail(String email) { this.email = email; } /** *

* The email address of the member account. *

* * @return The email address of the member account. */ public String getEmail() { return this.email; } /** *

* The email address of the member account. *

* * @param email * The email address of the member account. * @return Returns a reference to this object so that method calls can be chained together. */ public Member withEmail(String email) { setEmail(email); return this; } /** *

* This is replaced by AdministratorID. *

*

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member account. *

* * @param masterId * This is replaced by AdministratorID.

*

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member * account. */ @Deprecated public void setMasterId(String masterId) { this.masterId = masterId; } /** *

* This is replaced by AdministratorID. *

*

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member account. *

* * @return This is replaced by AdministratorID.

*

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member * account. */ @Deprecated public String getMasterId() { return this.masterId; } /** *

* This is replaced by AdministratorID. *

*

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member account. *

* * @param masterId * This is replaced by AdministratorID.

*

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member * account. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public Member withMasterId(String masterId) { setMasterId(masterId); return this; } /** *

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member account. *

* * @param administratorId * The Amazon Web Services account ID of the Security Hub administrator account associated with this member * account. */ public void setAdministratorId(String administratorId) { this.administratorId = administratorId; } /** *

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member account. *

* * @return The Amazon Web Services account ID of the Security Hub administrator account associated with this member * account. */ public String getAdministratorId() { return this.administratorId; } /** *

* The Amazon Web Services account ID of the Security Hub administrator account associated with this member account. *

* * @param administratorId * The Amazon Web Services account ID of the Security Hub administrator account associated with this member * account. * @return Returns a reference to this object so that method calls can be chained together. */ public Member withAdministratorId(String administratorId) { setAdministratorId(administratorId); return this; } /** *

* The status of the relationship between the member account and its administrator account. *

*

* The status can have one of the following values: *

* * * @param memberStatus * The status of the relationship between the member account and its administrator account.

*

* The status can have one of the following values: *

*