/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about an IAM role, including all of the role's
* policies.See Also:
AWS
* API Reference
The trust policy that grants permission to assume the role.
*/ inline const Aws::String& GetAssumeRolePolicyDocument() const{ return m_assumeRolePolicyDocument; } /** *The trust policy that grants permission to assume the role.
*/ inline bool AssumeRolePolicyDocumentHasBeenSet() const { return m_assumeRolePolicyDocumentHasBeenSet; } /** *The trust policy that grants permission to assume the role.
*/ inline void SetAssumeRolePolicyDocument(const Aws::String& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = value; } /** *The trust policy that grants permission to assume the role.
*/ inline void SetAssumeRolePolicyDocument(Aws::String&& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = std::move(value); } /** *The trust policy that grants permission to assume the role.
*/ inline void SetAssumeRolePolicyDocument(const char* value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument.assign(value); } /** *The trust policy that grants permission to assume the role.
*/ inline AwsIamRoleDetails& WithAssumeRolePolicyDocument(const Aws::String& value) { SetAssumeRolePolicyDocument(value); return *this;} /** *The trust policy that grants permission to assume the role.
*/ inline AwsIamRoleDetails& WithAssumeRolePolicyDocument(Aws::String&& value) { SetAssumeRolePolicyDocument(std::move(value)); return *this;} /** *The trust policy that grants permission to assume the role.
*/ inline AwsIamRoleDetails& WithAssumeRolePolicyDocument(const char* value) { SetAssumeRolePolicyDocument(value); return *this;} /** *Indicates when the role was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the role was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the role was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the role was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the role was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the role was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the role was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
Indicates when the role was created.
Uses the date-time
* format specified in RFC 3339 section 5.6,
* Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z.
The stable and unique string identifying the role.
*/ inline const Aws::String& GetRoleId() const{ return m_roleId; } /** *The stable and unique string identifying the role.
*/ inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; } /** *The stable and unique string identifying the role.
*/ inline void SetRoleId(const Aws::String& value) { m_roleIdHasBeenSet = true; m_roleId = value; } /** *The stable and unique string identifying the role.
*/ inline void SetRoleId(Aws::String&& value) { m_roleIdHasBeenSet = true; m_roleId = std::move(value); } /** *The stable and unique string identifying the role.
*/ inline void SetRoleId(const char* value) { m_roleIdHasBeenSet = true; m_roleId.assign(value); } /** *The stable and unique string identifying the role.
*/ inline AwsIamRoleDetails& WithRoleId(const Aws::String& value) { SetRoleId(value); return *this;} /** *The stable and unique string identifying the role.
*/ inline AwsIamRoleDetails& WithRoleId(Aws::String&& value) { SetRoleId(std::move(value)); return *this;} /** *The stable and unique string identifying the role.
*/ inline AwsIamRoleDetails& WithRoleId(const char* value) { SetRoleId(value); return *this;} /** *The friendly name that identifies the role.
*/ inline const Aws::String& GetRoleName() const{ return m_roleName; } /** *The friendly name that identifies the role.
*/ inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; } /** *The friendly name that identifies the role.
*/ inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; } /** *The friendly name that identifies the role.
*/ inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); } /** *The friendly name that identifies the role.
*/ inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); } /** *The friendly name that identifies the role.
*/ inline AwsIamRoleDetails& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;} /** *The friendly name that identifies the role.
*/ inline AwsIamRoleDetails& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;} /** *The friendly name that identifies the role.
*/ inline AwsIamRoleDetails& WithRoleName(const char* value) { SetRoleName(value); return *this;} /** *The maximum session duration (in seconds) that you want to set for the * specified role.
*/ inline int GetMaxSessionDuration() const{ return m_maxSessionDuration; } /** *The maximum session duration (in seconds) that you want to set for the * specified role.
*/ inline bool MaxSessionDurationHasBeenSet() const { return m_maxSessionDurationHasBeenSet; } /** *The maximum session duration (in seconds) that you want to set for the * specified role.
*/ inline void SetMaxSessionDuration(int value) { m_maxSessionDurationHasBeenSet = true; m_maxSessionDuration = value; } /** *The maximum session duration (in seconds) that you want to set for the * specified role.
*/ inline AwsIamRoleDetails& WithMaxSessionDuration(int value) { SetMaxSessionDuration(value); return *this;} /** *The path to the role.
*/ inline const Aws::String& GetPath() const{ return m_path; } /** *The path to the role.
*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *The path to the role.
*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *The path to the role.
*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *The path to the role.
*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *The path to the role.
*/ inline AwsIamRoleDetails& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *The path to the role.
*/ inline AwsIamRoleDetails& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *The path to the role.
*/ inline AwsIamRoleDetails& WithPath(const char* value) { SetPath(value); return *this;} private: Aws::String m_assumeRolePolicyDocument; bool m_assumeRolePolicyDocumentHasBeenSet; Aws::String m_createDate; bool m_createDateHasBeenSet; Aws::String m_roleId; bool m_roleIdHasBeenSet; Aws::String m_roleName; bool m_roleNameHasBeenSet; int m_maxSessionDuration; bool m_maxSessionDurationHasBeenSet; Aws::String m_path; bool m_pathHasBeenSet; }; } // namespace Model } // namespace SecurityHub } // namespace Aws