AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PublicKey.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/PublicKeyConfig.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront {
21namespace Model {
22
34class PublicKey {
35 public:
36 AWS_CLOUDFRONT_API PublicKey() = default;
37 AWS_CLOUDFRONT_API PublicKey(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API PublicKey& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
43
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 PublicKey& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
65 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
66 template <typename CreatedTimeT = Aws::Utils::DateTime>
67 void SetCreatedTime(CreatedTimeT&& value) {
68 m_createdTimeHasBeenSet = true;
69 m_createdTime = std::forward<CreatedTimeT>(value);
70 }
71 template <typename CreatedTimeT = Aws::Utils::DateTime>
72 PublicKey& WithCreatedTime(CreatedTimeT&& value) {
73 SetCreatedTime(std::forward<CreatedTimeT>(value));
74 return *this;
75 }
77
79
86 inline const PublicKeyConfig& GetPublicKeyConfig() const { return m_publicKeyConfig; }
87 inline bool PublicKeyConfigHasBeenSet() const { return m_publicKeyConfigHasBeenSet; }
88 template <typename PublicKeyConfigT = PublicKeyConfig>
89 void SetPublicKeyConfig(PublicKeyConfigT&& value) {
90 m_publicKeyConfigHasBeenSet = true;
91 m_publicKeyConfig = std::forward<PublicKeyConfigT>(value);
92 }
93 template <typename PublicKeyConfigT = PublicKeyConfig>
94 PublicKey& WithPublicKeyConfig(PublicKeyConfigT&& value) {
95 SetPublicKeyConfig(std::forward<PublicKeyConfigT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_id;
101
102 Aws::Utils::DateTime m_createdTime{};
103
104 PublicKeyConfig m_publicKeyConfig;
105 bool m_idHasBeenSet = false;
106 bool m_createdTimeHasBeenSet = false;
107 bool m_publicKeyConfigHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace CloudFront
112} // namespace Aws
PublicKey & WithCreatedTime(CreatedTimeT &&value)
Definition PublicKey.h:72
AWS_CLOUDFRONT_API PublicKey(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API PublicKey & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const PublicKeyConfig & GetPublicKeyConfig() const
Definition PublicKey.h:86
void SetCreatedTime(CreatedTimeT &&value)
Definition PublicKey.h:67
const Aws::String & GetId() const
Definition PublicKey.h:46
const Aws::Utils::DateTime & GetCreatedTime() const
Definition PublicKey.h:64
PublicKey & WithPublicKeyConfig(PublicKeyConfigT &&value)
Definition PublicKey.h:94
void SetPublicKeyConfig(PublicKeyConfigT &&value)
Definition PublicKey.h:89
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
PublicKey & WithId(IdT &&value)
Definition PublicKey.h:54
AWS_CLOUDFRONT_API PublicKey()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String