AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TriggerConfig.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codedeploy/model/TriggerEventType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeDeploy
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEDEPLOY_API TriggerConfig();
38 AWS_CODEDEPLOY_API TriggerConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEDEPLOY_API TriggerConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTriggerName() const{ return m_triggerName; }
48 inline bool TriggerNameHasBeenSet() const { return m_triggerNameHasBeenSet; }
49 inline void SetTriggerName(const Aws::String& value) { m_triggerNameHasBeenSet = true; m_triggerName = value; }
50 inline void SetTriggerName(Aws::String&& value) { m_triggerNameHasBeenSet = true; m_triggerName = std::move(value); }
51 inline void SetTriggerName(const char* value) { m_triggerNameHasBeenSet = true; m_triggerName.assign(value); }
52 inline TriggerConfig& WithTriggerName(const Aws::String& value) { SetTriggerName(value); return *this;}
53 inline TriggerConfig& WithTriggerName(Aws::String&& value) { SetTriggerName(std::move(value)); return *this;}
54 inline TriggerConfig& WithTriggerName(const char* value) { SetTriggerName(value); return *this;}
56
58
63 inline const Aws::String& GetTriggerTargetArn() const{ return m_triggerTargetArn; }
64 inline bool TriggerTargetArnHasBeenSet() const { return m_triggerTargetArnHasBeenSet; }
65 inline void SetTriggerTargetArn(const Aws::String& value) { m_triggerTargetArnHasBeenSet = true; m_triggerTargetArn = value; }
66 inline void SetTriggerTargetArn(Aws::String&& value) { m_triggerTargetArnHasBeenSet = true; m_triggerTargetArn = std::move(value); }
67 inline void SetTriggerTargetArn(const char* value) { m_triggerTargetArnHasBeenSet = true; m_triggerTargetArn.assign(value); }
68 inline TriggerConfig& WithTriggerTargetArn(const Aws::String& value) { SetTriggerTargetArn(value); return *this;}
69 inline TriggerConfig& WithTriggerTargetArn(Aws::String&& value) { SetTriggerTargetArn(std::move(value)); return *this;}
70 inline TriggerConfig& WithTriggerTargetArn(const char* value) { SetTriggerTargetArn(value); return *this;}
72
74
77 inline const Aws::Vector<TriggerEventType>& GetTriggerEvents() const{ return m_triggerEvents; }
78 inline bool TriggerEventsHasBeenSet() const { return m_triggerEventsHasBeenSet; }
79 inline void SetTriggerEvents(const Aws::Vector<TriggerEventType>& value) { m_triggerEventsHasBeenSet = true; m_triggerEvents = value; }
80 inline void SetTriggerEvents(Aws::Vector<TriggerEventType>&& value) { m_triggerEventsHasBeenSet = true; m_triggerEvents = std::move(value); }
82 inline TriggerConfig& WithTriggerEvents(Aws::Vector<TriggerEventType>&& value) { SetTriggerEvents(std::move(value)); return *this;}
83 inline TriggerConfig& AddTriggerEvents(const TriggerEventType& value) { m_triggerEventsHasBeenSet = true; m_triggerEvents.push_back(value); return *this; }
84 inline TriggerConfig& AddTriggerEvents(TriggerEventType&& value) { m_triggerEventsHasBeenSet = true; m_triggerEvents.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_triggerName;
89 bool m_triggerNameHasBeenSet = false;
90
91 Aws::String m_triggerTargetArn;
92 bool m_triggerTargetArnHasBeenSet = false;
93
94 Aws::Vector<TriggerEventType> m_triggerEvents;
95 bool m_triggerEventsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CodeDeploy
100} // namespace Aws
TriggerConfig & WithTriggerTargetArn(const Aws::String &value)
TriggerConfig & WithTriggerName(const char *value)
TriggerConfig & AddTriggerEvents(const TriggerEventType &value)
void SetTriggerName(Aws::String &&value)
void SetTriggerTargetArn(const char *value)
AWS_CODEDEPLOY_API TriggerConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
TriggerConfig & WithTriggerName(Aws::String &&value)
TriggerConfig & WithTriggerTargetArn(const char *value)
void SetTriggerName(const Aws::String &value)
void SetTriggerTargetArn(Aws::String &&value)
AWS_CODEDEPLOY_API TriggerConfig(Aws::Utils::Json::JsonView jsonValue)
TriggerConfig & WithTriggerEvents(const Aws::Vector< TriggerEventType > &value)
void SetTriggerTargetArn(const Aws::String &value)
void SetTriggerEvents(Aws::Vector< TriggerEventType > &&value)
TriggerConfig & WithTriggerTargetArn(Aws::String &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< TriggerEventType > & GetTriggerEvents() const
void SetTriggerName(const char *value)
const Aws::String & GetTriggerName() const
const Aws::String & GetTriggerTargetArn() const
TriggerConfig & WithTriggerEvents(Aws::Vector< TriggerEventType > &&value)
TriggerConfig & AddTriggerEvents(TriggerEventType &&value)
void SetTriggerEvents(const Aws::Vector< TriggerEventType > &value)
TriggerConfig & WithTriggerName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue