/** * 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 SecurityHub { namespace Model { /** *

Information about a role associated with an instance profile.

See * Also:

AWS * API Reference

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

The ARN of the role.

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

The ARN of the role.

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

The ARN of the role.

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

The ARN of the role.

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

The ARN of the role.

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

The ARN of the role.

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

The ARN of the role.

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

The ARN of the role.

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

The policy that grants an entity permission to assume the role.

*/ inline const Aws::String& GetAssumeRolePolicyDocument() const{ return m_assumeRolePolicyDocument; } /** *

The policy that grants an entity permission to assume the role.

*/ inline bool AssumeRolePolicyDocumentHasBeenSet() const { return m_assumeRolePolicyDocumentHasBeenSet; } /** *

The policy that grants an entity permission to assume the role.

*/ inline void SetAssumeRolePolicyDocument(const Aws::String& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = value; } /** *

The policy that grants an entity permission to assume the role.

*/ inline void SetAssumeRolePolicyDocument(Aws::String&& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = std::move(value); } /** *

The policy that grants an entity permission to assume the role.

*/ inline void SetAssumeRolePolicyDocument(const char* value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument.assign(value); } /** *

The policy that grants an entity permission to assume the role.

*/ inline AwsIamInstanceProfileRole& WithAssumeRolePolicyDocument(const Aws::String& value) { SetAssumeRolePolicyDocument(value); return *this;} /** *

The policy that grants an entity permission to assume the role.

*/ inline AwsIamInstanceProfileRole& WithAssumeRolePolicyDocument(Aws::String&& value) { SetAssumeRolePolicyDocument(std::move(value)); return *this;} /** *

The policy that grants an entity permission to assume the role.

*/ inline AwsIamInstanceProfileRole& 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, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline const Aws::String& GetCreateDate() const{ return m_createDate; } /** *

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, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *

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, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(const Aws::String& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *

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, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(Aws::String&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *

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, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreateDate(const char* value) { m_createDateHasBeenSet = true; m_createDate.assign(value); } /** *

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, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamInstanceProfileRole& WithCreateDate(const Aws::String& value) { SetCreateDate(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, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamInstanceProfileRole& WithCreateDate(Aws::String&& value) { SetCreateDate(std::move(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, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsIamInstanceProfileRole& WithCreateDate(const char* value) { SetCreateDate(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 AwsIamInstanceProfileRole& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The path to the role.

*/ inline AwsIamInstanceProfileRole& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The path to the role.

*/ inline AwsIamInstanceProfileRole& WithPath(const char* value) { SetPath(value); return *this;} /** *

The identifier of the role.

*/ inline const Aws::String& GetRoleId() const{ return m_roleId; } /** *

The identifier of the role.

*/ inline bool RoleIdHasBeenSet() const { return m_roleIdHasBeenSet; } /** *

The identifier of the role.

*/ inline void SetRoleId(const Aws::String& value) { m_roleIdHasBeenSet = true; m_roleId = value; } /** *

The identifier of the role.

*/ inline void SetRoleId(Aws::String&& value) { m_roleIdHasBeenSet = true; m_roleId = std::move(value); } /** *

The identifier of the role.

*/ inline void SetRoleId(const char* value) { m_roleIdHasBeenSet = true; m_roleId.assign(value); } /** *

The identifier of the role.

*/ inline AwsIamInstanceProfileRole& WithRoleId(const Aws::String& value) { SetRoleId(value); return *this;} /** *

The identifier of the role.

*/ inline AwsIamInstanceProfileRole& WithRoleId(Aws::String&& value) { SetRoleId(std::move(value)); return *this;} /** *

The identifier of the role.

*/ inline AwsIamInstanceProfileRole& WithRoleId(const char* value) { SetRoleId(value); return *this;} /** *

The name of the role.

*/ inline const Aws::String& GetRoleName() const{ return m_roleName; } /** *

The name of the role.

*/ inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; } /** *

The name of the role.

*/ inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; } /** *

The name of the role.

*/ inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); } /** *

The name of the role.

*/ inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); } /** *

The name of the role.

*/ inline AwsIamInstanceProfileRole& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;} /** *

The name of the role.

*/ inline AwsIamInstanceProfileRole& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;} /** *

The name of the role.

*/ inline AwsIamInstanceProfileRole& WithRoleName(const char* value) { SetRoleName(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_assumeRolePolicyDocument; bool m_assumeRolePolicyDocumentHasBeenSet = false; Aws::String m_createDate; bool m_createDateHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; Aws::String m_roleId; bool m_roleIdHasBeenSet = false; Aws::String m_roleName; bool m_roleNameHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws