AWS SDK for C++  1.9.20
AWS SDK for C++
PublicKeyConfig.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
35  {
36  public:
40 
41  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42 
43 
48  inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
49 
54  inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
55 
60  inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
61 
66  inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::move(value); }
67 
72  inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
73 
78  inline PublicKeyConfig& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
79 
84  inline PublicKeyConfig& WithCallerReference(Aws::String&& value) { SetCallerReference(std::move(value)); return *this;}
85 
90  inline PublicKeyConfig& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
91 
92 
96  inline const Aws::String& GetName() const{ return m_name; }
97 
101  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 
106  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
107 
111  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
112 
116  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
117 
121  inline PublicKeyConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
122 
126  inline PublicKeyConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
127 
131  inline PublicKeyConfig& WithName(const char* value) { SetName(value); return *this;}
132 
133 
141  inline const Aws::String& GetEncodedKey() const{ return m_encodedKey; }
142 
150  inline bool EncodedKeyHasBeenSet() const { return m_encodedKeyHasBeenSet; }
151 
159  inline void SetEncodedKey(const Aws::String& value) { m_encodedKeyHasBeenSet = true; m_encodedKey = value; }
160 
168  inline void SetEncodedKey(Aws::String&& value) { m_encodedKeyHasBeenSet = true; m_encodedKey = std::move(value); }
169 
177  inline void SetEncodedKey(const char* value) { m_encodedKeyHasBeenSet = true; m_encodedKey.assign(value); }
178 
186  inline PublicKeyConfig& WithEncodedKey(const Aws::String& value) { SetEncodedKey(value); return *this;}
187 
195  inline PublicKeyConfig& WithEncodedKey(Aws::String&& value) { SetEncodedKey(std::move(value)); return *this;}
196 
204  inline PublicKeyConfig& WithEncodedKey(const char* value) { SetEncodedKey(value); return *this;}
205 
206 
211  inline const Aws::String& GetComment() const{ return m_comment; }
212 
217  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
218 
223  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
224 
229  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
230 
235  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
236 
241  inline PublicKeyConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
242 
247  inline PublicKeyConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
248 
253  inline PublicKeyConfig& WithComment(const char* value) { SetComment(value); return *this;}
254 
255  private:
256 
257  Aws::String m_callerReference;
258  bool m_callerReferenceHasBeenSet;
259 
260  Aws::String m_name;
261  bool m_nameHasBeenSet;
262 
263  Aws::String m_encodedKey;
264  bool m_encodedKeyHasBeenSet;
265 
266  Aws::String m_comment;
267  bool m_commentHasBeenSet;
268  };
269 
270 } // namespace Model
271 } // namespace CloudFront
272 } // namespace Aws
Aws::CloudFront::Model::PublicKeyConfig::SetName
void SetName(const Aws::String &value)
Definition: PublicKeyConfig.h:106
Aws::CloudFront::Model::PublicKeyConfig::WithCallerReference
PublicKeyConfig & WithCallerReference(const char *value)
Definition: PublicKeyConfig.h:90
Aws::CloudFront::Model::PublicKeyConfig::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: PublicKeyConfig.h:217
Aws::CloudFront::Model::PublicKeyConfig::CallerReferenceHasBeenSet
bool CallerReferenceHasBeenSet() const
Definition: PublicKeyConfig.h:54
Aws::CloudFront::Model::PublicKeyConfig::WithComment
PublicKeyConfig & WithComment(const Aws::String &value)
Definition: PublicKeyConfig.h:241
Aws::CloudFront::Model::PublicKeyConfig::WithName
PublicKeyConfig & WithName(const Aws::String &value)
Definition: PublicKeyConfig.h:121
Aws::CloudFront::Model::PublicKeyConfig::GetComment
const Aws::String & GetComment() const
Definition: PublicKeyConfig.h:211
Aws::CloudFront::Model::PublicKeyConfig::SetName
void SetName(const char *value)
Definition: PublicKeyConfig.h:116
Aws::CloudFront::Model::PublicKeyConfig::GetEncodedKey
const Aws::String & GetEncodedKey() const
Definition: PublicKeyConfig.h:141
Aws::CloudFront::Model::PublicKeyConfig::WithComment
PublicKeyConfig & WithComment(Aws::String &&value)
Definition: PublicKeyConfig.h:247
Aws::CloudFront::Model::PublicKeyConfig::WithName
PublicKeyConfig & WithName(Aws::String &&value)
Definition: PublicKeyConfig.h:126
Aws::CloudFront::Model::PublicKeyConfig::GetName
const Aws::String & GetName() const
Definition: PublicKeyConfig.h:96
Aws::CloudFront::Model::PublicKeyConfig::SetEncodedKey
void SetEncodedKey(Aws::String &&value)
Definition: PublicKeyConfig.h:168
Aws::CloudFront::Model::PublicKeyConfig::SetEncodedKey
void SetEncodedKey(const char *value)
Definition: PublicKeyConfig.h:177
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::PublicKeyConfig::GetCallerReference
const Aws::String & GetCallerReference() const
Definition: PublicKeyConfig.h:48
Aws::CloudFront::Model::PublicKeyConfig::PublicKeyConfig
PublicKeyConfig()
Aws::CloudFront::Model::PublicKeyConfig::EncodedKeyHasBeenSet
bool EncodedKeyHasBeenSet() const
Definition: PublicKeyConfig.h:150
Aws::CloudFront::Model::PublicKeyConfig::SetComment
void SetComment(Aws::String &&value)
Definition: PublicKeyConfig.h:229
AWSString.h
Aws::CloudFront::Model::PublicKeyConfig::SetCallerReference
void SetCallerReference(Aws::String &&value)
Definition: PublicKeyConfig.h:66
Aws::CloudFront::Model::PublicKeyConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::PublicKeyConfig::SetComment
void SetComment(const Aws::String &value)
Definition: PublicKeyConfig.h:223
Aws::CloudFront::Model::PublicKeyConfig::SetEncodedKey
void SetEncodedKey(const Aws::String &value)
Definition: PublicKeyConfig.h:159
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::PublicKeyConfig::WithComment
PublicKeyConfig & WithComment(const char *value)
Definition: PublicKeyConfig.h:253
CloudFront_EXPORTS.h
Aws::CloudFront::Model::PublicKeyConfig::WithEncodedKey
PublicKeyConfig & WithEncodedKey(Aws::String &&value)
Definition: PublicKeyConfig.h:195
Aws::CloudFront::Model::PublicKeyConfig::WithEncodedKey
PublicKeyConfig & WithEncodedKey(const char *value)
Definition: PublicKeyConfig.h:204
Aws::CloudFront::Model::PublicKeyConfig::SetName
void SetName(Aws::String &&value)
Definition: PublicKeyConfig.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::PublicKeyConfig::SetCallerReference
void SetCallerReference(const char *value)
Definition: PublicKeyConfig.h:72
Aws::CloudFront::Model::PublicKeyConfig
Definition: PublicKeyConfig.h:35
Aws::CloudFront::Model::PublicKeyConfig::WithEncodedKey
PublicKeyConfig & WithEncodedKey(const Aws::String &value)
Definition: PublicKeyConfig.h:186
Aws::CloudFront::Model::PublicKeyConfig::operator=
PublicKeyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::PublicKeyConfig::WithCallerReference
PublicKeyConfig & WithCallerReference(const Aws::String &value)
Definition: PublicKeyConfig.h:78
Aws::CloudFront::Model::PublicKeyConfig::PublicKeyConfig
PublicKeyConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::PublicKeyConfig::WithCallerReference
PublicKeyConfig & WithCallerReference(Aws::String &&value)
Definition: PublicKeyConfig.h:84
Aws::CloudFront::Model::PublicKeyConfig::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PublicKeyConfig.h:101
Aws::CloudFront::Model::PublicKeyConfig::SetCallerReference
void SetCallerReference(const Aws::String &value)
Definition: PublicKeyConfig.h:60
Aws::CloudFront::Model::PublicKeyConfig::SetComment
void SetComment(const char *value)
Definition: PublicKeyConfig.h:235
Aws::CloudFront::Model::PublicKeyConfig::WithName
PublicKeyConfig & WithName(const char *value)
Definition: PublicKeyConfig.h:131