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

Contains information about an Identity and Access Management role. For more * information, see IAM * roles in the IAM User Guide.

See Also:

AWS * API Reference

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

The ARN of the IAM role. For more information, see IAM * ARNs in the IAM User Guide.

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

The ARN of the IAM role. For more information, see IAM * ARNs in the IAM User Guide.

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

The ARN of the IAM role. For more information, see IAM * ARNs in the IAM User Guide.

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

The ARN of the IAM role. For more information, see IAM * ARNs in the IAM User Guide.

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

The ARN of the IAM role. For more information, see IAM * ARNs in the IAM User Guide.

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

The ARN of the IAM role. For more information, see IAM * ARNs in the IAM User Guide.

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

The ARN of the IAM role. For more information, see IAM * ARNs in the IAM User Guide.

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

The ARN of the IAM role. For more information, see IAM * ARNs in the IAM User Guide.

*/ inline IAMRoleIdentity& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws