AWS SDK for C++  1.9.156
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 DataSync
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UntagResource"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
45 
49  inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
50 
54  inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
55 
59  inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
60 
64  inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
65 
69  inline UntagResourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
70 
74  inline UntagResourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
75 
79  inline UntagResourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
80 
81 
85  inline const Aws::Vector<Aws::String>& GetKeys() const{ return m_keys; }
86 
90  inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
91 
95  inline void SetKeys(const Aws::Vector<Aws::String>& value) { m_keysHasBeenSet = true; m_keys = value; }
96 
100  inline void SetKeys(Aws::Vector<Aws::String>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
101 
105  inline UntagResourceRequest& WithKeys(const Aws::Vector<Aws::String>& value) { SetKeys(value); return *this;}
106 
110  inline UntagResourceRequest& WithKeys(Aws::Vector<Aws::String>&& value) { SetKeys(std::move(value)); return *this;}
111 
115  inline UntagResourceRequest& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
116 
120  inline UntagResourceRequest& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; }
121 
125  inline UntagResourceRequest& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
126 
127  private:
128 
129  Aws::String m_resourceArn;
130  bool m_resourceArnHasBeenSet;
131 
133  bool m_keysHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace DataSync
138 } // namespace Aws
Aws::DataSync::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(const char *value)
Definition: UntagResourceRequest.h:64
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(const char *value)
Definition: UntagResourceRequest.h:79
Aws::DataSync::Model::UntagResourceRequest::AddKeys
UntagResourceRequest & AddKeys(const Aws::String &value)
Definition: UntagResourceRequest.h:115
Aws::DataSync::Model::UntagResourceRequest::SerializePayload
Aws::String SerializePayload() const override
DataSyncRequest.h
Aws::DataSync::Model::UntagResourceRequest::GetResourceArn
const Aws::String & GetResourceArn() const
Definition: UntagResourceRequest.h:44
Aws::DataSync::Model::UntagResourceRequest::KeysHasBeenSet
bool KeysHasBeenSet() const
Definition: UntagResourceRequest.h:90
Aws::DataSync::Model::UntagResourceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UntagResourceRequest.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DataSync::Model::UntagResourceRequest::WithKeys
UntagResourceRequest & WithKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:105
AWSVector.h
Aws::DataSync::Model::UntagResourceRequest::WithKeys
UntagResourceRequest & WithKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:110
Aws::DataSync::Model::UntagResourceRequest::AddKeys
UntagResourceRequest & AddKeys(Aws::String &&value)
Definition: UntagResourceRequest.h:120
Aws::DataSync::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(Aws::String &&value)
Definition: UntagResourceRequest.h:74
Aws::DataSync::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(const Aws::String &value)
Definition: UntagResourceRequest.h:54
Aws::DataSync::Model::UntagResourceRequest::GetKeys
const Aws::Vector< Aws::String > & GetKeys() const
Definition: UntagResourceRequest.h:85
Aws::DataSync::Model::UntagResourceRequest::AddKeys
UntagResourceRequest & AddKeys(const char *value)
Definition: UntagResourceRequest.h:125
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::UntagResourceRequest
Definition: UntagResourceRequest.h:26
Aws::DataSync::Model::UntagResourceRequest::SetKeys
void SetKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagResourceRequest.h:95
Aws::DataSync::Model::UntagResourceRequest::ResourceArnHasBeenSet
bool ResourceArnHasBeenSet() const
Definition: UntagResourceRequest.h:49
Aws::DataSync::Model::UntagResourceRequest::SetKeys
void SetKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagResourceRequest.h:100
Aws::DataSync::Model::UntagResourceRequest::UntagResourceRequest
UntagResourceRequest()
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.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::DataSync::Model::UntagResourceRequest::WithResourceArn
UntagResourceRequest & WithResourceArn(const Aws::String &value)
Definition: UntagResourceRequest.h:69
Aws::DataSync::Model::UntagResourceRequest::SetResourceArn
void SetResourceArn(Aws::String &&value)
Definition: UntagResourceRequest.h:59
Aws::DataSync::Model::UntagResourceRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override