AWS SDK for C++  1.9.1
AWS SDK for C++
AddTagsToCertificateRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/acm/ACM_EXPORTS.h>
8 #include <aws/acm/ACMRequest.h>
11 #include <aws/acm/model/Tag.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ACM
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "AddTagsToCertificate"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
47  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
48 
57  inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
58 
67  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
68 
77  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
78 
87  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
88 
97  inline AddTagsToCertificateRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
98 
107  inline AddTagsToCertificateRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
108 
117  inline AddTagsToCertificateRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
118 
119 
123  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
124 
128  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 
133  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
134 
138  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 
143  inline AddTagsToCertificateRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
144 
148  inline AddTagsToCertificateRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
149 
153  inline AddTagsToCertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
154 
158  inline AddTagsToCertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
159 
160  private:
161 
162  Aws::String m_certificateArn;
163  bool m_certificateArnHasBeenSet;
164 
165  Aws::Vector<Tag> m_tags;
166  bool m_tagsHasBeenSet;
167  };
168 
169 } // namespace Model
170 } // namespace ACM
171 } // namespace Aws
Aws::ACM::Model::AddTagsToCertificateRequest::SetCertificateArn
void SetCertificateArn(const Aws::String &value)
Definition: AddTagsToCertificateRequest.h:67
Aws::ACM::Model::AddTagsToCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsToCertificateRequest.h:32
Aws::ACM::Model::AddTagsToCertificateRequest::CertificateArnHasBeenSet
bool CertificateArnHasBeenSet() const
Definition: AddTagsToCertificateRequest.h:57
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ACM::Model::AddTagsToCertificateRequest::AddTags
AddTagsToCertificateRequest & AddTags(Tag &&value)
Definition: AddTagsToCertificateRequest.h:158
Aws::ACM::Model::AddTagsToCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ACM::ACMRequest
Definition: ACMRequest.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ACM::Model::AddTagsToCertificateRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AddTagsToCertificateRequest.h:138
Aws::ACM::Model::AddTagsToCertificateRequest::WithCertificateArn
AddTagsToCertificateRequest & WithCertificateArn(Aws::String &&value)
Definition: AddTagsToCertificateRequest.h:107
Aws::ACM::Model::AddTagsToCertificateRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AddTagsToCertificateRequest.h:123
AWSVector.h
Aws::ACM::Model::AddTagsToCertificateRequest::AddTags
AddTagsToCertificateRequest & AddTags(const Tag &value)
Definition: AddTagsToCertificateRequest.h:153
Aws::ACM::Model::AddTagsToCertificateRequest::SetCertificateArn
void SetCertificateArn(const char *value)
Definition: AddTagsToCertificateRequest.h:87
Aws::ACM::Model::Tag
Definition: Tag.h:33
Aws::ACM::Model::AddTagsToCertificateRequest::AddTagsToCertificateRequest
AddTagsToCertificateRequest()
Tag.h
Aws::ACM::Model::AddTagsToCertificateRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ACM::Model::AddTagsToCertificateRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsToCertificateRequest.h:128
AWSString.h
Aws::ACM::Model::AddTagsToCertificateRequest::GetCertificateArn
const Aws::String & GetCertificateArn() const
Definition: AddTagsToCertificateRequest.h:47
Aws::ACM::Model::AddTagsToCertificateRequest::WithCertificateArn
AddTagsToCertificateRequest & WithCertificateArn(const Aws::String &value)
Definition: AddTagsToCertificateRequest.h:97
ACMRequest.h
Aws::ACM::Model::AddTagsToCertificateRequest::WithTags
AddTagsToCertificateRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AddTagsToCertificateRequest.h:143
Aws::ACM::Model::AddTagsToCertificateRequest::SetCertificateArn
void SetCertificateArn(Aws::String &&value)
Definition: AddTagsToCertificateRequest.h:77
ACM_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::ACM::Model::AddTagsToCertificateRequest
Definition: AddTagsToCertificateRequest.h:24
Aws::ACM::Model::AddTagsToCertificateRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AddTagsToCertificateRequest.h:133
AWS_ACM_API
#define AWS_ACM_API
Definition: ACM_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ACM::Model::AddTagsToCertificateRequest::WithCertificateArn
AddTagsToCertificateRequest & WithCertificateArn(const char *value)
Definition: AddTagsToCertificateRequest.h:117
Aws::ACM::Model::AddTagsToCertificateRequest::WithTags
AddTagsToCertificateRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AddTagsToCertificateRequest.h:148