AWS SDK for C++  1.9.66
AWS SDK for C++
UntagRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ResourceGroups
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 "Untag"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetArn() const{ return m_arn; }
41 
46  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 
52  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 
58  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
59 
64  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
65 
70  inline UntagRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 
76  inline UntagRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 
82  inline UntagRequest& WithArn(const char* value) { SetArn(value); return *this;}
83 
84 
88  inline const Aws::Vector<Aws::String>& GetKeys() const{ return m_keys; }
89 
93  inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
94 
98  inline void SetKeys(const Aws::Vector<Aws::String>& value) { m_keysHasBeenSet = true; m_keys = value; }
99 
103  inline void SetKeys(Aws::Vector<Aws::String>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
104 
108  inline UntagRequest& WithKeys(const Aws::Vector<Aws::String>& value) { SetKeys(value); return *this;}
109 
113  inline UntagRequest& WithKeys(Aws::Vector<Aws::String>&& value) { SetKeys(std::move(value)); return *this;}
114 
118  inline UntagRequest& AddKeys(const Aws::String& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
119 
123  inline UntagRequest& AddKeys(Aws::String&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; }
124 
128  inline UntagRequest& AddKeys(const char* value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
129 
130  private:
131 
132  Aws::String m_arn;
133  bool m_arnHasBeenSet;
134 
136  bool m_keysHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace ResourceGroups
141 } // namespace Aws
Aws::ResourceGroups::Model::UntagRequest::SetArn
void SetArn(Aws::String &&value)
Definition: UntagRequest.h:58
Aws::ResourceGroups::Model::UntagRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UntagRequest.h:31
AWS_RESOURCEGROUPS_API
#define AWS_RESOURCEGROUPS_API
Definition: ResourceGroups_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ResourceGroups::Model::UntagRequest
Definition: UntagRequest.h:23
Aws::ResourceGroups::Model::UntagRequest::AddKeys
UntagRequest & AddKeys(const Aws::String &value)
Definition: UntagRequest.h:118
Aws::ResourceGroups::Model::UntagRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::ResourceGroups::Model::UntagRequest::WithArn
UntagRequest & WithArn(const char *value)
Definition: UntagRequest.h:82
Aws::ResourceGroups::Model::UntagRequest::AddKeys
UntagRequest & AddKeys(const char *value)
Definition: UntagRequest.h:128
Aws::ResourceGroups::Model::UntagRequest::AddKeys
UntagRequest & AddKeys(Aws::String &&value)
Definition: UntagRequest.h:123
Aws::ResourceGroups::Model::UntagRequest::GetKeys
const Aws::Vector< Aws::String > & GetKeys() const
Definition: UntagRequest.h:88
Aws::ResourceGroups::Model::UntagRequest::WithArn
UntagRequest & WithArn(Aws::String &&value)
Definition: UntagRequest.h:76
Aws::ResourceGroups::ResourceGroupsRequest
Definition: ResourceGroupsRequest.h:17
Aws::ResourceGroups::Model::UntagRequest::SetKeys
void SetKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagRequest.h:103
Aws::ResourceGroups::Model::UntagRequest::SetArn
void SetArn(const char *value)
Definition: UntagRequest.h:64
Aws::ResourceGroups::Model::UntagRequest::WithArn
UntagRequest & WithArn(const Aws::String &value)
Definition: UntagRequest.h:70
AWSString.h
Aws::ResourceGroups::Model::UntagRequest::WithKeys
UntagRequest & WithKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagRequest.h:108
Aws::ResourceGroups::Model::UntagRequest::WithKeys
UntagRequest & WithKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagRequest.h:113
Aws::ResourceGroups::Model::UntagRequest::UntagRequest
UntagRequest()
Aws::ResourceGroups::Model::UntagRequest::SetArn
void SetArn(const Aws::String &value)
Definition: UntagRequest.h:52
ResourceGroupsRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::ResourceGroups::Model::UntagRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: UntagRequest.h:46
ResourceGroups_EXPORTS.h
Aws::ResourceGroups::Model::UntagRequest::GetArn
const Aws::String & GetArn() const
Definition: UntagRequest.h:40
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ResourceGroups::Model::UntagRequest::SetKeys
void SetKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagRequest.h:98
Aws::ResourceGroups::Model::UntagRequest::KeysHasBeenSet
bool KeysHasBeenSet() const
Definition: UntagRequest.h:93