AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PublicKey.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/cloudfront/model/PublicKeyConfig.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFront
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_CLOUDFRONT_API PublicKey() = default;
40 AWS_CLOUDFRONT_API PublicKey(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFRONT_API PublicKey& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 PublicKey& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
63 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
64 template<typename CreatedTimeT = Aws::Utils::DateTime>
65 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
66 template<typename CreatedTimeT = Aws::Utils::DateTime>
67 PublicKey& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
69
71
78 inline const PublicKeyConfig& GetPublicKeyConfig() const { return m_publicKeyConfig; }
79 inline bool PublicKeyConfigHasBeenSet() const { return m_publicKeyConfigHasBeenSet; }
80 template<typename PublicKeyConfigT = PublicKeyConfig>
81 void SetPublicKeyConfig(PublicKeyConfigT&& value) { m_publicKeyConfigHasBeenSet = true; m_publicKeyConfig = std::forward<PublicKeyConfigT>(value); }
82 template<typename PublicKeyConfigT = PublicKeyConfig>
83 PublicKey& WithPublicKeyConfig(PublicKeyConfigT&& value) { SetPublicKeyConfig(std::forward<PublicKeyConfigT>(value)); return *this;}
85 private:
86
87 Aws::String m_id;
88 bool m_idHasBeenSet = false;
89
90 Aws::Utils::DateTime m_createdTime{};
91 bool m_createdTimeHasBeenSet = false;
92
93 PublicKeyConfig m_publicKeyConfig;
94 bool m_publicKeyConfigHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CloudFront
99} // namespace Aws
PublicKey & WithCreatedTime(CreatedTimeT &&value)
Definition PublicKey.h:67
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:78
void SetCreatedTime(CreatedTimeT &&value)
Definition PublicKey.h:65
const Aws::String & GetId() const
Definition PublicKey.h:50
const Aws::Utils::DateTime & GetCreatedTime() const
Definition PublicKey.h:62
PublicKey & WithPublicKeyConfig(PublicKeyConfigT &&value)
Definition PublicKey.h:83
void SetPublicKeyConfig(PublicKeyConfigT &&value)
Definition PublicKey.h:81
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
PublicKey & WithId(IdT &&value)
Definition PublicKey.h:55
AWS_CLOUDFRONT_API PublicKey()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String