AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
IssuePatchDelivery.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/DeliveryReason.h>
9#include <aws/continuum/model/IssuePatchDeliveryStatus.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Continuum {
22namespace Model {
23
34 public:
35 AWS_CONTINUUM_API IssuePatchDelivery() = default;
36 AWS_CONTINUUM_API IssuePatchDelivery(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline IssuePatchDeliveryStatus GetStatus() const { return m_status; }
48 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
50 m_statusHasBeenSet = true;
51 m_status = value;
52 }
54 SetStatus(value);
55 return *this;
56 }
58
60
63 inline int GetPatchCount() const { return m_patchCount; }
64 inline bool PatchCountHasBeenSet() const { return m_patchCountHasBeenSet; }
65 inline void SetPatchCount(int value) {
66 m_patchCountHasBeenSet = true;
67 m_patchCount = value;
68 }
70 SetPatchCount(value);
71 return *this;
72 }
74
76
79 inline int GetSucceededCount() const { return m_succeededCount; }
80 inline bool SucceededCountHasBeenSet() const { return m_succeededCountHasBeenSet; }
81 inline void SetSucceededCount(int value) {
82 m_succeededCountHasBeenSet = true;
83 m_succeededCount = value;
84 }
86 SetSucceededCount(value);
87 return *this;
88 }
90
92
95 inline int GetFailedCount() const { return m_failedCount; }
96 inline bool FailedCountHasBeenSet() const { return m_failedCountHasBeenSet; }
97 inline void SetFailedCount(int value) {
98 m_failedCountHasBeenSet = true;
99 m_failedCount = value;
100 }
102 SetFailedCount(value);
103 return *this;
104 }
106
108
112 inline const Aws::Vector<DeliveryReason>& GetFailureReasons() const { return m_failureReasons; }
113 inline bool FailureReasonsHasBeenSet() const { return m_failureReasonsHasBeenSet; }
114 template <typename FailureReasonsT = Aws::Vector<DeliveryReason>>
115 void SetFailureReasons(FailureReasonsT&& value) {
116 m_failureReasonsHasBeenSet = true;
117 m_failureReasons = std::forward<FailureReasonsT>(value);
118 }
119 template <typename FailureReasonsT = Aws::Vector<DeliveryReason>>
120 IssuePatchDelivery& WithFailureReasons(FailureReasonsT&& value) {
121 SetFailureReasons(std::forward<FailureReasonsT>(value));
122 return *this;
123 }
125 m_failureReasonsHasBeenSet = true;
126 m_failureReasons.push_back(value);
127 return *this;
128 }
130 private:
132
133 int m_patchCount{0};
134
135 int m_succeededCount{0};
136
137 int m_failedCount{0};
138
139 Aws::Vector<DeliveryReason> m_failureReasons;
140 bool m_statusHasBeenSet = false;
141 bool m_patchCountHasBeenSet = false;
142 bool m_succeededCountHasBeenSet = false;
143 bool m_failedCountHasBeenSet = false;
144 bool m_failureReasonsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace Continuum
149} // namespace Aws
IssuePatchDelivery & WithStatus(IssuePatchDeliveryStatus value)
IssuePatchDelivery & WithPatchCount(int value)
AWS_CONTINUUM_API IssuePatchDelivery & operator=(Aws::Utils::Json::JsonView jsonValue)
IssuePatchDeliveryStatus GetStatus() const
void SetStatus(IssuePatchDeliveryStatus value)
void SetFailureReasons(FailureReasonsT &&value)
const Aws::Vector< DeliveryReason > & GetFailureReasons() const
IssuePatchDelivery & AddFailureReasons(DeliveryReason value)
IssuePatchDelivery & WithSucceededCount(int value)
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONTINUUM_API IssuePatchDelivery(Aws::Utils::Json::JsonView jsonValue)
IssuePatchDelivery & WithFailureReasons(FailureReasonsT &&value)
AWS_CONTINUUM_API IssuePatchDelivery()=default
IssuePatchDelivery & WithFailedCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue