/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains details about the credentials that Step Functions uses for a
* task.See Also:
AWS
* API Reference
The ARN of an IAM role that Step Functions assumes for the task. The role can * allow cross-account access to resources.
*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *The ARN of an IAM role that Step Functions assumes for the task. The role can * allow cross-account access to resources.
*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *The ARN of an IAM role that Step Functions assumes for the task. The role can * allow cross-account access to resources.
*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *The ARN of an IAM role that Step Functions assumes for the task. The role can * allow cross-account access to resources.
*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *The ARN of an IAM role that Step Functions assumes for the task. The role can * allow cross-account access to resources.
*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *The ARN of an IAM role that Step Functions assumes for the task. The role can * allow cross-account access to resources.
*/ inline TaskCredentials& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *The ARN of an IAM role that Step Functions assumes for the task. The role can * allow cross-account access to resources.
*/ inline TaskCredentials& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *The ARN of an IAM role that Step Functions assumes for the task. The role can * allow cross-account access to resources.
*/ inline TaskCredentials& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace SFN } // namespace Aws