/** * 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 * user.

See Also:

AWS * API Reference

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

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

If you delete the IAM user, * access policies that contain this identity include an empty arn. * You can delete the access policy for the IAM user that no longer exists.

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

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

If you delete the IAM user, * access policies that contain this identity include an empty arn. * You can delete the access policy for the IAM user that no longer exists.

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

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

If you delete the IAM user, * access policies that contain this identity include an empty arn. * You can delete the access policy for the IAM user that no longer exists.

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

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

If you delete the IAM user, * access policies that contain this identity include an empty arn. * You can delete the access policy for the IAM user that no longer exists.

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

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

If you delete the IAM user, * access policies that contain this identity include an empty arn. * You can delete the access policy for the IAM user that no longer exists.

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

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

If you delete the IAM user, * access policies that contain this identity include an empty arn. * You can delete the access policy for the IAM user that no longer exists.

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

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

If you delete the IAM user, * access policies that contain this identity include an empty arn. * You can delete the access policy for the IAM user that no longer exists.

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

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

If you delete the IAM user, * access policies that contain this identity include an empty arn. * You can delete the access policy for the IAM user that no longer exists.

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