AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const DeploymentEventType& GetEventType() const{ return m_eventType; }
52 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
53 inline void SetEventType(const DeploymentEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
54 inline void SetEventType(DeploymentEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
55 inline DeploymentEvent& WithEventType(const DeploymentEventType& value) { SetEventType(value); return *this;}
56 inline DeploymentEvent& WithEventType(DeploymentEventType&& value) { SetEventType(std::move(value)); return *this;}
58
60
64 inline const TriggeredBy& GetTriggeredBy() const{ return m_triggeredBy; }
65 inline bool TriggeredByHasBeenSet() const { return m_triggeredByHasBeenSet; }
66 inline void SetTriggeredBy(const TriggeredBy& value) { m_triggeredByHasBeenSet = true; m_triggeredBy = value; }
67 inline void SetTriggeredBy(TriggeredBy&& value) { m_triggeredByHasBeenSet = true; m_triggeredBy = std::move(value); }
68 inline DeploymentEvent& WithTriggeredBy(const TriggeredBy& value) { SetTriggeredBy(value); return *this;}
69 inline DeploymentEvent& WithTriggeredBy(TriggeredBy&& value) { SetTriggeredBy(std::move(value)); return *this;}
71
73
81 inline const Aws::String& GetDescription() const{ return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
84 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
85 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
86 inline DeploymentEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 inline DeploymentEvent& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
88 inline DeploymentEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
90
92
95 inline const Aws::Vector<ActionInvocation>& GetActionInvocations() const{ return m_actionInvocations; }
96 inline bool ActionInvocationsHasBeenSet() const { return m_actionInvocationsHasBeenSet; }
97 inline void SetActionInvocations(const Aws::Vector<ActionInvocation>& value) { m_actionInvocationsHasBeenSet = true; m_actionInvocations = value; }
98 inline void SetActionInvocations(Aws::Vector<ActionInvocation>&& value) { m_actionInvocationsHasBeenSet = true; m_actionInvocations = std::move(value); }
101 inline DeploymentEvent& AddActionInvocations(const ActionInvocation& value) { m_actionInvocationsHasBeenSet = true; m_actionInvocations.push_back(value); return *this; }
102 inline DeploymentEvent& AddActionInvocations(ActionInvocation&& value) { m_actionInvocationsHasBeenSet = true; m_actionInvocations.push_back(std::move(value)); return *this; }
104
106
109 inline const Aws::Utils::DateTime& GetOccurredAt() const{ return m_occurredAt; }
110 inline bool OccurredAtHasBeenSet() const { return m_occurredAtHasBeenSet; }
111 inline void SetOccurredAt(const Aws::Utils::DateTime& value) { m_occurredAtHasBeenSet = true; m_occurredAt = value; }
112 inline void SetOccurredAt(Aws::Utils::DateTime&& value) { m_occurredAtHasBeenSet = true; m_occurredAt = std::move(value); }
113 inline DeploymentEvent& WithOccurredAt(const Aws::Utils::DateTime& value) { SetOccurredAt(value); return *this;}
114 inline DeploymentEvent& WithOccurredAt(Aws::Utils::DateTime&& value) { SetOccurredAt(std::move(value)); return *this;}
116 private:
117
118 DeploymentEventType m_eventType;
119 bool m_eventTypeHasBeenSet = false;
120
121 TriggeredBy m_triggeredBy;
122 bool m_triggeredByHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 Aws::Vector<ActionInvocation> m_actionInvocations;
128 bool m_actionInvocationsHasBeenSet = false;
129
130 Aws::Utils::DateTime m_occurredAt;
131 bool m_occurredAtHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace AppConfig
136} // namespace Aws
void SetTriggeredBy(const TriggeredBy &value)
AWS_APPCONFIG_API DeploymentEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
DeploymentEvent & WithEventType(const DeploymentEventType &value)
DeploymentEvent & WithEventType(DeploymentEventType &&value)
DeploymentEvent & AddActionInvocations(ActionInvocation &&value)
DeploymentEvent & WithActionInvocations(const Aws::Vector< ActionInvocation > &value)
void SetActionInvocations(Aws::Vector< ActionInvocation > &&value)
const TriggeredBy & GetTriggeredBy() const
DeploymentEvent & WithDescription(const char *value)
const Aws::Utils::DateTime & GetOccurredAt() const
void SetTriggeredBy(TriggeredBy &&value)
void SetActionInvocations(const Aws::Vector< ActionInvocation > &value)
void SetDescription(Aws::String &&value)
DeploymentEvent & AddActionInvocations(const ActionInvocation &value)
void SetEventType(DeploymentEventType &&value)
const Aws::Vector< ActionInvocation > & GetActionInvocations() const
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
DeploymentEvent & WithTriggeredBy(const TriggeredBy &value)
void SetOccurredAt(Aws::Utils::DateTime &&value)
DeploymentEvent & WithTriggeredBy(TriggeredBy &&value)
DeploymentEvent & WithDescription(Aws::String &&value)
DeploymentEvent & WithDescription(const Aws::String &value)
DeploymentEvent & WithActionInvocations(Aws::Vector< ActionInvocation > &&value)
const DeploymentEventType & GetEventType() const
AWS_APPCONFIG_API DeploymentEvent(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(const Aws::String &value)
DeploymentEvent & WithOccurredAt(const Aws::Utils::DateTime &value)
const Aws::String & GetDescription() const
DeploymentEvent & WithOccurredAt(Aws::Utils::DateTime &&value)
void SetEventType(const DeploymentEventType &value)
void SetOccurredAt(const Aws::Utils::DateTime &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