/** * 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 AWS_MACIE2_API GetMemberResult { public: GetMemberResult(); GetMemberResult(const Aws::AmazonWebServiceResult& result); GetMemberResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

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

The AWS account ID for the account.

*/ inline GetMemberResult& WithAccountId(const char* value) { SetAccountId(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.

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

The email address for the account.

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

The email address for the account.

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

The email address for the account.

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

The email address for the account.

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

The email address for the account.

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

The email address for the account.

*/ 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 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 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 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 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 invitation hasn't been sent to the account.

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

The AWS account ID for the master account.

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

The AWS account ID for the master account.

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

The AWS account ID for the master account.

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

The AWS account ID for the master account.

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

The AWS account ID for the master account.

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

The AWS account ID for the master account.

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

The AWS account ID for the master account.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

A map of key-value pairs that identifies the tags (keys and values) that are * associated with the member 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 identifies the tags (keys and values) that are * associated with the member 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 identifies the tags (keys and values) that are * associated with the member 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 identifies the tags (keys and values) that are * associated with the member 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 identifies the tags (keys and values) that are * associated with the member 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 identifies the tags (keys and values) that are * associated with the member 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 identifies the tags (keys and values) that are * associated with the member 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 master * 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 master * 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 master * 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 master * 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 master * account.

*/ inline GetMemberResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} private: Aws::String m_accountId; 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; }; } // namespace Model } // namespace Macie2 } // namespace Aws