/**
* 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 Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Appflow
{
namespace Model
{
/**
* The trigger settings that determine how and when Amazon AppFlow runs the
* specified flow.
See Also:
AWS
* API Reference
*/
class TriggerConfig
{
public:
AWS_APPFLOW_API TriggerConfig();
AWS_APPFLOW_API TriggerConfig(Aws::Utils::Json::JsonView jsonValue);
AWS_APPFLOW_API TriggerConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Specifies the type of flow trigger. This can be OnDemand
,
* Scheduled
, or Event
.
*/
inline const TriggerType& GetTriggerType() const{ return m_triggerType; }
/**
* Specifies the type of flow trigger. This can be OnDemand
,
* Scheduled
, or Event
.
*/
inline bool TriggerTypeHasBeenSet() const { return m_triggerTypeHasBeenSet; }
/**
* Specifies the type of flow trigger. This can be OnDemand
,
* Scheduled
, or Event
.
*/
inline void SetTriggerType(const TriggerType& value) { m_triggerTypeHasBeenSet = true; m_triggerType = value; }
/**
* Specifies the type of flow trigger. This can be OnDemand
,
* Scheduled
, or Event
.
*/
inline void SetTriggerType(TriggerType&& value) { m_triggerTypeHasBeenSet = true; m_triggerType = std::move(value); }
/**
* Specifies the type of flow trigger. This can be OnDemand
,
* Scheduled
, or Event
.
*/
inline TriggerConfig& WithTriggerType(const TriggerType& value) { SetTriggerType(value); return *this;}
/**
* Specifies the type of flow trigger. This can be OnDemand
,
* Scheduled
, or Event
.
*/
inline TriggerConfig& WithTriggerType(TriggerType&& value) { SetTriggerType(std::move(value)); return *this;}
/**
* Specifies the configuration details of a schedule-triggered flow as defined
* by the user. Currently, these settings only apply to the Scheduled
* trigger type.
*/
inline const TriggerProperties& GetTriggerProperties() const{ return m_triggerProperties; }
/**
* Specifies the configuration details of a schedule-triggered flow as defined
* by the user. Currently, these settings only apply to the Scheduled
* trigger type.
*/
inline bool TriggerPropertiesHasBeenSet() const { return m_triggerPropertiesHasBeenSet; }
/**
* Specifies the configuration details of a schedule-triggered flow as defined
* by the user. Currently, these settings only apply to the Scheduled
* trigger type.
*/
inline void SetTriggerProperties(const TriggerProperties& value) { m_triggerPropertiesHasBeenSet = true; m_triggerProperties = value; }
/**
* Specifies the configuration details of a schedule-triggered flow as defined
* by the user. Currently, these settings only apply to the Scheduled
* trigger type.
*/
inline void SetTriggerProperties(TriggerProperties&& value) { m_triggerPropertiesHasBeenSet = true; m_triggerProperties = std::move(value); }
/**
* Specifies the configuration details of a schedule-triggered flow as defined
* by the user. Currently, these settings only apply to the Scheduled
* trigger type.
*/
inline TriggerConfig& WithTriggerProperties(const TriggerProperties& value) { SetTriggerProperties(value); return *this;}
/**
* Specifies the configuration details of a schedule-triggered flow as defined
* by the user. Currently, these settings only apply to the Scheduled
* trigger type.
*/
inline TriggerConfig& WithTriggerProperties(TriggerProperties&& value) { SetTriggerProperties(std::move(value)); return *this;}
private:
TriggerType m_triggerType;
bool m_triggerTypeHasBeenSet = false;
TriggerProperties m_triggerProperties;
bool m_triggerPropertiesHasBeenSet = false;
};
} // namespace Model
} // namespace Appflow
} // namespace Aws