AWS SDK for C++  1.9.104
AWS SDK for C++
CreateHsmClientCertificateRequest.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 Redshift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "CreateHsmClientCertificate"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
48  inline const Aws::String& GetHsmClientCertificateIdentifier() const{ return m_hsmClientCertificateIdentifier; }
49 
54  inline bool HsmClientCertificateIdentifierHasBeenSet() const { return m_hsmClientCertificateIdentifierHasBeenSet; }
55 
60  inline void SetHsmClientCertificateIdentifier(const Aws::String& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = value; }
61 
66  inline void SetHsmClientCertificateIdentifier(Aws::String&& value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier = std::move(value); }
67 
72  inline void SetHsmClientCertificateIdentifier(const char* value) { m_hsmClientCertificateIdentifierHasBeenSet = true; m_hsmClientCertificateIdentifier.assign(value); }
73 
78  inline CreateHsmClientCertificateRequest& WithHsmClientCertificateIdentifier(const Aws::String& value) { SetHsmClientCertificateIdentifier(value); return *this;}
79 
84  inline CreateHsmClientCertificateRequest& WithHsmClientCertificateIdentifier(Aws::String&& value) { SetHsmClientCertificateIdentifier(std::move(value)); return *this;}
85 
90  inline CreateHsmClientCertificateRequest& WithHsmClientCertificateIdentifier(const char* value) { SetHsmClientCertificateIdentifier(value); return *this;}
91 
92 
96  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
97 
101  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 
106  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
107 
111  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
112 
116  inline CreateHsmClientCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
117 
121  inline CreateHsmClientCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 
126  inline CreateHsmClientCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
127 
131  inline CreateHsmClientCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
132 
133  private:
134 
135  Aws::String m_hsmClientCertificateIdentifier;
136  bool m_hsmClientCertificateIdentifierHasBeenSet;
137 
138  Aws::Vector<Tag> m_tags;
139  bool m_tagsHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace Redshift
144 } // namespace Aws
Aws::Redshift::Model::CreateHsmClientCertificateRequest::AddTags
CreateHsmClientCertificateRequest & AddTags(const Tag &value)
Definition: CreateHsmClientCertificateRequest.h:126
Aws::Redshift::Model::Tag
Definition: Tag.h:33
Aws::Redshift::Model::CreateHsmClientCertificateRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateHsmClientCertificateRequest.h:101
Aws::Redshift::Model::CreateHsmClientCertificateRequest::WithHsmClientCertificateIdentifier
CreateHsmClientCertificateRequest & WithHsmClientCertificateIdentifier(Aws::String &&value)
Definition: CreateHsmClientCertificateRequest.h:84
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::CreateHsmClientCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateHsmClientCertificateRequest.h:35
Aws::Redshift::Model::CreateHsmClientCertificateRequest::SetHsmClientCertificateIdentifier
void SetHsmClientCertificateIdentifier(Aws::String &&value)
Definition: CreateHsmClientCertificateRequest.h:66
Aws::Redshift::Model::CreateHsmClientCertificateRequest::WithTags
CreateHsmClientCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateHsmClientCertificateRequest.h:116
Aws::Redshift::Model::CreateHsmClientCertificateRequest::WithTags
CreateHsmClientCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateHsmClientCertificateRequest.h:121
Tag.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
AWSVector.h
Aws::Redshift::Model::CreateHsmClientCertificateRequest::SetHsmClientCertificateIdentifier
void SetHsmClientCertificateIdentifier(const Aws::String &value)
Definition: CreateHsmClientCertificateRequest.h:60
Aws::Redshift::Model::CreateHsmClientCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::CreateHsmClientCertificateRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateHsmClientCertificateRequest.h:106
Aws::Redshift::Model::CreateHsmClientCertificateRequest::AddTags
CreateHsmClientCertificateRequest & AddTags(Tag &&value)
Definition: CreateHsmClientCertificateRequest.h:131
Aws::Redshift::Model::CreateHsmClientCertificateRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::CreateHsmClientCertificateRequest
Definition: CreateHsmClientCertificateRequest.h:27
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateHsmClientCertificateRequest::GetHsmClientCertificateIdentifier
const Aws::String & GetHsmClientCertificateIdentifier() const
Definition: CreateHsmClientCertificateRequest.h:48
Aws::Redshift::Model::CreateHsmClientCertificateRequest::HsmClientCertificateIdentifierHasBeenSet
bool HsmClientCertificateIdentifierHasBeenSet() const
Definition: CreateHsmClientCertificateRequest.h:54
Aws::Redshift::Model::CreateHsmClientCertificateRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateHsmClientCertificateRequest.h:111
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::CreateHsmClientCertificateRequest::CreateHsmClientCertificateRequest
CreateHsmClientCertificateRequest()
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::CreateHsmClientCertificateRequest::WithHsmClientCertificateIdentifier
CreateHsmClientCertificateRequest & WithHsmClientCertificateIdentifier(const char *value)
Definition: CreateHsmClientCertificateRequest.h:90
Aws::Redshift::Model::CreateHsmClientCertificateRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateHsmClientCertificateRequest.h:96
Aws::Redshift::Model::CreateHsmClientCertificateRequest::WithHsmClientCertificateIdentifier
CreateHsmClientCertificateRequest & WithHsmClientCertificateIdentifier(const Aws::String &value)
Definition: CreateHsmClientCertificateRequest.h:78
Aws::Redshift::Model::CreateHsmClientCertificateRequest::SetHsmClientCertificateIdentifier
void SetHsmClientCertificateIdentifier(const char *value)
Definition: CreateHsmClientCertificateRequest.h:72