/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the entity that created the session.See
* Also:
AWS
* API Reference
The type of principal (user, role, or group) that created the session.
*/ inline const Aws::String& GetType() const{ return m_type; } /** *The type of principal (user, role, or group) that created the session.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *The type of principal (user, role, or group) that created the session.
*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *The type of principal (user, role, or group) that created the session.
*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *The type of principal (user, role, or group) that created the session.
*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *The type of principal (user, role, or group) that created the session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithType(const Aws::String& value) { SetType(value); return *this;} /** *The type of principal (user, role, or group) that created the session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *The type of principal (user, role, or group) that created the session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithType(const char* value) { SetType(value); return *this;} /** *The principal ID of the principal (user, role, or group) that created the * session.
*/ inline const Aws::String& GetPrincipalId() const{ return m_principalId; } /** *The principal ID of the principal (user, role, or group) that created the * session.
*/ inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; } /** *The principal ID of the principal (user, role, or group) that created the * session.
*/ inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; } /** *The principal ID of the principal (user, role, or group) that created the * session.
*/ inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); } /** *The principal ID of the principal (user, role, or group) that created the * session.
*/ inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); } /** *The principal ID of the principal (user, role, or group) that created the * session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;} /** *The principal ID of the principal (user, role, or group) that created the * session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;} /** *The principal ID of the principal (user, role, or group) that created the * session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;} /** *The ARN of the session.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the session.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the session.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the session.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the session.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithArn(const char* value) { SetArn(value); return *this;} /** *The identifier of the Amazon Web Services account that created the * session.
*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *The identifier of the Amazon Web Services account that created the * session.
*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *The identifier of the Amazon Web Services account that created the * session.
*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *The identifier of the Amazon Web Services account that created the * session.
*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *The identifier of the Amazon Web Services account that created the * session.
*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *The identifier of the Amazon Web Services account that created the * session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *The identifier of the Amazon Web Services account that created the * session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *The identifier of the Amazon Web Services account that created the * session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *The name of the principal that created the session.
*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *The name of the principal that created the session.
*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *The name of the principal that created the session.
*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *The name of the principal that created the session.
*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *The name of the principal that created the session.
*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *The name of the principal that created the session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *The name of the principal that created the session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *The name of the principal that created the session.
*/ inline AwsIamAccessKeySessionContextSessionIssuer& WithUserName(const char* value) { SetUserName(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_principalId; bool m_principalIdHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws