AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
PatchBody.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/continuum/model/PatchDelivery.h>
9#include <aws/continuum/model/PatchFormat.h>
10#include <aws/core/utils/memory/stl/AWSString.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
32class PatchBody {
33 public:
34 AWS_CONTINUUM_API PatchBody() = default;
35 AWS_CONTINUUM_API PatchBody(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONTINUUM_API PatchBody& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetPatch() const { return m_patch; }
45 inline bool PatchHasBeenSet() const { return m_patchHasBeenSet; }
46 template <typename PatchT = Aws::String>
47 void SetPatch(PatchT&& value) {
48 m_patchHasBeenSet = true;
49 m_patch = std::forward<PatchT>(value);
50 }
51 template <typename PatchT = Aws::String>
52 PatchBody& WithPatch(PatchT&& value) {
53 SetPatch(std::forward<PatchT>(value));
54 return *this;
55 }
57
59
64 inline PatchFormat GetFormat() const { return m_format; }
65 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
66 inline void SetFormat(PatchFormat value) {
67 m_formatHasBeenSet = true;
68 m_format = value;
69 }
71 SetFormat(value);
72 return *this;
73 }
75
77
81 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
82 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
83 template <typename RepositoryNameT = Aws::String>
84 void SetRepositoryName(RepositoryNameT&& value) {
85 m_repositoryNameHasBeenSet = true;
86 m_repositoryName = std::forward<RepositoryNameT>(value);
87 }
88 template <typename RepositoryNameT = Aws::String>
89 PatchBody& WithRepositoryName(RepositoryNameT&& value) {
90 SetRepositoryName(std::forward<RepositoryNameT>(value));
91 return *this;
92 }
94
96
103 inline const Aws::String& GetPatchSha256() const { return m_patchSha256; }
104 inline bool PatchSha256HasBeenSet() const { return m_patchSha256HasBeenSet; }
105 template <typename PatchSha256T = Aws::String>
106 void SetPatchSha256(PatchSha256T&& value) {
107 m_patchSha256HasBeenSet = true;
108 m_patchSha256 = std::forward<PatchSha256T>(value);
109 }
110 template <typename PatchSha256T = Aws::String>
111 PatchBody& WithPatchSha256(PatchSha256T&& value) {
112 SetPatchSha256(std::forward<PatchSha256T>(value));
113 return *this;
114 }
116
118
121 inline long long GetSizeBytes() const { return m_sizeBytes; }
122 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
123 inline void SetSizeBytes(long long value) {
124 m_sizeBytesHasBeenSet = true;
125 m_sizeBytes = value;
126 }
127 inline PatchBody& WithSizeBytes(long long value) {
128 SetSizeBytes(value);
129 return *this;
130 }
132
134
138 inline const PatchDelivery& GetDelivery() const { return m_delivery; }
139 inline bool DeliveryHasBeenSet() const { return m_deliveryHasBeenSet; }
140 template <typename DeliveryT = PatchDelivery>
141 void SetDelivery(DeliveryT&& value) {
142 m_deliveryHasBeenSet = true;
143 m_delivery = std::forward<DeliveryT>(value);
144 }
145 template <typename DeliveryT = PatchDelivery>
146 PatchBody& WithDelivery(DeliveryT&& value) {
147 SetDelivery(std::forward<DeliveryT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_patch;
153
155
156 Aws::String m_repositoryName;
157
158 Aws::String m_patchSha256;
159
160 long long m_sizeBytes{0};
161
162 PatchDelivery m_delivery;
163 bool m_patchHasBeenSet = false;
164 bool m_formatHasBeenSet = false;
165 bool m_repositoryNameHasBeenSet = false;
166 bool m_patchSha256HasBeenSet = false;
167 bool m_sizeBytesHasBeenSet = false;
168 bool m_deliveryHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace Continuum
173} // namespace Aws
void SetFormat(PatchFormat value)
Definition PatchBody.h:66
PatchBody & WithRepositoryName(RepositoryNameT &&value)
Definition PatchBody.h:89
PatchBody & WithSizeBytes(long long value)
Definition PatchBody.h:127
PatchBody & WithPatchSha256(PatchSha256T &&value)
Definition PatchBody.h:111
PatchFormat GetFormat() const
Definition PatchBody.h:64
bool RepositoryNameHasBeenSet() const
Definition PatchBody.h:82
long long GetSizeBytes() const
Definition PatchBody.h:121
void SetPatchSha256(PatchSha256T &&value)
Definition PatchBody.h:106
const Aws::String & GetPatch() const
Definition PatchBody.h:44
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPatch(PatchT &&value)
Definition PatchBody.h:47
PatchBody & WithFormat(PatchFormat value)
Definition PatchBody.h:70
PatchBody & WithDelivery(DeliveryT &&value)
Definition PatchBody.h:146
const Aws::String & GetRepositoryName() const
Definition PatchBody.h:81
void SetDelivery(DeliveryT &&value)
Definition PatchBody.h:141
AWS_CONTINUUM_API PatchBody & operator=(Aws::Utils::Json::JsonView jsonValue)
PatchBody & WithPatch(PatchT &&value)
Definition PatchBody.h:52
AWS_CONTINUUM_API PatchBody()=default
const Aws::String & GetPatchSha256() const
Definition PatchBody.h:103
AWS_CONTINUUM_API PatchBody(Aws::Utils::Json::JsonView jsonValue)
void SetRepositoryName(RepositoryNameT &&value)
Definition PatchBody.h:84
void SetSizeBytes(long long value)
Definition PatchBody.h:123
const PatchDelivery & GetDelivery() const
Definition PatchBody.h:138
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue