AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeploymentEvent.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/ActionInvocation.h>
9#include <aws/appconfig/model/DeploymentEventType.h>
10#include <aws/appconfig/model/TriggeredBy.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppConfig {
25namespace Model {
26
33 public:
34 AWS_APPCONFIG_API DeploymentEvent() = default;
35 AWS_APPCONFIG_API DeploymentEvent(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline DeploymentEventType GetEventType() const { return m_eventType; }
46 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
47 inline void SetEventType(DeploymentEventType value) {
48 m_eventTypeHasBeenSet = true;
49 m_eventType = value;
50 }
52 SetEventType(value);
53 return *this;
54 }
56
58
62 inline TriggeredBy GetTriggeredBy() const { return m_triggeredBy; }
63 inline bool TriggeredByHasBeenSet() const { return m_triggeredByHasBeenSet; }
64 inline void SetTriggeredBy(TriggeredBy value) {
65 m_triggeredByHasBeenSet = true;
66 m_triggeredBy = value;
67 }
69 SetTriggeredBy(value);
70 return *this;
71 }
73
75
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template <typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) {
87 m_descriptionHasBeenSet = true;
88 m_description = std::forward<DescriptionT>(value);
89 }
90 template <typename DescriptionT = Aws::String>
91 DeploymentEvent& WithDescription(DescriptionT&& value) {
92 SetDescription(std::forward<DescriptionT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<ActionInvocation>& GetActionInvocations() const { return m_actionInvocations; }
102 inline bool ActionInvocationsHasBeenSet() const { return m_actionInvocationsHasBeenSet; }
103 template <typename ActionInvocationsT = Aws::Vector<ActionInvocation>>
104 void SetActionInvocations(ActionInvocationsT&& value) {
105 m_actionInvocationsHasBeenSet = true;
106 m_actionInvocations = std::forward<ActionInvocationsT>(value);
107 }
108 template <typename ActionInvocationsT = Aws::Vector<ActionInvocation>>
109 DeploymentEvent& WithActionInvocations(ActionInvocationsT&& value) {
110 SetActionInvocations(std::forward<ActionInvocationsT>(value));
111 return *this;
112 }
113 template <typename ActionInvocationsT = ActionInvocation>
114 DeploymentEvent& AddActionInvocations(ActionInvocationsT&& value) {
115 m_actionInvocationsHasBeenSet = true;
116 m_actionInvocations.emplace_back(std::forward<ActionInvocationsT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::Utils::DateTime& GetOccurredAt() const { return m_occurredAt; }
126 inline bool OccurredAtHasBeenSet() const { return m_occurredAtHasBeenSet; }
127 template <typename OccurredAtT = Aws::Utils::DateTime>
128 void SetOccurredAt(OccurredAtT&& value) {
129 m_occurredAtHasBeenSet = true;
130 m_occurredAt = std::forward<OccurredAtT>(value);
131 }
132 template <typename OccurredAtT = Aws::Utils::DateTime>
133 DeploymentEvent& WithOccurredAt(OccurredAtT&& value) {
134 SetOccurredAt(std::forward<OccurredAtT>(value));
135 return *this;
136 }
138 private:
140
141 TriggeredBy m_triggeredBy{TriggeredBy::NOT_SET};
142
143 Aws::String m_description;
144
145 Aws::Vector<ActionInvocation> m_actionInvocations;
146
147 Aws::Utils::DateTime m_occurredAt{};
148 bool m_eventTypeHasBeenSet = false;
149 bool m_triggeredByHasBeenSet = false;
150 bool m_descriptionHasBeenSet = false;
151 bool m_actionInvocationsHasBeenSet = false;
152 bool m_occurredAtHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace AppConfig
157} // namespace Aws
AWS_APPCONFIG_API DeploymentEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentEvent & WithEventType(DeploymentEventType value)
DeploymentEvent & AddActionInvocations(ActionInvocationsT &&value)
DeploymentEvent & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetOccurredAt() const
void SetActionInvocations(ActionInvocationsT &&value)
const Aws::Vector< ActionInvocation > & GetActionInvocations() const
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentEventType GetEventType() const
AWS_APPCONFIG_API DeploymentEvent()=default
void SetEventType(DeploymentEventType value)
AWS_APPCONFIG_API DeploymentEvent(Aws::Utils::Json::JsonView jsonValue)
DeploymentEvent & WithTriggeredBy(TriggeredBy value)
void SetOccurredAt(OccurredAtT &&value)
const Aws::String & GetDescription() const
DeploymentEvent & WithActionInvocations(ActionInvocationsT &&value)
DeploymentEvent & WithOccurredAt(OccurredAtT &&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