AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
PipelineSummary.h
1
6#pragma once
7#include <aws/osis/OSIS_EXPORTS.h>
8#include <aws/osis/model/PipelineStatus.h>
9#include <aws/osis/model/PipelineStatusReason.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/osis/model/PipelineDestination.h>
14#include <aws/osis/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace OSIS
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_OSIS_API PipelineSummary() = default;
45
46
48
51 inline PipelineStatus GetStatus() const { return m_status; }
52 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
53 inline void SetStatus(PipelineStatus value) { m_statusHasBeenSet = true; m_status = value; }
54 inline PipelineSummary& WithStatus(PipelineStatus value) { SetStatus(value); return *this;}
56
58
59 inline const PipelineStatusReason& GetStatusReason() const { return m_statusReason; }
60 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
61 template<typename StatusReasonT = PipelineStatusReason>
62 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
63 template<typename StatusReasonT = PipelineStatusReason>
64 PipelineSummary& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
66
68
71 inline const Aws::String& GetPipelineName() const { return m_pipelineName; }
72 inline bool PipelineNameHasBeenSet() const { return m_pipelineNameHasBeenSet; }
73 template<typename PipelineNameT = Aws::String>
74 void SetPipelineName(PipelineNameT&& value) { m_pipelineNameHasBeenSet = true; m_pipelineName = std::forward<PipelineNameT>(value); }
75 template<typename PipelineNameT = Aws::String>
76 PipelineSummary& WithPipelineName(PipelineNameT&& value) { SetPipelineName(std::forward<PipelineNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetPipelineArn() const { return m_pipelineArn; }
84 inline bool PipelineArnHasBeenSet() const { return m_pipelineArnHasBeenSet; }
85 template<typename PipelineArnT = Aws::String>
86 void SetPipelineArn(PipelineArnT&& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = std::forward<PipelineArnT>(value); }
87 template<typename PipelineArnT = Aws::String>
88 PipelineSummary& WithPipelineArn(PipelineArnT&& value) { SetPipelineArn(std::forward<PipelineArnT>(value)); return *this;}
90
92
95 inline int GetMinUnits() const { return m_minUnits; }
96 inline bool MinUnitsHasBeenSet() const { return m_minUnitsHasBeenSet; }
97 inline void SetMinUnits(int value) { m_minUnitsHasBeenSet = true; m_minUnits = value; }
98 inline PipelineSummary& WithMinUnits(int value) { SetMinUnits(value); return *this;}
100
102
105 inline int GetMaxUnits() const { return m_maxUnits; }
106 inline bool MaxUnitsHasBeenSet() const { return m_maxUnitsHasBeenSet; }
107 inline void SetMaxUnits(int value) { m_maxUnitsHasBeenSet = true; m_maxUnits = value; }
108 inline PipelineSummary& WithMaxUnits(int value) { SetMaxUnits(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
116 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
117 template<typename CreatedAtT = Aws::Utils::DateTime>
118 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
119 template<typename CreatedAtT = Aws::Utils::DateTime>
120 PipelineSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
122
124
127 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
128 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
129 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
130 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
131 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
132 PipelineSummary& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
134
136
139 inline const Aws::Vector<PipelineDestination>& GetDestinations() const { return m_destinations; }
140 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
141 template<typename DestinationsT = Aws::Vector<PipelineDestination>>
142 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
143 template<typename DestinationsT = Aws::Vector<PipelineDestination>>
144 PipelineSummary& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
145 template<typename DestinationsT = PipelineDestination>
146 PipelineSummary& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
148
150
153 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
154 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
155 template<typename TagsT = Aws::Vector<Tag>>
156 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
157 template<typename TagsT = Aws::Vector<Tag>>
158 PipelineSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
159 template<typename TagsT = Tag>
160 PipelineSummary& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
162 private:
163
165 bool m_statusHasBeenSet = false;
166
167 PipelineStatusReason m_statusReason;
168 bool m_statusReasonHasBeenSet = false;
169
170 Aws::String m_pipelineName;
171 bool m_pipelineNameHasBeenSet = false;
172
173 Aws::String m_pipelineArn;
174 bool m_pipelineArnHasBeenSet = false;
175
176 int m_minUnits{0};
177 bool m_minUnitsHasBeenSet = false;
178
179 int m_maxUnits{0};
180 bool m_maxUnitsHasBeenSet = false;
181
182 Aws::Utils::DateTime m_createdAt{};
183 bool m_createdAtHasBeenSet = false;
184
185 Aws::Utils::DateTime m_lastUpdatedAt{};
186 bool m_lastUpdatedAtHasBeenSet = false;
187
189 bool m_destinationsHasBeenSet = false;
190
191 Aws::Vector<Tag> m_tags;
192 bool m_tagsHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace OSIS
197} // namespace Aws
void SetStatusReason(StatusReasonT &&value)
PipelineSummary & WithStatus(PipelineStatus value)
void SetPipelineName(PipelineNameT &&value)
PipelineSummary & WithTags(TagsT &&value)
PipelineSummary & AddDestinations(DestinationsT &&value)
void SetStatus(PipelineStatus value)
PipelineSummary & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_OSIS_API PipelineSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< PipelineDestination > & GetDestinations() const
PipelineSummary & WithPipelineArn(PipelineArnT &&value)
void SetPipelineArn(PipelineArnT &&value)
void SetCreatedAt(CreatedAtT &&value)
PipelineSummary & WithMinUnits(int value)
PipelineSummary & AddTags(TagsT &&value)
AWS_OSIS_API PipelineSummary()=default
const Aws::Utils::DateTime & GetLastUpdatedAt() const
PipelineSummary & WithCreatedAt(CreatedAtT &&value)
AWS_OSIS_API Aws::Utils::Json::JsonValue Jsonize() const
PipelineSummary & WithStatusReason(StatusReasonT &&value)
PipelineSummary & WithMaxUnits(int value)
PipelineSummary & WithPipelineName(PipelineNameT &&value)
AWS_OSIS_API PipelineSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPipelineName() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
PipelineSummary & WithDestinations(DestinationsT &&value)
const PipelineStatusReason & GetStatusReason() const
const Aws::String & GetPipelineArn() const
PipelineStatus GetStatus() const
void SetDestinations(DestinationsT &&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