AWS SDK for C++  1.9.158
AWS SDK for C++
UntagPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/IAMRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IAM
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 "UntagPolicy"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
47  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
48 
56  inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
57 
65  inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
66 
74  inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
75 
83  inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
84 
92  inline UntagPolicyRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
93 
101  inline UntagPolicyRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
102 
110  inline UntagPolicyRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
111 
112 
117  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
118 
123  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
124 
129  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
130 
135  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
136 
141  inline UntagPolicyRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
142 
147  inline UntagPolicyRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
148 
153  inline UntagPolicyRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
154 
159  inline UntagPolicyRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
160 
165  inline UntagPolicyRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
166 
167  private:
168 
169  Aws::String m_policyArn;
170  bool m_policyArnHasBeenSet;
171 
172  Aws::Vector<Aws::String> m_tagKeys;
173  bool m_tagKeysHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace IAM
178 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::UntagPolicyRequest::UntagPolicyRequest
UntagPolicyRequest()
Aws::IAM::Model::UntagPolicyRequest::GetTagKeys
const Aws::Vector< Aws::String > & GetTagKeys() const
Definition: UntagPolicyRequest.h:117
Aws::IAM::Model::UntagPolicyRequest::WithPolicyArn
UntagPolicyRequest & WithPolicyArn(const char *value)
Definition: UntagPolicyRequest.h:110
Aws::IAM::Model::UntagPolicyRequest::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: UntagPolicyRequest.h:47
Aws::IAM::Model::UntagPolicyRequest::WithTagKeys
UntagPolicyRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagPolicyRequest.h:147
Aws::IAM::Model::UntagPolicyRequest::PolicyArnHasBeenSet
bool PolicyArnHasBeenSet() const
Definition: UntagPolicyRequest.h:56
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IAM::Model::UntagPolicyRequest::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: UntagPolicyRequest.h:83
AWSVector.h
Aws::IAM::Model::UntagPolicyRequest::WithPolicyArn
UntagPolicyRequest & WithPolicyArn(Aws::String &&value)
Definition: UntagPolicyRequest.h:101
Aws::IAM::Model::UntagPolicyRequest::AddTagKeys
UntagPolicyRequest & AddTagKeys(const Aws::String &value)
Definition: UntagPolicyRequest.h:153
Aws::IAM::Model::UntagPolicyRequest
Definition: UntagPolicyRequest.h:23
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::UntagPolicyRequest::WithTagKeys
UntagPolicyRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagPolicyRequest.h:141
AWSString.h
Aws::IAM::Model::UntagPolicyRequest::SetTagKeys
void SetTagKeys(const Aws::Vector< Aws::String > &value)
Definition: UntagPolicyRequest.h:129
Aws::IAM::Model::UntagPolicyRequest::WithPolicyArn
UntagPolicyRequest & WithPolicyArn(const Aws::String &value)
Definition: UntagPolicyRequest.h:92
Aws::IAM::Model::UntagPolicyRequest::SetTagKeys
void SetTagKeys(Aws::Vector< Aws::String > &&value)
Definition: UntagPolicyRequest.h:135
Aws::IAM::Model::UntagPolicyRequest::TagKeysHasBeenSet
bool TagKeysHasBeenSet() const
Definition: UntagPolicyRequest.h:123
Aws::IAM::Model::UntagPolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::UntagPolicyRequest::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: UntagPolicyRequest.h:65
IAM_EXPORTS.h
Aws::IAM::Model::UntagPolicyRequest::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: UntagPolicyRequest.h:74
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::UntagPolicyRequest::AddTagKeys
UntagPolicyRequest & AddTagKeys(const char *value)
Definition: UntagPolicyRequest.h:165
Aws::IAM::Model::UntagPolicyRequest::AddTagKeys
UntagPolicyRequest & AddTagKeys(Aws::String &&value)
Definition: UntagPolicyRequest.h:159
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::UntagPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UntagPolicyRequest.h:31
Aws::IAM::Model::UntagPolicyRequest::SerializePayload
Aws::String SerializePayload() const override