AWS SDK for C++  1.9.4
AWS SDK for C++
UntagResourceRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Backup
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
41 
46  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
47 
52  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
53 
58  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
59 
64  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
65 
70  inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
71 
76  inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
77 
82  inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
83 
84 
89  inline const Aws::Vector<Aws::String>& GetTagKeyList() const{ return m_tagKeyList; }
90 
95  inline bool TagKeyListHasBeenSet() const { return m_tagKeyListHasBeenSet; }
96 
101  inline void SetTagKeyList(const Aws::Vector<Aws::String>& value) { m_tagKeyListHasBeenSet = true; m_tagKeyList = value; }
102 
107  inline void SetTagKeyList(Aws::Vector<Aws::String>&& value) { m_tagKeyListHasBeenSet = true; m_tagKeyList = std::move(value); }
108 
113  inline UntagResourceRequest& WithTagKeyList(const Aws::Vector<Aws::String>& value) { SetTagKeyList(value); return *this;}
114 
119  inline UntagResourceRequest& WithTagKeyList(Aws::Vector<Aws::String>&& value) { SetTagKeyList(std::move(value)); return *this;}
120 
125  inline UntagResourceRequest& AddTagKeyList(const Aws::String& value) { m_tagKeyListHasBeenSet = true; m_tagKeyList.push_back(value); return *this; }
126 
131  inline UntagResourceRequest& AddTagKeyList(Aws::String&& value) { m_tagKeyListHasBeenSet = true; m_tagKeyList.push_back(std::move(value)); return *this; }
132 
137  inline UntagResourceRequest& AddTagKeyList(const char* value) { m_tagKeyListHasBeenSet = true; m_tagKeyList.push_back(value); return *this; }
138 
139  private:
140 
141  Aws::String m_resourceArn;
142  bool m_resourceArnHasBeenSet;
143 
144  Aws::Vector<Aws::String> m_tagKeyList;
145  bool m_tagKeyListHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace Backup
150 } // namespace Aws
Aws::Backup::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: UntagResourceRequest.h:64
Aws::Backup::Model::UntagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Backup::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(const char *value)
Definition: UntagResourceRequest.h:82
Aws::Backup::Model::UntagResourceRequest::WithTagKeyList
UntagResourceRequest & WithTagKeyList(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:113
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(const Aws::String &value)
Definition: UntagResourceRequest.h:70
Aws::Backup::Model::UntagResourceRequest::SetTagKeyList
void SetTagKeyList(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:101
Aws::Backup::Model::UntagResourceRequest
Definition: UntagResourceRequest.h:23
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Backup::Model::UntagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UntagResourceRequest.h:31
AWSVector.h
BackupRequest.h
Aws::Backup::Model::UntagResourceRequest::AddTagKeyList
UntagResourceRequest & AddTagKeyList(Aws::String &&value)
Definition: UntagResourceRequest.h:131
Aws::Backup::Model::UntagResourceRequest::AddTagKeyList
UntagResourceRequest & AddTagKeyList(const Aws::String &value)
Definition: UntagResourceRequest.h:125
Aws::Backup::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: UntagResourceRequest.h:58
Aws::Backup::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: UntagResourceRequest.h:52
Aws::Backup::Model::UntagResourceRequest::UntagResourceRequest
UntagResourceRequest()
Aws::Backup::Model::UntagResourceRequest::WithTagKeyList
UntagResourceRequest & WithTagKeyList(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:119
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(Aws::String &&value)
Definition: UntagResourceRequest.h:76
AWSString.h
Aws::Backup::Model::UntagResourceRequest::SetTagKeyList
void SetTagKeyList(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:107
Aws::Backup::Model::UntagResourceRequest::AddTagKeyList
UntagResourceRequest & AddTagKeyList(const char *value)
Definition: UntagResourceRequest.h:137
Aws::Backup::Model::UntagResourceRequest::TagKeyListHasBeenSet
bool TagKeyListHasBeenSet() const
Definition: UntagResourceRequest.h:95
Backup_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::UntagResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: UntagResourceRequest.h:40
Aws::Backup::Model::UntagResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: UntagResourceRequest.h:46
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::UntagResourceRequest::GetTagKeyList
const Aws::Vector< Aws::String > & GetTagKeyList() const
Definition: UntagResourceRequest.h:89