AWS SDK for C++  0.14.3
AWS SDK for C++
CreateHsmClientCertificateRequest.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 Redshift
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
42  inline const Aws::String& GetHsmClientCertificateIdentifier() const{ return m_hsmClientCertificateIdentifier; }
43 
48  inline void SetHsmClientCertificateIdentifier(const Aws::String& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = value; }
49 
54  inline void SetHsmClientCertificateIdentifier(Aws::String&& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = value; }
55 
60  inline void SetHsmClientCertificateIdentifier(const char* value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier.assign(value); }
61 
66  inline CreateHsmClientCertificateRequest& WithHsmClientCertificateIdentifier(const Aws::String& value) { SetHsmClientCertificateIdentifier(value); return *this;}
67 
72  inline CreateHsmClientCertificateRequest& WithHsmClientCertificateIdentifier(Aws::String&& value) { SetHsmClientCertificateIdentifier(value); return *this;}
73 
78  inline CreateHsmClientCertificateRequest& WithHsmClientCertificateIdentifier(const char* value) { SetHsmClientCertificateIdentifier(value); return *this;}
79 
83  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
84 
88  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
89 
93  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 
98  inline CreateHsmClientCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
99 
103  inline CreateHsmClientCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
104 
108  inline CreateHsmClientCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
109 
113  inline CreateHsmClientCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
114 
115  private:
116  Aws::String m_hsmClientCertificateIdentifier;
117  bool m_hsmClientCertificateIdentifierHasBeenSet;
118  Aws::Vector<Tag> m_tags;
119  bool m_tagsHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace Redshift
124 } // namespace Aws
CreateHsmClientCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateHsmClientCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
#define AWS_REDSHIFT_API
CreateHsmClientCertificateRequest & WithHsmClientCertificateIdentifier(const char *value)
CreateHsmClientCertificateRequest & AddTags(const Tag &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateHsmClientCertificateRequest & WithHsmClientCertificateIdentifier(Aws::String &&value)
CreateHsmClientCertificateRequest & WithHsmClientCertificateIdentifier(const Aws::String &value)
JSON (JavaScript Object Notation).