/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The identifiers for the temporary security credentials that the operation
* returns.See Also:
AWS
* API Reference
A unique identifier that contains the role ID and the role session name of * the role that is being assumed. The role ID is generated by Amazon Web Services * when the role is created.
*/ inline const Aws::String& GetAssumedRoleId() const{ return m_assumedRoleId; } /** *A unique identifier that contains the role ID and the role session name of * the role that is being assumed. The role ID is generated by Amazon Web Services * when the role is created.
*/ inline bool AssumedRoleIdHasBeenSet() const { return m_assumedRoleIdHasBeenSet; } /** *A unique identifier that contains the role ID and the role session name of * the role that is being assumed. The role ID is generated by Amazon Web Services * when the role is created.
*/ inline void SetAssumedRoleId(const Aws::String& value) { m_assumedRoleIdHasBeenSet = true; m_assumedRoleId = value; } /** *A unique identifier that contains the role ID and the role session name of * the role that is being assumed. The role ID is generated by Amazon Web Services * when the role is created.
*/ inline void SetAssumedRoleId(Aws::String&& value) { m_assumedRoleIdHasBeenSet = true; m_assumedRoleId = std::move(value); } /** *A unique identifier that contains the role ID and the role session name of * the role that is being assumed. The role ID is generated by Amazon Web Services * when the role is created.
*/ inline void SetAssumedRoleId(const char* value) { m_assumedRoleIdHasBeenSet = true; m_assumedRoleId.assign(value); } /** *A unique identifier that contains the role ID and the role session name of * the role that is being assumed. The role ID is generated by Amazon Web Services * when the role is created.
*/ inline AssumedRoleUser& WithAssumedRoleId(const Aws::String& value) { SetAssumedRoleId(value); return *this;} /** *A unique identifier that contains the role ID and the role session name of * the role that is being assumed. The role ID is generated by Amazon Web Services * when the role is created.
*/ inline AssumedRoleUser& WithAssumedRoleId(Aws::String&& value) { SetAssumedRoleId(std::move(value)); return *this;} /** *A unique identifier that contains the role ID and the role session name of * the role that is being assumed. The role ID is generated by Amazon Web Services * when the role is created.
*/ inline AssumedRoleUser& WithAssumedRoleId(const char* value) { SetAssumedRoleId(value); return *this;} /** *The ARN of the temporary security credentials that are returned from the * AssumeRole action. 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 of the temporary security credentials that are returned from the * AssumeRole action. 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 of the temporary security credentials that are returned from the * AssumeRole action. 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 of the temporary security credentials that are returned from the * AssumeRole action. 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 of the temporary security credentials that are returned from the * AssumeRole action. 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 of the temporary security credentials that are returned from the * AssumeRole action. For more information about ARNs and how to use them in * policies, see IAM * Identifiers in the IAM User Guide.
*/ inline AssumedRoleUser& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the temporary security credentials that are returned from the * AssumeRole action. For more information about ARNs and how to use them in * policies, see IAM * Identifiers in the IAM User Guide.
*/ inline AssumedRoleUser& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the temporary security credentials that are returned from the * AssumeRole action. For more information about ARNs and how to use them in * policies, see IAM * Identifiers in the IAM User Guide.
*/ inline AssumedRoleUser& WithArn(const char* value) { SetArn(value); return *this;} private: Aws::String m_assumedRoleId; bool m_assumedRoleIdHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; }; } // namespace Model } // namespace STS } // namespace Aws