AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SigningPlatform.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/signer/Signer_EXPORTS.h>
9#include <aws/signer/model/Category.h>
10#include <aws/signer/model/SigningConfiguration.h>
11#include <aws/signer/model/SigningImageFormat.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace signer {
23namespace Model {
24
32 public:
33 AWS_SIGNER_API SigningPlatform() = default;
36 AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPlatformId() const { return m_platformId; }
43 inline bool PlatformIdHasBeenSet() const { return m_platformIdHasBeenSet; }
44 template <typename PlatformIdT = Aws::String>
45 void SetPlatformId(PlatformIdT&& value) {
46 m_platformIdHasBeenSet = true;
47 m_platformId = std::forward<PlatformIdT>(value);
48 }
49 template <typename PlatformIdT = Aws::String>
50 SigningPlatform& WithPlatformId(PlatformIdT&& value) {
51 SetPlatformId(std::forward<PlatformIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDisplayName() const { return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 template <typename DisplayNameT = Aws::String>
63 void SetDisplayName(DisplayNameT&& value) {
64 m_displayNameHasBeenSet = true;
65 m_displayName = std::forward<DisplayNameT>(value);
66 }
67 template <typename DisplayNameT = Aws::String>
68 SigningPlatform& WithDisplayName(DisplayNameT&& value) {
69 SetDisplayName(std::forward<DisplayNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetPartner() const { return m_partner; }
79 inline bool PartnerHasBeenSet() const { return m_partnerHasBeenSet; }
80 template <typename PartnerT = Aws::String>
81 void SetPartner(PartnerT&& value) {
82 m_partnerHasBeenSet = true;
83 m_partner = std::forward<PartnerT>(value);
84 }
85 template <typename PartnerT = Aws::String>
86 SigningPlatform& WithPartner(PartnerT&& value) {
87 SetPartner(std::forward<PartnerT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetTarget() const { return m_target; }
97 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
98 template <typename TargetT = Aws::String>
99 void SetTarget(TargetT&& value) {
100 m_targetHasBeenSet = true;
101 m_target = std::forward<TargetT>(value);
102 }
103 template <typename TargetT = Aws::String>
104 SigningPlatform& WithTarget(TargetT&& value) {
105 SetTarget(std::forward<TargetT>(value));
106 return *this;
107 }
109
111
114 inline Category GetCategory() const { return m_category; }
115 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
116 inline void SetCategory(Category value) {
117 m_categoryHasBeenSet = true;
118 m_category = value;
119 }
121 SetCategory(value);
122 return *this;
123 }
125
127
131 inline const SigningConfiguration& GetSigningConfiguration() const { return m_signingConfiguration; }
132 inline bool SigningConfigurationHasBeenSet() const { return m_signingConfigurationHasBeenSet; }
133 template <typename SigningConfigurationT = SigningConfiguration>
134 void SetSigningConfiguration(SigningConfigurationT&& value) {
135 m_signingConfigurationHasBeenSet = true;
136 m_signingConfiguration = std::forward<SigningConfigurationT>(value);
137 }
138 template <typename SigningConfigurationT = SigningConfiguration>
139 SigningPlatform& WithSigningConfiguration(SigningConfigurationT&& value) {
140 SetSigningConfiguration(std::forward<SigningConfigurationT>(value));
141 return *this;
142 }
144
146
147 inline const SigningImageFormat& GetSigningImageFormat() const { return m_signingImageFormat; }
148 inline bool SigningImageFormatHasBeenSet() const { return m_signingImageFormatHasBeenSet; }
149 template <typename SigningImageFormatT = SigningImageFormat>
150 void SetSigningImageFormat(SigningImageFormatT&& value) {
151 m_signingImageFormatHasBeenSet = true;
152 m_signingImageFormat = std::forward<SigningImageFormatT>(value);
153 }
154 template <typename SigningImageFormatT = SigningImageFormat>
155 SigningPlatform& WithSigningImageFormat(SigningImageFormatT&& value) {
156 SetSigningImageFormat(std::forward<SigningImageFormatT>(value));
157 return *this;
158 }
160
162
166 inline int GetMaxSizeInMB() const { return m_maxSizeInMB; }
167 inline bool MaxSizeInMBHasBeenSet() const { return m_maxSizeInMBHasBeenSet; }
168 inline void SetMaxSizeInMB(int value) {
169 m_maxSizeInMBHasBeenSet = true;
170 m_maxSizeInMB = value;
171 }
172 inline SigningPlatform& WithMaxSizeInMB(int value) {
173 SetMaxSizeInMB(value);
174 return *this;
175 }
177
179
182 inline bool GetRevocationSupported() const { return m_revocationSupported; }
183 inline bool RevocationSupportedHasBeenSet() const { return m_revocationSupportedHasBeenSet; }
184 inline void SetRevocationSupported(bool value) {
185 m_revocationSupportedHasBeenSet = true;
186 m_revocationSupported = value;
187 }
190 return *this;
191 }
193 private:
194 Aws::String m_platformId;
195
196 Aws::String m_displayName;
197
198 Aws::String m_partner;
199
200 Aws::String m_target;
201
202 Category m_category{Category::NOT_SET};
203
204 SigningConfiguration m_signingConfiguration;
205
206 SigningImageFormat m_signingImageFormat;
207
208 int m_maxSizeInMB{0};
209
210 bool m_revocationSupported{false};
211 bool m_platformIdHasBeenSet = false;
212 bool m_displayNameHasBeenSet = false;
213 bool m_partnerHasBeenSet = false;
214 bool m_targetHasBeenSet = false;
215 bool m_categoryHasBeenSet = false;
216 bool m_signingConfigurationHasBeenSet = false;
217 bool m_signingImageFormatHasBeenSet = false;
218 bool m_maxSizeInMBHasBeenSet = false;
219 bool m_revocationSupportedHasBeenSet = false;
220};
221
222} // namespace Model
223} // namespace signer
224} // namespace Aws
SigningPlatform & WithTarget(TargetT &&value)
const SigningConfiguration & GetSigningConfiguration() const
SigningPlatform & WithPlatformId(PlatformIdT &&value)
void SetSigningConfiguration(SigningConfigurationT &&value)
const Aws::String & GetPartner() const
const Aws::String & GetTarget() const
const Aws::String & GetPlatformId() const
void SetDisplayName(DisplayNameT &&value)
AWS_SIGNER_API SigningPlatform(Aws::Utils::Json::JsonView jsonValue)
AWS_SIGNER_API SigningPlatform()=default
void SetPlatformId(PlatformIdT &&value)
AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const
SigningPlatform & WithRevocationSupported(bool value)
AWS_SIGNER_API SigningPlatform & operator=(Aws::Utils::Json::JsonView jsonValue)
SigningPlatform & WithSigningConfiguration(SigningConfigurationT &&value)
SigningPlatform & WithPartner(PartnerT &&value)
const SigningImageFormat & GetSigningImageFormat() const
const Aws::String & GetDisplayName() const
SigningPlatform & WithMaxSizeInMB(int value)
SigningPlatform & WithDisplayName(DisplayNameT &&value)
SigningPlatform & WithCategory(Category value)
SigningPlatform & WithSigningImageFormat(SigningImageFormatT &&value)
void SetSigningImageFormat(SigningImageFormatT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue