AWS SDK for C++  1.9.21
AWS SDK for C++
PublicKey.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace CloudFront
23 {
24 namespace Model
25 {
26 
37  {
38  public:
42 
43  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44 
45 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
54  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 
59  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 
64  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 
69  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
70 
74  inline PublicKey& WithId(const Aws::String& value) { SetId(value); return *this;}
75 
79  inline PublicKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
80 
84  inline PublicKey& WithId(const char* value) { SetId(value); return *this;}
85 
86 
90  inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
91 
95  inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
96 
100  inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
101 
105  inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
106 
110  inline PublicKey& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
111 
115  inline PublicKey& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
116 
117 
125  inline const PublicKeyConfig& GetPublicKeyConfig() const{ return m_publicKeyConfig; }
126 
134  inline bool PublicKeyConfigHasBeenSet() const { return m_publicKeyConfigHasBeenSet; }
135 
143  inline void SetPublicKeyConfig(const PublicKeyConfig& value) { m_publicKeyConfigHasBeenSet = true; m_publicKeyConfig = value; }
144 
152  inline void SetPublicKeyConfig(PublicKeyConfig&& value) { m_publicKeyConfigHasBeenSet = true; m_publicKeyConfig = std::move(value); }
153 
161  inline PublicKey& WithPublicKeyConfig(const PublicKeyConfig& value) { SetPublicKeyConfig(value); return *this;}
162 
170  inline PublicKey& WithPublicKeyConfig(PublicKeyConfig&& value) { SetPublicKeyConfig(std::move(value)); return *this;}
171 
172  private:
173 
174  Aws::String m_id;
175  bool m_idHasBeenSet;
176 
177  Aws::Utils::DateTime m_createdTime;
178  bool m_createdTimeHasBeenSet;
179 
180  PublicKeyConfig m_publicKeyConfig;
181  bool m_publicKeyConfigHasBeenSet;
182  };
183 
184 } // namespace Model
185 } // namespace CloudFront
186 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::CloudFront::Model::PublicKey::SetId
void SetId(Aws::String &&value)
Definition: PublicKey.h:64
Aws::CloudFront::Model::PublicKey::WithId
PublicKey & WithId(const char *value)
Definition: PublicKey.h:84
Aws::CloudFront::Model::PublicKey::SetId
void SetId(const char *value)
Definition: PublicKey.h:69
DateTime.h
Aws::CloudFront::Model::PublicKey::PublicKey
PublicKey(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::PublicKey::WithPublicKeyConfig
PublicKey & WithPublicKeyConfig(const PublicKeyConfig &value)
Definition: PublicKey.h:161
Aws::CloudFront::Model::PublicKey::WithCreatedTime
PublicKey & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition: PublicKey.h:110
PublicKeyConfig.h
Aws::CloudFront::Model::PublicKey::GetId
const Aws::String & GetId() const
Definition: PublicKey.h:49
Aws::CloudFront::Model::PublicKey
Definition: PublicKey.h:37
Aws::CloudFront::Model::PublicKey::WithCreatedTime
PublicKey & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition: PublicKey.h:115
Aws::CloudFront::Model::PublicKey::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::PublicKey::operator=
PublicKey & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::CloudFront::Model::PublicKey::SetId
void SetId(const Aws::String &value)
Definition: PublicKey.h:59
Aws::CloudFront::Model::PublicKey::PublicKey
PublicKey()
Aws::CloudFront::Model::PublicKey::SetPublicKeyConfig
void SetPublicKeyConfig(PublicKeyConfig &&value)
Definition: PublicKey.h:152
Aws::CloudFront::Model::PublicKey::PublicKeyConfigHasBeenSet
bool PublicKeyConfigHasBeenSet() const
Definition: PublicKey.h:134
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::PublicKey::WithPublicKeyConfig
PublicKey & WithPublicKeyConfig(PublicKeyConfig &&value)
Definition: PublicKey.h:170
CloudFront_EXPORTS.h
Aws::CloudFront::Model::PublicKey::WithId
PublicKey & WithId(Aws::String &&value)
Definition: PublicKey.h:79
Aws::CloudFront::Model::PublicKey::SetCreatedTime
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition: PublicKey.h:105
Aws::CloudFront::Model::PublicKey::SetCreatedTime
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition: PublicKey.h:100
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::PublicKey::IdHasBeenSet
bool IdHasBeenSet() const
Definition: PublicKey.h:54
Aws::CloudFront::Model::PublicKeyConfig
Definition: PublicKeyConfig.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::PublicKey::SetPublicKeyConfig
void SetPublicKeyConfig(const PublicKeyConfig &value)
Definition: PublicKey.h:143
Aws::CloudFront::Model::PublicKey::GetCreatedTime
const Aws::Utils::DateTime & GetCreatedTime() const
Definition: PublicKey.h:90
Aws::CloudFront::Model::PublicKey::GetPublicKeyConfig
const PublicKeyConfig & GetPublicKeyConfig() const
Definition: PublicKey.h:125
Aws::CloudFront::Model::PublicKey::WithId
PublicKey & WithId(const Aws::String &value)
Definition: PublicKey.h:74
Aws::CloudFront::Model::PublicKey::CreatedTimeHasBeenSet
bool CreatedTimeHasBeenSet() const
Definition: PublicKey.h:95