AWS SDK for C++  0.14.3
AWS SDK for C++
HsmClientCertificate.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  HsmClientCertificate& 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& GetHsmClientCertificateIdentifier() const{ return m_hsmClientCertificateIdentifier; }
55 
59  inline void SetHsmClientCertificateIdentifier(const Aws::String& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = value; }
60 
64  inline void SetHsmClientCertificateIdentifier(Aws::String&& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = value; }
65 
69  inline void SetHsmClientCertificateIdentifier(const char* value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier.assign(value); }
70 
74  inline HsmClientCertificate& WithHsmClientCertificateIdentifier(const Aws::String& value) { SetHsmClientCertificateIdentifier(value); return *this;}
75 
79  inline HsmClientCertificate& WithHsmClientCertificateIdentifier(Aws::String&& value) { SetHsmClientCertificateIdentifier(value); return *this;}
80 
84  inline HsmClientCertificate& WithHsmClientCertificateIdentifier(const char* value) { SetHsmClientCertificateIdentifier(value); return *this;}
85 
90  inline const Aws::String& GetHsmClientCertificatePublicKey() const{ return m_hsmClientCertificatePublicKey; }
91 
96  inline void SetHsmClientCertificatePublicKey(const Aws::String& value) { m_hsmClientCertificatePublicKeyHasBeenSet = true; m_hsmClientCertificatePublicKey = value; }
97 
102  inline void SetHsmClientCertificatePublicKey(Aws::String&& value) { m_hsmClientCertificatePublicKeyHasBeenSet = true; m_hsmClientCertificatePublicKey = value; }
103 
108  inline void SetHsmClientCertificatePublicKey(const char* value) { m_hsmClientCertificatePublicKeyHasBeenSet = true; m_hsmClientCertificatePublicKey.assign(value); }
109 
114  inline HsmClientCertificate& WithHsmClientCertificatePublicKey(const Aws::String& value) { SetHsmClientCertificatePublicKey(value); return *this;}
115 
120  inline HsmClientCertificate& WithHsmClientCertificatePublicKey(Aws::String&& value) { SetHsmClientCertificatePublicKey(value); return *this;}
121 
126  inline HsmClientCertificate& WithHsmClientCertificatePublicKey(const char* value) { SetHsmClientCertificatePublicKey(value); return *this;}
127 
131  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
132 
136  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
137 
141  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
142 
146  inline HsmClientCertificate& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
147 
151  inline HsmClientCertificate& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
152 
156  inline HsmClientCertificate& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
157 
161  inline HsmClientCertificate& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
162 
163  private:
164  Aws::String m_hsmClientCertificateIdentifier;
165  bool m_hsmClientCertificateIdentifierHasBeenSet;
166  Aws::String m_hsmClientCertificatePublicKey;
167  bool m_hsmClientCertificatePublicKeyHasBeenSet;
168  Aws::Vector<Tag> m_tags;
169  bool m_tagsHasBeenSet;
170  };
171 
172 } // namespace Model
173 } // namespace Redshift
174 } // namespace Aws
HsmClientCertificate & AddTags(Tag &&value)
void SetTags(const Aws::Vector< Tag > &value)
HsmClientCertificate & WithHsmClientCertificatePublicKey(const char *value)
void SetHsmClientCertificateIdentifier(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
HsmClientCertificate & WithHsmClientCertificateIdentifier(const Aws::String &value)
HsmClientCertificate & WithTags(const Aws::Vector< Tag > &value)
const Aws::String & GetHsmClientCertificatePublicKey() const
const Aws::String & GetHsmClientCertificateIdentifier() const
void SetTags(Aws::Vector< Tag > &&value)
HsmClientCertificate & WithTags(Aws::Vector< Tag > &&value)
void SetHsmClientCertificateIdentifier(Aws::String &&value)
#define AWS_REDSHIFT_API
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetHsmClientCertificatePublicKey(Aws::String &&value)
HsmClientCertificate & WithHsmClientCertificateIdentifier(Aws::String &&value)
HsmClientCertificate & WithHsmClientCertificatePublicKey(Aws::String &&value)
void SetHsmClientCertificatePublicKey(const char *value)
void SetHsmClientCertificatePublicKey(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
HsmClientCertificate & AddTags(const Tag &value)
const Aws::Vector< Tag > & GetTags() const
HsmClientCertificate & WithHsmClientCertificatePublicKey(const Aws::String &value)
HsmClientCertificate & WithHsmClientCertificateIdentifier(const char *value)
JSON (JavaScript Object Notation).
void SetHsmClientCertificateIdentifier(const char *value)