/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about an Identity and Access Management (IAM) user who
* performed an action on an affected resource.See Also:
AWS API
* Reference
The unique identifier for the Amazon Web Services account that's associated * with the IAM user who performed the action.
*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *The unique identifier for the Amazon Web Services account that's associated * with the IAM user who performed the action.
*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *The unique identifier for the Amazon Web Services account that's associated * with the IAM user who performed the action.
*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *The unique identifier for the Amazon Web Services account that's associated * with the IAM user who performed the action.
*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *The unique identifier for the Amazon Web Services account that's associated * with the IAM user who performed the action.
*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *The unique identifier for the Amazon Web Services account that's associated * with the IAM user who performed the action.
*/ inline IamUser& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *The unique identifier for the Amazon Web Services account that's associated * with the IAM user who performed the action.
*/ inline IamUser& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *The unique identifier for the Amazon Web Services account that's associated * with the IAM user who performed the action.
*/ inline IamUser& 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 who 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 who 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 who 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 who 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 who 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 who performed the * action.
*/ inline IamUser& 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 who performed the * action.
*/ inline IamUser& 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 who performed the * action.
*/ inline IamUser& WithArn(const char* value) { SetArn(value); return *this;} /** *The unique identifier for the IAM user who performed the action.
*/ inline const Aws::String& GetPrincipalId() const{ return m_principalId; } /** *The unique identifier for the IAM user who performed the action.
*/ inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; } /** *The unique identifier for the IAM user who performed the action.
*/ inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; } /** *The unique identifier for the IAM user who performed the action.
*/ inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); } /** *The unique identifier for the IAM user who performed the action.
*/ inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); } /** *The unique identifier for the IAM user who performed the action.
*/ inline IamUser& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;} /** *The unique identifier for the IAM user who performed the action.
*/ inline IamUser& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;} /** *The unique identifier for the IAM user who performed the action.
*/ inline IamUser& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;} /** *The username of the IAM user who performed the action.
*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *The username of the IAM user who performed the action.
*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *The username of the IAM user who performed the action.
*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *The username of the IAM user who performed the action.
*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *The username of the IAM user who performed the action.
*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *The username of the IAM user who performed the action.
*/ inline IamUser& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *The username of the IAM user who performed the action.
*/ inline IamUser& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *The username of the IAM user who performed the action.
*/ inline IamUser& WithUserName(const char* value) { SetUserName(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_principalId; bool m_principalIdHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws