AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateAssumeRolePolicyRequest.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 "UpdateAssumeRolePolicy"; }
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& GetRoleName() const{ return m_roleName; }
47 
55  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
56 
64  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
65 
73  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
74 
82  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
83 
91  inline UpdateAssumeRolePolicyRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
92 
100  inline UpdateAssumeRolePolicyRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
101 
109  inline UpdateAssumeRolePolicyRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
110 
111 
126  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
127 
142  inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
143 
158  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
159 
174  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
175 
190  inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
191 
206  inline UpdateAssumeRolePolicyRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
207 
222  inline UpdateAssumeRolePolicyRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
223 
238  inline UpdateAssumeRolePolicyRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
239 
240  private:
241 
242  Aws::String m_roleName;
243  bool m_roleNameHasBeenSet;
244 
245  Aws::String m_policyDocument;
246  bool m_policyDocumentHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace IAM
251 } // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateAssumeRolePolicyRequest & WithPolicyDocument(const char *value)
UpdateAssumeRolePolicyRequest & WithRoleName(const Aws::String &value)
UpdateAssumeRolePolicyRequest & WithPolicyDocument(const Aws::String &value)
UpdateAssumeRolePolicyRequest & WithRoleName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateAssumeRolePolicyRequest & WithRoleName(const char *value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
UpdateAssumeRolePolicyRequest & WithPolicyDocument(Aws::String &&value)