AWS SDK for C++  0.12.9
AWS SDK for C++
CreateRoleRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iam/IAM_EXPORTS.h>
17 #include <aws/iam/IAMRequest.h>
19 
20 namespace Aws
21 {
22 namespace IAM
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
46  inline const Aws::String& GetPath() const{ return m_path; }
47 
59  inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
60 
72  inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = value; }
73 
85  inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
86 
98  inline CreateRoleRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
99 
111  inline CreateRoleRequest& WithPath(Aws::String&& value) { SetPath(value); return *this;}
112 
124  inline CreateRoleRequest& WithPath(const char* value) { SetPath(value); return *this;}
125 
132  inline const Aws::String& GetRoleName() const{ return m_roleName; }
133 
140  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
141 
148  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
149 
156  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
157 
164  inline CreateRoleRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
165 
172  inline CreateRoleRequest& WithRoleName(Aws::String&& value) { SetRoleName(value); return *this;}
173 
180  inline CreateRoleRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
181 
190  inline const Aws::String& GetAssumeRolePolicyDocument() const{ return m_assumeRolePolicyDocument; }
191 
200  inline void SetAssumeRolePolicyDocument(const Aws::String& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = value; }
201 
210  inline void SetAssumeRolePolicyDocument(Aws::String&& value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument = value; }
211 
220  inline void SetAssumeRolePolicyDocument(const char* value) { m_assumeRolePolicyDocumentHasBeenSet = true; m_assumeRolePolicyDocument.assign(value); }
221 
230  inline CreateRoleRequest& WithAssumeRolePolicyDocument(const Aws::String& value) { SetAssumeRolePolicyDocument(value); return *this;}
231 
240  inline CreateRoleRequest& WithAssumeRolePolicyDocument(Aws::String&& value) { SetAssumeRolePolicyDocument(value); return *this;}
241 
250  inline CreateRoleRequest& WithAssumeRolePolicyDocument(const char* value) { SetAssumeRolePolicyDocument(value); return *this;}
251 
252  private:
253  Aws::String m_path;
254  bool m_pathHasBeenSet;
255  Aws::String m_roleName;
256  bool m_roleNameHasBeenSet;
257  Aws::String m_assumeRolePolicyDocument;
258  bool m_assumeRolePolicyDocumentHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace IAM
263 } // namespace Aws
void SetPath(const Aws::String &value)
void SetAssumeRolePolicyDocument(const Aws::String &value)
CreateRoleRequest & WithRoleName(const char *value)
CreateRoleRequest & WithAssumeRolePolicyDocument(const Aws::String &value)
CreateRoleRequest & WithRoleName(Aws::String &&value)
void SetPath(Aws::String &&value)
void SetRoleName(const char *value)
CreateRoleRequest & WithAssumeRolePolicyDocument(Aws::String &&value)
void SetAssumeRolePolicyDocument(const char *value)
CreateRoleRequest & WithPath(const char *value)
const Aws::String & GetPath() const
CreateRoleRequest & WithPath(Aws::String &&value)
CreateRoleRequest & WithRoleName(const Aws::String &value)
void SetRoleName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetAssumeRolePolicyDocument() const
void SetAssumeRolePolicyDocument(Aws::String &&value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
void SetRoleName(const Aws::String &value)
const Aws::String & GetRoleName() const
CreateRoleRequest & WithPath(const Aws::String &value)
JSON (JavaScript Object Notation).
CreateRoleRequest & WithAssumeRolePolicyDocument(const char *value)