/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { /** *

Provides information about an AWS account and entity that performed an action * on an affected resource. The action was performed using the credentials for your * AWS account.

See Also:

AWS * API Reference

*/ class AWS_MACIE2_API UserIdentityRoot { public: UserIdentityRoot(); UserIdentityRoot(Aws::Utils::Json::JsonView jsonValue); UserIdentityRoot& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique identifier for the AWS account.

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

The unique identifier for the AWS account.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The unique identifier for the AWS account.

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

The unique identifier for the AWS account.

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

The unique identifier for the AWS account.

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

The unique identifier for the AWS account.

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

The unique identifier for the AWS account.

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

The unique identifier for the AWS account.

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

The Amazon Resource Name (ARN) of the principal that performed the action. * The last section of the ARN contains the name of the user or role that performed * the action.

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

The Amazon Resource Name (ARN) of the principal that performed the action. * The last section of the ARN contains the name of the user or role that performed * the action.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the principal that performed the action. * The last section of the ARN contains the name of the user or role that performed * the action.

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

The Amazon Resource Name (ARN) of the principal that performed the action. * The last section of the ARN contains the name of the user or role that performed * the action.

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

The Amazon Resource Name (ARN) of the principal that performed the action. * The last section of the ARN contains the name of the user or role that performed * the action.

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

The Amazon Resource Name (ARN) of the principal that performed the action. * The last section of the ARN contains the name of the user or role that performed * the action.

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

The Amazon Resource Name (ARN) of the principal that performed the action. * The last section of the ARN contains the name of the user or role that performed * the action.

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

The Amazon Resource Name (ARN) of the principal that performed the action. * The last section of the ARN contains the name of the user or role that performed * the action.

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

The unique identifier for the entity that performed the action.

*/ inline const Aws::String& GetPrincipalId() const{ return m_principalId; } /** *

The unique identifier for the entity that performed the action.

*/ inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; } /** *

The unique identifier for the entity that performed the action.

*/ inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; } /** *

The unique identifier for the entity that performed the action.

*/ inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); } /** *

The unique identifier for the entity that performed the action.

*/ inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); } /** *

The unique identifier for the entity that performed the action.

*/ inline UserIdentityRoot& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;} /** *

The unique identifier for the entity that performed the action.

*/ inline UserIdentityRoot& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;} /** *

The unique identifier for the entity that performed the action.

*/ inline UserIdentityRoot& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet; Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_principalId; bool m_principalIdHasBeenSet; }; } // namespace Model } // namespace Macie2 } // namespace Aws