AWS SDK for C++  1.9.108
AWS SDK for C++
DeleteTagsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace MachineLearning
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 "DeleteTags"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
43 
47  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
48 
52  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
53 
57  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
58 
62  inline DeleteTagsRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
63 
67  inline DeleteTagsRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
68 
72  inline DeleteTagsRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
73 
77  inline DeleteTagsRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
78 
82  inline DeleteTagsRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
83 
84 
88  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
89 
93  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
94 
98  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
99 
103  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
104 
108  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
109 
113  inline DeleteTagsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
114 
118  inline DeleteTagsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
119 
123  inline DeleteTagsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
124 
125 
129  inline const TaggableResourceType& GetResourceType() const{ return m_resourceType; }
130 
134  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
135 
139  inline void SetResourceType(const TaggableResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
140 
144  inline void SetResourceType(TaggableResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
145 
149  inline DeleteTagsRequest& WithResourceType(const TaggableResourceType& value) { SetResourceType(value); return *this;}
150 
154  inline DeleteTagsRequest& WithResourceType(TaggableResourceType&& value) { SetResourceType(std::move(value)); return *this;}
155 
156  private:
157 
158  Aws::Vector<Aws::String> m_tagKeys;
159  bool m_tagKeysHasBeenSet;
160 
161  Aws::String m_resourceId;
162  bool m_resourceIdHasBeenSet;
163 
164  TaggableResourceType m_resourceType;
165  bool m_resourceTypeHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace MachineLearning
170 } // namespace Aws
Aws::MachineLearning::Model::DeleteTagsRequest
Definition: DeleteTagsRequest.h:24
Aws::MachineLearning::Model::DeleteTagsRequest::WithTagKeys
DeleteTagsRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: DeleteTagsRequest.h:67
Aws::MachineLearning::Model::DeleteTagsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTagsRequest.h:32
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::MachineLearning::Model::DeleteTagsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
MachineLearning_EXPORTS.h
Aws::MachineLearning::Model::DeleteTagsRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: DeleteTagsRequest.h:134
Aws::MachineLearning::Model::DeleteTagsRequest::SetResourceId
void SetResourceId(Aws::String &&value)
Definition: DeleteTagsRequest.h:103
Aws::MachineLearning::Model::DeleteTagsRequest::SetResourceId
void SetResourceId(const char *value)
Definition: DeleteTagsRequest.h:108
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::MachineLearning::Model::DeleteTagsRequest::GetResourceId
const Aws::String & GetResourceId() const
Definition: DeleteTagsRequest.h:88
AWSVector.h
Aws::MachineLearning::Model::DeleteTagsRequest::AddTagKeys
DeleteTagsRequest & AddTagKeys(const Aws::String &value)
Definition: DeleteTagsRequest.h:72
Aws::MachineLearning::Model::DeleteTagsRequest::SetResourceType
void SetResourceType(TaggableResourceType &&value)
Definition: DeleteTagsRequest.h:144
Aws::MachineLearning::Model::DeleteTagsRequest::WithResourceType
DeleteTagsRequest & WithResourceType(const TaggableResourceType &value)
Definition: DeleteTagsRequest.h:149
Aws::MachineLearning::Model::DeleteTagsRequest::SetResourceType
void SetResourceType(const TaggableResourceType &value)
Definition: DeleteTagsRequest.h:139
AWS_MACHINELEARNING_API
#define AWS_MACHINELEARNING_API
Definition: MachineLearning_EXPORTS.h:28
Aws::MachineLearning::Model::DeleteTagsRequest::SetResourceId
void SetResourceId(const Aws::String &value)
Definition: DeleteTagsRequest.h:98
Aws::MachineLearning::Model::DeleteTagsRequest::DeleteTagsRequest
DeleteTagsRequest()
Aws::MachineLearning::Model::DeleteTagsRequest::WithResourceId
DeleteTagsRequest & WithResourceId(const Aws::String &value)
Definition: DeleteTagsRequest.h:113
Aws::MachineLearning::Model::DeleteTagsRequest::ResourceIdHasBeenSet
bool ResourceIdHasBeenSet() const
Definition: DeleteTagsRequest.h:93
Aws::MachineLearning::Model::DeleteTagsRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::MachineLearning::Model::DeleteTagsRequest::WithResourceType
DeleteTagsRequest & WithResourceType(TaggableResourceType &&value)
Definition: DeleteTagsRequest.h:154
Aws::MachineLearning::Model::DeleteTagsRequest::WithResourceId
DeleteTagsRequest & WithResourceId(Aws::String &&value)
Definition: DeleteTagsRequest.h:118
Aws::MachineLearning::Model::DeleteTagsRequest::AddTagKeys
DeleteTagsRequest & AddTagKeys(Aws::String &&value)
Definition: DeleteTagsRequest.h:77
Aws::MachineLearning::Model::DeleteTagsRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: DeleteTagsRequest.h:57
Aws::MachineLearning::Model::TaggableResourceType
TaggableResourceType
Definition: TaggableResourceType.h:17
Aws::MachineLearning::Model::DeleteTagsRequest::GetResourceType
const TaggableResourceType & GetResourceType() const
Definition: DeleteTagsRequest.h:129
Aws::MachineLearning::Model::DeleteTagsRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: DeleteTagsRequest.h:42
MachineLearningRequest.h
Aws::MachineLearning::Model::DeleteTagsRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: DeleteTagsRequest.h:47
Aws::MachineLearning::MachineLearningRequest
Definition: MachineLearningRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MachineLearning::Model::DeleteTagsRequest::AddTagKeys
DeleteTagsRequest & AddTagKeys(const char *value)
Definition: DeleteTagsRequest.h:82
Aws::MachineLearning::Model::DeleteTagsRequest::WithTagKeys
DeleteTagsRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: DeleteTagsRequest.h:62
Aws::MachineLearning::Model::DeleteTagsRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: DeleteTagsRequest.h:52
TaggableResourceType.h
Aws::MachineLearning::Model::DeleteTagsRequest::WithResourceId
DeleteTagsRequest & WithResourceId(const char *value)
Definition: DeleteTagsRequest.h:123