AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetGroupPolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iam/IAM_EXPORTS.h>
10#include <aws/iam/model/ResponseMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace IAM {
24namespace Model {
33 public:
34 AWS_IAM_API GetGroupPolicyResult() = default;
37
39
42 inline const Aws::String& GetGroupName() const { return m_groupName; }
43 template <typename GroupNameT = Aws::String>
44 void SetGroupName(GroupNameT&& value) {
45 m_groupNameHasBeenSet = true;
46 m_groupName = std::forward<GroupNameT>(value);
47 }
48 template <typename GroupNameT = Aws::String>
49 GetGroupPolicyResult& WithGroupName(GroupNameT&& value) {
50 SetGroupName(std::forward<GroupNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPolicyName() const { return m_policyName; }
60 template <typename PolicyNameT = Aws::String>
61 void SetPolicyName(PolicyNameT&& value) {
62 m_policyNameHasBeenSet = true;
63 m_policyName = std::forward<PolicyNameT>(value);
64 }
65 template <typename PolicyNameT = Aws::String>
66 GetGroupPolicyResult& WithPolicyName(PolicyNameT&& value) {
67 SetPolicyName(std::forward<PolicyNameT>(value));
68 return *this;
69 }
71
73
79 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
80 template <typename PolicyDocumentT = Aws::String>
81 void SetPolicyDocument(PolicyDocumentT&& value) {
82 m_policyDocumentHasBeenSet = true;
83 m_policyDocument = std::forward<PolicyDocumentT>(value);
84 }
85 template <typename PolicyDocumentT = Aws::String>
86 GetGroupPolicyResult& WithPolicyDocument(PolicyDocumentT&& value) {
87 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
88 return *this;
89 }
91
93
94 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
95 template <typename ResponseMetadataT = ResponseMetadata>
96 void SetResponseMetadata(ResponseMetadataT&& value) {
97 m_responseMetadataHasBeenSet = true;
98 m_responseMetadata = std::forward<ResponseMetadataT>(value);
99 }
100 template <typename ResponseMetadataT = ResponseMetadata>
101 GetGroupPolicyResult& WithResponseMetadata(ResponseMetadataT&& value) {
102 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
103 return *this;
104 }
106 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
107
108 private:
109 Aws::String m_groupName;
110
111 Aws::String m_policyName;
112
113 Aws::String m_policyDocument;
114
115 ResponseMetadata m_responseMetadata;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_groupNameHasBeenSet = false;
118 bool m_policyNameHasBeenSet = false;
119 bool m_policyDocumentHasBeenSet = false;
120 bool m_responseMetadataHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace IAM
125} // namespace Aws
GetGroupPolicyResult & WithPolicyName(PolicyNameT &&value)
GetGroupPolicyResult & WithPolicyDocument(PolicyDocumentT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
const Aws::String & GetPolicyDocument() const
const Aws::String & GetPolicyName() const
AWS_IAM_API GetGroupPolicyResult()=default
GetGroupPolicyResult & WithResponseMetadata(ResponseMetadataT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetGroupName() const
AWS_IAM_API GetGroupPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetGroupPolicyResult & WithGroupName(GroupNameT &&value)
AWS_IAM_API GetGroupPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetPolicyDocument(PolicyDocumentT &&value)
const ResponseMetadata & GetResponseMetadata() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument