AWS SDK for C++  1.9.154
AWS SDK for C++
AddTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
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 "AddTags"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
43 
47  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
48 
52  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
53 
57  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
58 
62  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
63 
67  inline AddTagsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
68 
72  inline AddTagsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
73 
77  inline AddTagsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
78 
79 
87  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
88 
96  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 
105  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
106 
114  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
115 
123  inline AddTagsRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
124 
132  inline AddTagsRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
133 
141  inline AddTagsRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
142 
150  inline AddTagsRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
151 
152  private:
153 
154  Aws::String m_resourceArn;
155  bool m_resourceArnHasBeenSet;
156 
157  Aws::Vector<Tag> m_tags;
158  bool m_tagsHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace SageMaker
163 } // namespace Aws
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::AddTagsRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:105
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::AddTagsRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: AddTagsRequest.h:57
Aws::SageMaker::Model::AddTagsRequest::WithResourceArn
AddTagsRequest & WithResourceArn(const char *value)
Definition: AddTagsRequest.h:77
Aws::SageMaker::Model::AddTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::AddTagsRequest
Definition: AddTagsRequest.h:24
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::SageMaker::Model::AddTagsRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:114
Aws::SageMaker::Model::AddTagsRequest::WithResourceArn
AddTagsRequest & WithResourceArn(const Aws::String &value)
Definition: AddTagsRequest.h:67
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(Tag &&value)
Definition: AddTagsRequest.h:150
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::AddTagsRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: AddTagsRequest.h:62
Aws::SageMaker::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: AddTagsRequest.h:132
Aws::SageMaker::Model::AddTagsRequest::WithTags
AddTagsRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: AddTagsRequest.h:123
Aws::SageMaker::Model::AddTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddTagsRequest.h:32
AWSString.h
Tag.h
Aws::SageMaker::Model::AddTagsRequest::WithResourceArn
AddTagsRequest & WithResourceArn(Aws::String &&value)
Definition: AddTagsRequest.h:72
Aws::SageMaker::Model::AddTagsRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: AddTagsRequest.h:42
Aws::SageMaker::Model::AddTagsRequest::AddTagsRequest
AddTagsRequest()
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::AddTagsRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: AddTagsRequest.h:87
Aws::SageMaker::Model::AddTagsRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: AddTagsRequest.h:52
Aws::SageMaker::Model::AddTagsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::AddTagsRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: AddTagsRequest.h:47
Aws::SageMaker::Model::AddTagsRequest::AddTags
AddTagsRequest & AddTags(const Tag &value)
Definition: AddTagsRequest.h:141
Aws::SageMaker::Model::AddTagsRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: AddTagsRequest.h:96