AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteUserPolicyRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IAM
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DeleteUserPolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
46  inline const Aws::String& GetUserName() const{ return m_userName; }
47 
55  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
56 
64  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
65 
73  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
74 
82  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
83 
91  inline DeleteUserPolicyRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
92 
100  inline DeleteUserPolicyRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
101 
109  inline DeleteUserPolicyRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
110 
111 
119  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
120 
128  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
129 
137  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
138 
146  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
147 
155  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
156 
164  inline DeleteUserPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
165 
173  inline DeleteUserPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
174 
182  inline DeleteUserPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
183 
184  private:
185 
186  Aws::String m_userName;
187  bool m_userNameHasBeenSet;
188 
189  Aws::String m_policyName;
190  bool m_policyNameHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace IAM
195 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::DeleteUserPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteUserPolicyRequest.h:30
Aws::IAM::Model::DeleteUserPolicyRequest::SetUserName
void SetUserName(const char *value)
Definition: DeleteUserPolicyRequest.h:82
Aws::IAM::Model::DeleteUserPolicyRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: DeleteUserPolicyRequest.h:73
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::DeleteUserPolicyRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: DeleteUserPolicyRequest.h:155
Aws::IAM::Model::DeleteUserPolicyRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: DeleteUserPolicyRequest.h:128
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::DeleteUserPolicyRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: DeleteUserPolicyRequest.h:55
Aws::IAM::Model::DeleteUserPolicyRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: DeleteUserPolicyRequest.h:119
AWSString.h
Aws::IAM::Model::DeleteUserPolicyRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: DeleteUserPolicyRequest.h:137
Aws::IAM::Model::DeleteUserPolicyRequest::GetUserName
const Aws::String & GetUserName() const
Definition: DeleteUserPolicyRequest.h:46
Aws::IAM::Model::DeleteUserPolicyRequest::WithUserName
DeleteUserPolicyRequest & WithUserName(const Aws::String &value)
Definition: DeleteUserPolicyRequest.h:91
Aws::IAM::Model::DeleteUserPolicyRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: DeleteUserPolicyRequest.h:146
IAM_EXPORTS.h
Aws::IAM::Model::DeleteUserPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::IAM::Model::DeleteUserPolicyRequest::WithUserName
DeleteUserPolicyRequest & WithUserName(Aws::String &&value)
Definition: DeleteUserPolicyRequest.h:100
Aws::IAM::Model::DeleteUserPolicyRequest::WithPolicyName
DeleteUserPolicyRequest & WithPolicyName(const Aws::String &value)
Definition: DeleteUserPolicyRequest.h:164
Aws::IAM::Model::DeleteUserPolicyRequest::WithUserName
DeleteUserPolicyRequest & WithUserName(const char *value)
Definition: DeleteUserPolicyRequest.h:109
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::DeleteUserPolicyRequest::WithPolicyName
DeleteUserPolicyRequest & WithPolicyName(Aws::String &&value)
Definition: DeleteUserPolicyRequest.h:173
Aws::IAM::Model::DeleteUserPolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::Model::DeleteUserPolicyRequest::WithPolicyName
DeleteUserPolicyRequest & WithPolicyName(const char *value)
Definition: DeleteUserPolicyRequest.h:182
Aws::IAM::Model::DeleteUserPolicyRequest::DeleteUserPolicyRequest
DeleteUserPolicyRequest()
Aws::IAM::Model::DeleteUserPolicyRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: DeleteUserPolicyRequest.h:64
Aws::IAM::Model::DeleteUserPolicyRequest
Definition: DeleteUserPolicyRequest.h:22