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

Details about an Amazon AppFlow flow datasource.

See Also:

* AWS * API Reference

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

An IAM role that gives Amazon Lookout for Metrics permission to access the * flow.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

An IAM role that gives Amazon Lookout for Metrics permission to access the * flow.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

An IAM role that gives Amazon Lookout for Metrics permission to access the * flow.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

An IAM role that gives Amazon Lookout for Metrics permission to access the * flow.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

An IAM role that gives Amazon Lookout for Metrics permission to access the * flow.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

An IAM role that gives Amazon Lookout for Metrics permission to access the * flow.

*/ inline AppFlowConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

An IAM role that gives Amazon Lookout for Metrics permission to access the * flow.

*/ inline AppFlowConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

An IAM role that gives Amazon Lookout for Metrics permission to access the * flow.

*/ inline AppFlowConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

name of the flow.

*/ inline const Aws::String& GetFlowName() const{ return m_flowName; } /** *

name of the flow.

*/ inline bool FlowNameHasBeenSet() const { return m_flowNameHasBeenSet; } /** *

name of the flow.

*/ inline void SetFlowName(const Aws::String& value) { m_flowNameHasBeenSet = true; m_flowName = value; } /** *

name of the flow.

*/ inline void SetFlowName(Aws::String&& value) { m_flowNameHasBeenSet = true; m_flowName = std::move(value); } /** *

name of the flow.

*/ inline void SetFlowName(const char* value) { m_flowNameHasBeenSet = true; m_flowName.assign(value); } /** *

name of the flow.

*/ inline AppFlowConfig& WithFlowName(const Aws::String& value) { SetFlowName(value); return *this;} /** *

name of the flow.

*/ inline AppFlowConfig& WithFlowName(Aws::String&& value) { SetFlowName(std::move(value)); return *this;} /** *

name of the flow.

*/ inline AppFlowConfig& WithFlowName(const char* value) { SetFlowName(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_flowName; bool m_flowNameHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws