AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HsmConfiguration.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Redshift
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_REDSHIFT_API HsmConfiguration() = default;
40 AWS_REDSHIFT_API HsmConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_REDSHIFT_API HsmConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetHsmConfigurationIdentifier() const { return m_hsmConfigurationIdentifier; }
52 inline bool HsmConfigurationIdentifierHasBeenSet() const { return m_hsmConfigurationIdentifierHasBeenSet; }
53 template<typename HsmConfigurationIdentifierT = Aws::String>
54 void SetHsmConfigurationIdentifier(HsmConfigurationIdentifierT&& value) { m_hsmConfigurationIdentifierHasBeenSet = true; m_hsmConfigurationIdentifier = std::forward<HsmConfigurationIdentifierT>(value); }
55 template<typename HsmConfigurationIdentifierT = Aws::String>
56 HsmConfiguration& WithHsmConfigurationIdentifier(HsmConfigurationIdentifierT&& value) { SetHsmConfigurationIdentifier(std::forward<HsmConfigurationIdentifierT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
67 template<typename DescriptionT = Aws::String>
68 HsmConfiguration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
70
72
76 inline const Aws::String& GetHsmIpAddress() const { return m_hsmIpAddress; }
77 inline bool HsmIpAddressHasBeenSet() const { return m_hsmIpAddressHasBeenSet; }
78 template<typename HsmIpAddressT = Aws::String>
79 void SetHsmIpAddress(HsmIpAddressT&& value) { m_hsmIpAddressHasBeenSet = true; m_hsmIpAddress = std::forward<HsmIpAddressT>(value); }
80 template<typename HsmIpAddressT = Aws::String>
81 HsmConfiguration& WithHsmIpAddress(HsmIpAddressT&& value) { SetHsmIpAddress(std::forward<HsmIpAddressT>(value)); return *this;}
83
85
89 inline const Aws::String& GetHsmPartitionName() const { return m_hsmPartitionName; }
90 inline bool HsmPartitionNameHasBeenSet() const { return m_hsmPartitionNameHasBeenSet; }
91 template<typename HsmPartitionNameT = Aws::String>
92 void SetHsmPartitionName(HsmPartitionNameT&& value) { m_hsmPartitionNameHasBeenSet = true; m_hsmPartitionName = std::forward<HsmPartitionNameT>(value); }
93 template<typename HsmPartitionNameT = Aws::String>
94 HsmConfiguration& WithHsmPartitionName(HsmPartitionNameT&& value) { SetHsmPartitionName(std::forward<HsmPartitionNameT>(value)); return *this;}
96
98
101 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template<typename TagsT = Aws::Vector<Tag>>
104 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
105 template<typename TagsT = Aws::Vector<Tag>>
106 HsmConfiguration& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
107 template<typename TagsT = Tag>
108 HsmConfiguration& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
110 private:
111
112 Aws::String m_hsmConfigurationIdentifier;
113 bool m_hsmConfigurationIdentifierHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 Aws::String m_hsmIpAddress;
119 bool m_hsmIpAddressHasBeenSet = false;
120
121 Aws::String m_hsmPartitionName;
122 bool m_hsmPartitionNameHasBeenSet = false;
123
124 Aws::Vector<Tag> m_tags;
125 bool m_tagsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Redshift
130} // 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