AWS SDK for C++  0.14.3
AWS SDK for C++
GetRolePolicyResult.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>
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlDocument;
30 } // namespace Xml
31 } // namespace Utils
32 namespace IAM
33 {
34 namespace Model
35 {
40  {
41  public:
45 
49  inline const Aws::String& GetRoleName() const{ return m_roleName; }
50 
54  inline void SetRoleName(const Aws::String& value) { m_roleName = value; }
55 
59  inline void SetRoleName(Aws::String&& value) { m_roleName = value; }
60 
64  inline void SetRoleName(const char* value) { m_roleName.assign(value); }
65 
69  inline GetRolePolicyResult& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
70 
74  inline GetRolePolicyResult& WithRoleName(Aws::String&& value) { SetRoleName(value); return *this;}
75 
79  inline GetRolePolicyResult& WithRoleName(const char* value) { SetRoleName(value); return *this;}
80 
84  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
85 
89  inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
90 
94  inline void SetPolicyName(Aws::String&& value) { m_policyName = value; }
95 
99  inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
100 
104  inline GetRolePolicyResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
105 
109  inline GetRolePolicyResult& WithPolicyName(Aws::String&& value) { SetPolicyName(value); return *this;}
110 
114  inline GetRolePolicyResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
115 
119  inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
120 
124  inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
125 
129  inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = value; }
130 
134  inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
135 
139  inline GetRolePolicyResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
140 
144  inline GetRolePolicyResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(value); return *this;}
145 
149  inline GetRolePolicyResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
150 
151 
152  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
153 
154 
155  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
156 
157 
158  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
159 
160 
161  inline GetRolePolicyResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
162 
163 
164  inline GetRolePolicyResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
165 
166  private:
167  Aws::String m_roleName;
168  Aws::String m_policyName;
169  Aws::String m_policyDocument;
170  ResponseMetadata m_responseMetadata;
171  };
172 
173 } // namespace Model
174 } // namespace IAM
175 } // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
void SetResponseMetadata(ResponseMetadata &&value)
GetRolePolicyResult & WithPolicyDocument(const char *value)
GetRolePolicyResult & WithPolicyName(const Aws::String &value)
GetRolePolicyResult & WithPolicyDocument(Aws::String &&value)
GetRolePolicyResult & WithPolicyName(Aws::String &&value)
const Aws::String & GetRoleName() const
GetRolePolicyResult & WithPolicyName(const char *value)
void SetResponseMetadata(const ResponseMetadata &value)
GetRolePolicyResult & WithResponseMetadata(ResponseMetadata &&value)
void SetPolicyDocument(Aws::String &&value)
void SetPolicyDocument(const Aws::String &value)
GetRolePolicyResult & WithResponseMetadata(const ResponseMetadata &value)
void SetRoleName(const Aws::String &value)
const Aws::String & GetPolicyDocument() const
GetRolePolicyResult & WithRoleName(const Aws::String &value)
GetRolePolicyResult & WithPolicyDocument(const Aws::String &value)
void SetPolicyName(const Aws::String &value)
GetRolePolicyResult & WithRoleName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRoleName(Aws::String &&value)
GetRolePolicyResult & WithRoleName(Aws::String &&value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
const Aws::String & GetPolicyName() const
JSON (JavaScript Object Notation).
void SetPolicyName(Aws::String &&value)