AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetRolePolicyResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAM_EXPORTS.h>
9#include <aws/iam/model/ResponseMetadata.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Xml {
19class XmlDocument;
20} // namespace Xml
21} // namespace Utils
22namespace IAM {
23namespace Model {
32 public:
33 AWS_IAM_API GetRolePolicyResult() = default;
36
38
41 inline const Aws::String& GetRoleName() const { return m_roleName; }
42 template <typename RoleNameT = Aws::String>
43 void SetRoleName(RoleNameT&& value) {
44 m_roleNameHasBeenSet = true;
45 m_roleName = std::forward<RoleNameT>(value);
46 }
47 template <typename RoleNameT = Aws::String>
48 GetRolePolicyResult& WithRoleName(RoleNameT&& value) {
49 SetRoleName(std::forward<RoleNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPolicyName() const { return m_policyName; }
59 template <typename PolicyNameT = Aws::String>
60 void SetPolicyName(PolicyNameT&& value) {
61 m_policyNameHasBeenSet = true;
62 m_policyName = std::forward<PolicyNameT>(value);
63 }
64 template <typename PolicyNameT = Aws::String>
65 GetRolePolicyResult& WithPolicyName(PolicyNameT&& value) {
66 SetPolicyName(std::forward<PolicyNameT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
79 template <typename PolicyDocumentT = Aws::String>
80 void SetPolicyDocument(PolicyDocumentT&& value) {
81 m_policyDocumentHasBeenSet = true;
82 m_policyDocument = std::forward<PolicyDocumentT>(value);
83 }
84 template <typename PolicyDocumentT = Aws::String>
85 GetRolePolicyResult& WithPolicyDocument(PolicyDocumentT&& value) {
86 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
87 return *this;
88 }
90
92
93 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
94 template <typename ResponseMetadataT = ResponseMetadata>
95 void SetResponseMetadata(ResponseMetadataT&& value) {
96 m_responseMetadataHasBeenSet = true;
97 m_responseMetadata = std::forward<ResponseMetadataT>(value);
98 }
99 template <typename ResponseMetadataT = ResponseMetadata>
100 GetRolePolicyResult& WithResponseMetadata(ResponseMetadataT&& value) {
101 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_roleName;
107
108 Aws::String m_policyName;
109
110 Aws::String m_policyDocument;
111
112 ResponseMetadata m_responseMetadata;
113 bool m_roleNameHasBeenSet = false;
114 bool m_policyNameHasBeenSet = false;
115 bool m_policyDocumentHasBeenSet = false;
116 bool m_responseMetadataHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace IAM
121} // namespace Aws
GetRolePolicyResult & WithRoleName(RoleNameT &&value)
GetRolePolicyResult & WithPolicyDocument(PolicyDocumentT &&value)
const Aws::String & GetRoleName() const
void SetResponseMetadata(ResponseMetadataT &&value)
AWS_IAM_API GetRolePolicyResult()=default
GetRolePolicyResult & WithPolicyName(PolicyNameT &&value)
AWS_IAM_API GetRolePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const ResponseMetadata & GetResponseMetadata() const
void SetPolicyName(PolicyNameT &&value)
void SetPolicyDocument(PolicyDocumentT &&value)
const Aws::String & GetPolicyDocument() const
GetRolePolicyResult & WithResponseMetadata(ResponseMetadataT &&value)
const Aws::String & GetPolicyName() const
AWS_IAM_API GetRolePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument