AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeploymentEvent.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/DeploymentEventType.h>
9#include <aws/appconfig/model/TriggeredBy.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/appconfig/model/ActionInvocation.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AppConfig
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_APPCONFIG_API DeploymentEvent() = default;
40 AWS_APPCONFIG_API DeploymentEvent(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
51 inline DeploymentEventType GetEventType() const { return m_eventType; }
52 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
53 inline void SetEventType(DeploymentEventType value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
54 inline DeploymentEvent& WithEventType(DeploymentEventType value) { SetEventType(value); return *this;}
56
58
62 inline TriggeredBy GetTriggeredBy() const { return m_triggeredBy; }
63 inline bool TriggeredByHasBeenSet() const { return m_triggeredByHasBeenSet; }
64 inline void SetTriggeredBy(TriggeredBy value) { m_triggeredByHasBeenSet = true; m_triggeredBy = value; }
65 inline DeploymentEvent& WithTriggeredBy(TriggeredBy value) { SetTriggeredBy(value); return *this;}
67
69
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 DeploymentEvent& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
89 inline const Aws::Vector<ActionInvocation>& GetActionInvocations() const { return m_actionInvocations; }
90 inline bool ActionInvocationsHasBeenSet() const { return m_actionInvocationsHasBeenSet; }
91 template<typename ActionInvocationsT = Aws::Vector<ActionInvocation>>
92 void SetActionInvocations(ActionInvocationsT&& value) { m_actionInvocationsHasBeenSet = true; m_actionInvocations = std::forward<ActionInvocationsT>(value); }
93 template<typename ActionInvocationsT = Aws::Vector<ActionInvocation>>
94 DeploymentEvent& WithActionInvocations(ActionInvocationsT&& value) { SetActionInvocations(std::forward<ActionInvocationsT>(value)); return *this;}
95 template<typename ActionInvocationsT = ActionInvocation>
96 DeploymentEvent& AddActionInvocations(ActionInvocationsT&& value) { m_actionInvocationsHasBeenSet = true; m_actionInvocations.emplace_back(std::forward<ActionInvocationsT>(value)); return *this; }
98
100
103 inline const Aws::Utils::DateTime& GetOccurredAt() const { return m_occurredAt; }
104 inline bool OccurredAtHasBeenSet() const { return m_occurredAtHasBeenSet; }
105 template<typename OccurredAtT = Aws::Utils::DateTime>
106 void SetOccurredAt(OccurredAtT&& value) { m_occurredAtHasBeenSet = true; m_occurredAt = std::forward<OccurredAtT>(value); }
107 template<typename OccurredAtT = Aws::Utils::DateTime>
108 DeploymentEvent& WithOccurredAt(OccurredAtT&& value) { SetOccurredAt(std::forward<OccurredAtT>(value)); return *this;}
110 private:
111
113 bool m_eventTypeHasBeenSet = false;
114
115 TriggeredBy m_triggeredBy{TriggeredBy::NOT_SET};
116 bool m_triggeredByHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 Aws::Vector<ActionInvocation> m_actionInvocations;
122 bool m_actionInvocationsHasBeenSet = false;
123
124 Aws::Utils::DateTime m_occurredAt{};
125 bool m_occurredAtHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace AppConfig
130} // 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