/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { class GetMemberResult { public: AWS_MACIE2_API GetMemberResult(); AWS_MACIE2_API GetMemberResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetMemberResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Web Services account ID for the account.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account ID for the account.

*/ inline void SetAccountId(const Aws::String& value) { m_accountId = value; } /** *

The Amazon Web Services account ID for the account.

*/ inline void SetAccountId(Aws::String&& value) { m_accountId = std::move(value); } /** *

The Amazon Web Services account ID for the account.

*/ inline void SetAccountId(const char* value) { m_accountId.assign(value); } /** *

The Amazon Web Services account ID for the account.

*/ inline GetMemberResult& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account ID for the account.

*/ inline GetMemberResult& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID for the account.

*/ inline GetMemberResult& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account ID for the administrator account.

*/ inline const Aws::String& GetAdministratorAccountId() const{ return m_administratorAccountId; } /** *

The Amazon Web Services account ID for the administrator account.

*/ inline void SetAdministratorAccountId(const Aws::String& value) { m_administratorAccountId = value; } /** *

The Amazon Web Services account ID for the administrator account.

*/ inline void SetAdministratorAccountId(Aws::String&& value) { m_administratorAccountId = std::move(value); } /** *

The Amazon Web Services account ID for the administrator account.

*/ inline void SetAdministratorAccountId(const char* value) { m_administratorAccountId.assign(value); } /** *

The Amazon Web Services account ID for the administrator account.

*/ inline GetMemberResult& WithAdministratorAccountId(const Aws::String& value) { SetAdministratorAccountId(value); return *this;} /** *

The Amazon Web Services account ID for the administrator account.

*/ inline GetMemberResult& WithAdministratorAccountId(Aws::String&& value) { SetAdministratorAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID for the administrator account.

*/ inline GetMemberResult& WithAdministratorAccountId(const char* value) { SetAdministratorAccountId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the account.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the account.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the account.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the account.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the account.

*/ inline GetMemberResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the account.

*/ inline GetMemberResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the account.

*/ inline GetMemberResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The email address for the account. This value is null if the account is * associated with the administrator account through Organizations.

*/ inline const Aws::String& GetEmail() const{ return m_email; } /** *

The email address for the account. This value is null if the account is * associated with the administrator account through Organizations.

*/ inline void SetEmail(const Aws::String& value) { m_email = value; } /** *

The email address for the account. This value is null if the account is * associated with the administrator account through Organizations.

*/ inline void SetEmail(Aws::String&& value) { m_email = std::move(value); } /** *

The email address for the account. This value is null if the account is * associated with the administrator account through Organizations.

*/ inline void SetEmail(const char* value) { m_email.assign(value); } /** *

The email address for the account. This value is null if the account is * associated with the administrator account through Organizations.

*/ inline GetMemberResult& WithEmail(const Aws::String& value) { SetEmail(value); return *this;} /** *

The email address for the account. This value is null if the account is * associated with the administrator account through Organizations.

*/ inline GetMemberResult& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;} /** *

The email address for the account. This value is null if the account is * associated with the administrator account through Organizations.

*/ inline GetMemberResult& WithEmail(const char* value) { SetEmail(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie * membership invitation was last sent to the account. This value is null if a * Macie membership invitation hasn't been sent to the account.

*/ inline const Aws::Utils::DateTime& GetInvitedAt() const{ return m_invitedAt; } /** *

The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie * membership invitation was last sent to the account. This value is null if a * Macie membership invitation hasn't been sent to the account.

*/ inline void SetInvitedAt(const Aws::Utils::DateTime& value) { m_invitedAt = value; } /** *

The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie * membership invitation was last sent to the account. This value is null if a * Macie membership invitation hasn't been sent to the account.

*/ inline void SetInvitedAt(Aws::Utils::DateTime&& value) { m_invitedAt = std::move(value); } /** *

The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie * membership invitation was last sent to the account. This value is null if a * Macie membership invitation hasn't been sent to the account.

*/ inline GetMemberResult& WithInvitedAt(const Aws::Utils::DateTime& value) { SetInvitedAt(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when an Amazon Macie * membership invitation was last sent to the account. This value is null if a * Macie membership invitation hasn't been sent to the account.

*/ inline GetMemberResult& WithInvitedAt(Aws::Utils::DateTime&& value) { SetInvitedAt(std::move(value)); return *this;} /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. This property has been replaced by the administratorAccountId property * and is retained only for backward compatibility.

*/ inline const Aws::String& GetMasterAccountId() const{ return m_masterAccountId; } /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. This property has been replaced by the administratorAccountId property * and is retained only for backward compatibility.

*/ inline void SetMasterAccountId(const Aws::String& value) { m_masterAccountId = value; } /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. This property has been replaced by the administratorAccountId property * and is retained only for backward compatibility.

*/ inline void SetMasterAccountId(Aws::String&& value) { m_masterAccountId = std::move(value); } /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. This property has been replaced by the administratorAccountId property * and is retained only for backward compatibility.

*/ inline void SetMasterAccountId(const char* value) { m_masterAccountId.assign(value); } /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. This property has been replaced by the administratorAccountId property * and is retained only for backward compatibility.

*/ inline GetMemberResult& WithMasterAccountId(const Aws::String& value) { SetMasterAccountId(value); return *this;} /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. This property has been replaced by the administratorAccountId property * and is retained only for backward compatibility.

*/ inline GetMemberResult& WithMasterAccountId(Aws::String&& value) { SetMasterAccountId(std::move(value)); return *this;} /** *

(Deprecated) The Amazon Web Services account ID for the administrator * account. This property has been replaced by the administratorAccountId property * and is retained only for backward compatibility.

*/ inline GetMemberResult& WithMasterAccountId(const char* value) { SetMasterAccountId(value); return *this;} /** *

The current status of the relationship between the account and the * administrator account.

*/ inline const RelationshipStatus& GetRelationshipStatus() const{ return m_relationshipStatus; } /** *

The current status of the relationship between the account and the * administrator account.

*/ inline void SetRelationshipStatus(const RelationshipStatus& value) { m_relationshipStatus = value; } /** *

The current status of the relationship between the account and the * administrator account.

*/ inline void SetRelationshipStatus(RelationshipStatus&& value) { m_relationshipStatus = std::move(value); } /** *

The current status of the relationship between the account and the * administrator account.

*/ inline GetMemberResult& WithRelationshipStatus(const RelationshipStatus& value) { SetRelationshipStatus(value); return *this;} /** *

The current status of the relationship between the account and the * administrator account.

*/ inline GetMemberResult& WithRelationshipStatus(RelationshipStatus&& value) { SetRelationshipStatus(std::move(value)); return *this;} /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline GetMemberResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline GetMemberResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline GetMemberResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline GetMemberResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline GetMemberResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline GetMemberResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline GetMemberResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline GetMemberResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

A map of key-value pairs that specifies which tags (keys and values) are * associated with the account in Amazon Macie.

*/ inline GetMemberResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

The date and time, in UTC and extended ISO 8601 format, of the most recent * change to the status of the relationship between the account and the * administrator account.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The date and time, in UTC and extended ISO 8601 format, of the most recent * change to the status of the relationship between the account and the * administrator account.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } /** *

The date and time, in UTC and extended ISO 8601 format, of the most recent * change to the status of the relationship between the account and the * administrator account.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } /** *

The date and time, in UTC and extended ISO 8601 format, of the most recent * change to the status of the relationship between the account and the * administrator account.

*/ inline GetMemberResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, of the most recent * change to the status of the relationship between the account and the * administrator account.

*/ inline GetMemberResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetMemberResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMemberResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMemberResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_accountId; Aws::String m_administratorAccountId; Aws::String m_arn; Aws::String m_email; Aws::Utils::DateTime m_invitedAt; Aws::String m_masterAccountId; RelationshipStatus m_relationshipStatus; Aws::Map m_tags; Aws::Utils::DateTime m_updatedAt; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws