/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace STS { namespace Model { /** *

Identifiers for the federated user that is associated with the * credentials.

See Also:

AWS * API Reference

*/ class FederatedUser { public: AWS_STS_API FederatedUser(); AWS_STS_API FederatedUser(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_STS_API FederatedUser& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_STS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_STS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The string that identifies the federated user associated with the * credentials, similar to the unique ID of an IAM user.

*/ inline const Aws::String& GetFederatedUserId() const{ return m_federatedUserId; } /** *

The string that identifies the federated user associated with the * credentials, similar to the unique ID of an IAM user.

*/ inline bool FederatedUserIdHasBeenSet() const { return m_federatedUserIdHasBeenSet; } /** *

The string that identifies the federated user associated with the * credentials, similar to the unique ID of an IAM user.

*/ inline void SetFederatedUserId(const Aws::String& value) { m_federatedUserIdHasBeenSet = true; m_federatedUserId = value; } /** *

The string that identifies the federated user associated with the * credentials, similar to the unique ID of an IAM user.

*/ inline void SetFederatedUserId(Aws::String&& value) { m_federatedUserIdHasBeenSet = true; m_federatedUserId = std::move(value); } /** *

The string that identifies the federated user associated with the * credentials, similar to the unique ID of an IAM user.

*/ inline void SetFederatedUserId(const char* value) { m_federatedUserIdHasBeenSet = true; m_federatedUserId.assign(value); } /** *

The string that identifies the federated user associated with the * credentials, similar to the unique ID of an IAM user.

*/ inline FederatedUser& WithFederatedUserId(const Aws::String& value) { SetFederatedUserId(value); return *this;} /** *

The string that identifies the federated user associated with the * credentials, similar to the unique ID of an IAM user.

*/ inline FederatedUser& WithFederatedUserId(Aws::String&& value) { SetFederatedUserId(std::move(value)); return *this;} /** *

The string that identifies the federated user associated with the * credentials, similar to the unique ID of an IAM user.

*/ inline FederatedUser& WithFederatedUserId(const char* value) { SetFederatedUserId(value); return *this;} /** *

The ARN that specifies the federated user that is associated with the * credentials. For more information about ARNs and how to use them in policies, * see IAM * Identifiers in the IAM User Guide.

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

The ARN that specifies the federated user that is associated with the * credentials. For more information about ARNs and how to use them in policies, * see IAM * Identifiers in the IAM User Guide.

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

The ARN that specifies the federated user that is associated with the * credentials. For more information about ARNs and how to use them in policies, * see IAM * Identifiers in the IAM User Guide.

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

The ARN that specifies the federated user that is associated with the * credentials. For more information about ARNs and how to use them in policies, * see IAM * Identifiers in the IAM User Guide.

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

The ARN that specifies the federated user that is associated with the * credentials. For more information about ARNs and how to use them in policies, * see IAM * Identifiers in the IAM User Guide.

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

The ARN that specifies the federated user that is associated with the * credentials. For more information about ARNs and how to use them in policies, * see IAM * Identifiers in the IAM User Guide.

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

The ARN that specifies the federated user that is associated with the * credentials. For more information about ARNs and how to use them in policies, * see IAM * Identifiers in the IAM User Guide.

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

The ARN that specifies the federated user that is associated with the * credentials. For more information about ARNs and how to use them in policies, * see IAM * Identifiers in the IAM User Guide.

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