AWS SDK for C++  1.9.104
AWS SDK for C++
HsmConfiguration.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/redshift/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace Redshift
24 {
25 namespace Model
26 {
27 
37  {
38  public:
42 
43  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44  void OutputToStream(Aws::OStream& oStream, const char* location) const;
45 
46 
50  inline const Aws::String& GetHsmConfigurationIdentifier() const{ return m_hsmConfigurationIdentifier; }
51 
55  inline bool HsmConfigurationIdentifierHasBeenSet() const { return m_hsmConfigurationIdentifierHasBeenSet; }
56 
60  inline void SetHsmConfigurationIdentifier(const Aws::String& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; }
61 
65  inline void SetHsmConfigurationIdentifier(Aws::String&& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = std::move(value); }
66 
70  inline void SetHsmConfigurationIdentifier(const char* value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier.assign(value); }
71 
75  inline HsmConfiguration& WithHsmConfigurationIdentifier(const Aws::String& value) { SetHsmConfigurationIdentifier(value); return *this;}
76 
80  inline HsmConfiguration& WithHsmConfigurationIdentifier(Aws::String&& value) { SetHsmConfigurationIdentifier(std::move(value)); return *this;}
81 
85  inline HsmConfiguration& WithHsmConfigurationIdentifier(const char* value) { SetHsmConfigurationIdentifier(value); return *this;}
86 
87 
91  inline const Aws::String& GetDescription() const{ return m_description; }
92 
96  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 
101  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
102 
106  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
107 
111  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
112 
116  inline HsmConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
117 
121  inline HsmConfiguration& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
122 
126  inline HsmConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
127 
128 
133  inline const Aws::String& GetHsmIpAddress() const{ return m_hsmIpAddress; }
134 
139  inline bool HsmIpAddressHasBeenSet() const { return m_hsmIpAddressHasBeenSet; }
140 
145  inline void SetHsmIpAddress(const Aws::String& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = value; }
146 
151  inline void SetHsmIpAddress(Aws::String&& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = std::move(value); }
152 
157  inline void SetHsmIpAddress(const char* value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress.assign(value); }
158 
163  inline HsmConfiguration& WithHsmIpAddress(const Aws::String& value) { SetHsmIpAddress(value); return *this;}
164 
169  inline HsmConfiguration& WithHsmIpAddress(Aws::String&& value) { SetHsmIpAddress(std::move(value)); return *this;}
170 
175  inline HsmConfiguration& WithHsmIpAddress(const char* value) { SetHsmIpAddress(value); return *this;}
176 
177 
182  inline const Aws::String& GetHsmPartitionName() const{ return m_hsmPartitionName; }
183 
188  inline bool HsmPartitionNameHasBeenSet() const { return m_hsmPartitionNameHasBeenSet; }
189 
194  inline void SetHsmPartitionName(const Aws::String& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = value; }
195 
200  inline void SetHsmPartitionName(Aws::String&& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = std::move(value); }
201 
206  inline void SetHsmPartitionName(const char* value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName.assign(value); }
207 
212  inline HsmConfiguration& WithHsmPartitionName(const Aws::String& value) { SetHsmPartitionName(value); return *this;}
213 
218  inline HsmConfiguration& WithHsmPartitionName(Aws::String&& value) { SetHsmPartitionName(std::move(value)); return *this;}
219 
224  inline HsmConfiguration& WithHsmPartitionName(const char* value) { SetHsmPartitionName(value); return *this;}
225 
226 
230  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
231 
235  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
236 
240  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
241 
245  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
246 
250  inline HsmConfiguration& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
251 
255  inline HsmConfiguration& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
256 
260  inline HsmConfiguration& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
261 
265  inline HsmConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
266 
267  private:
268 
269  Aws::String m_hsmConfigurationIdentifier;
270  bool m_hsmConfigurationIdentifierHasBeenSet;
271 
272  Aws::String m_description;
273  bool m_descriptionHasBeenSet;
274 
275  Aws::String m_hsmIpAddress;
276  bool m_hsmIpAddressHasBeenSet;
277 
278  Aws::String m_hsmPartitionName;
279  bool m_hsmPartitionNameHasBeenSet;
280 
281  Aws::Vector<Tag> m_tags;
282  bool m_tagsHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace Redshift
287 } // namespace Aws
Aws::Redshift::Model::HsmConfiguration::SetHsmPartitionName
void SetHsmPartitionName(const Aws::String &value)
Definition: HsmConfiguration.h:194
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::HsmConfiguration::WithHsmConfigurationIdentifier
HsmConfiguration & WithHsmConfigurationIdentifier(const Aws::String &value)
Definition: HsmConfiguration.h:75
Aws::Redshift::Model::HsmConfiguration::WithHsmIpAddress
HsmConfiguration & WithHsmIpAddress(const char *value)
Definition: HsmConfiguration.h:175
Aws::Redshift::Model::HsmConfiguration::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: HsmConfiguration.h:230
Aws::Redshift::Model::HsmConfiguration::WithDescription
HsmConfiguration & WithDescription(Aws::String &&value)
Definition: HsmConfiguration.h:121
Aws::Redshift::Model::HsmConfiguration::HsmConfiguration
HsmConfiguration()
Aws::Redshift::Model::HsmConfiguration::SetHsmPartitionName
void SetHsmPartitionName(Aws::String &&value)
Definition: HsmConfiguration.h:200
Tag.h
Aws::Redshift::Model::HsmConfiguration::WithTags
HsmConfiguration & WithTags(const Aws::Vector< Tag > &value)
Definition: HsmConfiguration.h:250
Aws::Redshift::Model::HsmConfiguration::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: HsmConfiguration.h:235
Aws::Redshift::Model::HsmConfiguration::SetDescription
void SetDescription(const Aws::String &value)
Definition: HsmConfiguration.h:101
Aws::Redshift::Model::HsmConfiguration::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::HsmConfiguration::WithHsmPartitionName
HsmConfiguration & WithHsmPartitionName(Aws::String &&value)
Definition: HsmConfiguration.h:218
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::Redshift::Model::HsmConfiguration::WithHsmPartitionName
HsmConfiguration & WithHsmPartitionName(const Aws::String &value)
Definition: HsmConfiguration.h:212
Aws::Redshift::Model::HsmConfiguration::SetHsmIpAddress
void SetHsmIpAddress(Aws::String &&value)
Definition: HsmConfiguration.h:151
Aws::Redshift::Model::HsmConfiguration::AddTags
HsmConfiguration & AddTags(Tag &&value)
Definition: HsmConfiguration.h:265
AWSVector.h
Aws::Redshift::Model::HsmConfiguration::SetDescription
void SetDescription(Aws::String &&value)
Definition: HsmConfiguration.h:106
Aws::Redshift::Model::HsmConfiguration::HsmConfiguration
HsmConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::HsmConfiguration::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: HsmConfiguration.h:240
Aws::Redshift::Model::HsmConfiguration::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::HsmConfiguration::WithTags
HsmConfiguration & WithTags(Aws::Vector< Tag > &&value)
Definition: HsmConfiguration.h:255
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::HsmConfiguration::HsmPartitionNameHasBeenSet
bool HsmPartitionNameHasBeenSet() const
Definition: HsmConfiguration.h:188
Aws::Redshift::Model::HsmConfiguration::GetHsmConfigurationIdentifier
const Aws::String & GetHsmConfigurationIdentifier() const
Definition: HsmConfiguration.h:50
Aws::Redshift::Model::HsmConfiguration::AddTags
HsmConfiguration & AddTags(const Tag &value)
Definition: HsmConfiguration.h:260
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::HsmConfiguration::WithHsmPartitionName
HsmConfiguration & WithHsmPartitionName(const char *value)
Definition: HsmConfiguration.h:224
Aws::Redshift::Model::HsmConfiguration
Definition: HsmConfiguration.h:37
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::HsmConfiguration::SetHsmIpAddress
void SetHsmIpAddress(const Aws::String &value)
Definition: HsmConfiguration.h:145
Aws::Redshift::Model::HsmConfiguration::SetHsmIpAddress
void SetHsmIpAddress(const char *value)
Definition: HsmConfiguration.h:157
AWSString.h
Aws::Redshift::Model::HsmConfiguration::WithHsmConfigurationIdentifier
HsmConfiguration & WithHsmConfigurationIdentifier(const char *value)
Definition: HsmConfiguration.h:85
Aws::Redshift::Model::HsmConfiguration::WithDescription
HsmConfiguration & WithDescription(const char *value)
Definition: HsmConfiguration.h:126
Aws::Redshift::Model::HsmConfiguration::WithHsmIpAddress
HsmConfiguration & WithHsmIpAddress(Aws::String &&value)
Definition: HsmConfiguration.h:169
Aws::Redshift::Model::HsmConfiguration::GetHsmPartitionName
const Aws::String & GetHsmPartitionName() const
Definition: HsmConfiguration.h:182
Aws::Redshift::Model::HsmConfiguration::SetHsmConfigurationIdentifier
void SetHsmConfigurationIdentifier(Aws::String &&value)
Definition: HsmConfiguration.h:65
Aws::Redshift::Model::HsmConfiguration::SetHsmPartitionName
void SetHsmPartitionName(const char *value)
Definition: HsmConfiguration.h:206
Aws::Redshift::Model::HsmConfiguration::WithDescription
HsmConfiguration & WithDescription(const Aws::String &value)
Definition: HsmConfiguration.h:116
Aws::Redshift::Model::HsmConfiguration::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: HsmConfiguration.h:96
Aws::Redshift::Model::HsmConfiguration::HsmIpAddressHasBeenSet
bool HsmIpAddressHasBeenSet() const
Definition: HsmConfiguration.h:139
Aws::Redshift::Model::HsmConfiguration::SetDescription
void SetDescription(const char *value)
Definition: HsmConfiguration.h:111
Aws::Redshift::Model::HsmConfiguration::GetDescription
const Aws::String & GetDescription() const
Definition: HsmConfiguration.h:91
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::HsmConfiguration::HsmConfigurationIdentifierHasBeenSet
bool HsmConfigurationIdentifierHasBeenSet() const
Definition: HsmConfiguration.h:55
Aws::Redshift::Model::HsmConfiguration::WithHsmConfigurationIdentifier
HsmConfiguration & WithHsmConfigurationIdentifier(Aws::String &&value)
Definition: HsmConfiguration.h:80
Aws::Redshift::Model::HsmConfiguration::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: HsmConfiguration.h:245
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::HsmConfiguration::operator=
HsmConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::HsmConfiguration::WithHsmIpAddress
HsmConfiguration & WithHsmIpAddress(const Aws::String &value)
Definition: HsmConfiguration.h:163
Aws::Redshift::Model::HsmConfiguration::SetHsmConfigurationIdentifier
void SetHsmConfigurationIdentifier(const char *value)
Definition: HsmConfiguration.h:70
Aws::Redshift::Model::HsmConfiguration::SetHsmConfigurationIdentifier
void SetHsmConfigurationIdentifier(const Aws::String &value)
Definition: HsmConfiguration.h:60
Aws::Redshift::Model::HsmConfiguration::GetHsmIpAddress
const Aws::String & GetHsmIpAddress() const
Definition: HsmConfiguration.h:133