AWS SDK for C++  0.12.9
AWS SDK for C++
HsmConfiguration.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 #include <aws/redshift/model/Tag.h>
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace Redshift
32 {
33 namespace Model
34 {
35 
42  {
43  public:
46  HsmConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
54  inline const Aws::String& GetHsmConfigurationIdentifier() const{ return m_hsmConfigurationIdentifier; }
55 
59  inline void SetHsmConfigurationIdentifier(const Aws::String& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; }
60 
64  inline void SetHsmConfigurationIdentifier(Aws::String&& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = value; }
65 
69  inline void SetHsmConfigurationIdentifier(const char* value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier.assign(value); }
70 
74  inline HsmConfiguration& WithHsmConfigurationIdentifier(const Aws::String& value) { SetHsmConfigurationIdentifier(value); return *this;}
75 
79  inline HsmConfiguration& WithHsmConfigurationIdentifier(Aws::String&& value) { SetHsmConfigurationIdentifier(value); return *this;}
80 
84  inline HsmConfiguration& WithHsmConfigurationIdentifier(const char* value) { SetHsmConfigurationIdentifier(value); return *this;}
85 
89  inline const Aws::String& GetDescription() const{ return m_description; }
90 
94  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 
99  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
100 
104  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105 
109  inline HsmConfiguration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110 
114  inline HsmConfiguration& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
115 
119  inline HsmConfiguration& WithDescription(const char* value) { SetDescription(value); return *this;}
120 
125  inline const Aws::String& GetHsmIpAddress() const{ return m_hsmIpAddress; }
126 
131  inline void SetHsmIpAddress(const Aws::String& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = value; }
132 
137  inline void SetHsmIpAddress(Aws::String&& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = value; }
138 
143  inline void SetHsmIpAddress(const char* value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress.assign(value); }
144 
149  inline HsmConfiguration& WithHsmIpAddress(const Aws::String& value) { SetHsmIpAddress(value); return *this;}
150 
155  inline HsmConfiguration& WithHsmIpAddress(Aws::String&& value) { SetHsmIpAddress(value); return *this;}
156 
161  inline HsmConfiguration& WithHsmIpAddress(const char* value) { SetHsmIpAddress(value); return *this;}
162 
167  inline const Aws::String& GetHsmPartitionName() const{ return m_hsmPartitionName; }
168 
173  inline void SetHsmPartitionName(const Aws::String& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = value; }
174 
179  inline void SetHsmPartitionName(Aws::String&& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = value; }
180 
185  inline void SetHsmPartitionName(const char* value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName.assign(value); }
186 
191  inline HsmConfiguration& WithHsmPartitionName(const Aws::String& value) { SetHsmPartitionName(value); return *this;}
192 
197  inline HsmConfiguration& WithHsmPartitionName(Aws::String&& value) { SetHsmPartitionName(value); return *this;}
198 
203  inline HsmConfiguration& WithHsmPartitionName(const char* value) { SetHsmPartitionName(value); return *this;}
204 
208  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
209 
213  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
214 
218  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
219 
223  inline HsmConfiguration& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
224 
228  inline HsmConfiguration& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
229 
233  inline HsmConfiguration& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
234 
238  inline HsmConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
239 
240  private:
241  Aws::String m_hsmConfigurationIdentifier;
242  bool m_hsmConfigurationIdentifierHasBeenSet;
243  Aws::String m_description;
244  bool m_descriptionHasBeenSet;
245  Aws::String m_hsmIpAddress;
246  bool m_hsmIpAddressHasBeenSet;
247  Aws::String m_hsmPartitionName;
248  bool m_hsmPartitionNameHasBeenSet;
249  Aws::Vector<Tag> m_tags;
250  bool m_tagsHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace Redshift
255 } // namespace Aws
HsmConfiguration & WithHsmIpAddress(const Aws::String &value)
HsmConfiguration & WithHsmConfigurationIdentifier(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
HsmConfiguration & AddTags(Tag &&value)
HsmConfiguration & WithHsmIpAddress(const char *value)
HsmConfiguration & WithDescription(const char *value)
HsmConfiguration & WithTags(const Aws::Vector< Tag > &value)
void SetHsmConfigurationIdentifier(const Aws::String &value)
HsmConfiguration & WithHsmConfigurationIdentifier(const char *value)
const Aws::String & GetDescription() const
void SetHsmConfigurationIdentifier(Aws::String &&value)
void SetHsmPartitionName(const char *value)
HsmConfiguration & WithDescription(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetHsmConfigurationIdentifier(const char *value)
void SetHsmPartitionName(Aws::String &&value)
void SetHsmIpAddress(Aws::String &&value)
HsmConfiguration & WithDescription(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
HsmConfiguration & WithHsmIpAddress(Aws::String &&value)
const Aws::String & GetHsmPartitionName() const
#define AWS_REDSHIFT_API
HsmConfiguration & WithHsmPartitionName(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetDescription(const Aws::String &value)
HsmConfiguration & WithHsmPartitionName(Aws::String &&value)
HsmConfiguration & AddTags(const Tag &value)
const Aws::String & GetHsmIpAddress() const
void SetHsmIpAddress(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetHsmPartitionName(const Aws::String &value)
HsmConfiguration & WithHsmConfigurationIdentifier(Aws::String &&value)
HsmConfiguration & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetHsmConfigurationIdentifier() const
HsmConfiguration & WithHsmPartitionName(const Aws::String &value)
void SetDescription(Aws::String &&value)
JSON (JavaScript Object Notation).