AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
HsmConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Redshift {
22namespace Model {
23
33 public:
34 AWS_REDSHIFT_API HsmConfiguration() = default;
35 AWS_REDSHIFT_API HsmConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_REDSHIFT_API HsmConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetHsmConfigurationIdentifier() const { return m_hsmConfigurationIdentifier; }
46 inline bool HsmConfigurationIdentifierHasBeenSet() const { return m_hsmConfigurationIdentifierHasBeenSet; }
47 template <typename HsmConfigurationIdentifierT = Aws::String>
48 void SetHsmConfigurationIdentifier(HsmConfigurationIdentifierT&& value) {
49 m_hsmConfigurationIdentifierHasBeenSet = true;
50 m_hsmConfigurationIdentifier = std::forward<HsmConfigurationIdentifierT>(value);
51 }
52 template <typename HsmConfigurationIdentifierT = Aws::String>
53 HsmConfiguration& WithHsmConfigurationIdentifier(HsmConfigurationIdentifierT&& value) {
54 SetHsmConfigurationIdentifier(std::forward<HsmConfigurationIdentifierT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 template <typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) {
67 m_descriptionHasBeenSet = true;
68 m_description = std::forward<DescriptionT>(value);
69 }
70 template <typename DescriptionT = Aws::String>
71 HsmConfiguration& WithDescription(DescriptionT&& value) {
72 SetDescription(std::forward<DescriptionT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetHsmIpAddress() const { return m_hsmIpAddress; }
83 inline bool HsmIpAddressHasBeenSet() const { return m_hsmIpAddressHasBeenSet; }
84 template <typename HsmIpAddressT = Aws::String>
85 void SetHsmIpAddress(HsmIpAddressT&& value) {
86 m_hsmIpAddressHasBeenSet = true;
87 m_hsmIpAddress = std::forward<HsmIpAddressT>(value);
88 }
89 template <typename HsmIpAddressT = Aws::String>
90 HsmConfiguration& WithHsmIpAddress(HsmIpAddressT&& value) {
91 SetHsmIpAddress(std::forward<HsmIpAddressT>(value));
92 return *this;
93 }
95
97
101 inline const Aws::String& GetHsmPartitionName() const { return m_hsmPartitionName; }
102 inline bool HsmPartitionNameHasBeenSet() const { return m_hsmPartitionNameHasBeenSet; }
103 template <typename HsmPartitionNameT = Aws::String>
104 void SetHsmPartitionName(HsmPartitionNameT&& value) {
105 m_hsmPartitionNameHasBeenSet = true;
106 m_hsmPartitionName = std::forward<HsmPartitionNameT>(value);
107 }
108 template <typename HsmPartitionNameT = Aws::String>
109 HsmConfiguration& WithHsmPartitionName(HsmPartitionNameT&& value) {
110 SetHsmPartitionName(std::forward<HsmPartitionNameT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template <typename TagsT = Aws::Vector<Tag>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Vector<Tag>>
127 HsmConfiguration& WithTags(TagsT&& value) {
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsT = Tag>
132 HsmConfiguration& AddTags(TagsT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace_back(std::forward<TagsT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_hsmConfigurationIdentifier;
140
141 Aws::String m_description;
142
143 Aws::String m_hsmIpAddress;
144
145 Aws::String m_hsmPartitionName;
146
147 Aws::Vector<Tag> m_tags;
148 bool m_hsmConfigurationIdentifierHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_hsmIpAddressHasBeenSet = false;
151 bool m_hsmPartitionNameHasBeenSet = false;
152 bool m_tagsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace Redshift
157} // namespace Aws
AWS_REDSHIFT_API HsmConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHsmPartitionName(HsmPartitionNameT &&value)
AWS_REDSHIFT_API HsmConfiguration()=default
const Aws::String & GetHsmPartitionName() const
const Aws::String & GetHsmIpAddress() const
HsmConfiguration & WithHsmPartitionName(HsmPartitionNameT &&value)
void SetDescription(DescriptionT &&value)
void SetHsmIpAddress(HsmIpAddressT &&value)
HsmConfiguration & WithDescription(DescriptionT &&value)
HsmConfiguration & AddTags(TagsT &&value)
const Aws::String & GetDescription() const
AWS_REDSHIFT_API HsmConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
HsmConfiguration & WithTags(TagsT &&value)
const Aws::String & GetHsmConfigurationIdentifier() const
HsmConfiguration & WithHsmConfigurationIdentifier(HsmConfigurationIdentifierT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< Tag > & GetTags() const
HsmConfiguration & WithHsmIpAddress(HsmIpAddressT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetHsmConfigurationIdentifier(HsmConfigurationIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream