AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetGroupPolicyResult.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 GetGroupPolicyResult() = default;
36
38
41 inline const Aws::String& GetGroupName() const { return m_groupName; }
42 template <typename GroupNameT = Aws::String>
43 void SetGroupName(GroupNameT&& value) {
44 m_groupNameHasBeenSet = true;
45 m_groupName = std::forward<GroupNameT>(value);
46 }
47 template <typename GroupNameT = Aws::String>
48 GetGroupPolicyResult& WithGroupName(GroupNameT&& value) {
49 SetGroupName(std::forward<GroupNameT>(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 GetGroupPolicyResult& 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 GetGroupPolicyResult& 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 GetGroupPolicyResult& WithResponseMetadata(ResponseMetadataT&& value) {
101 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_groupName;
107
108 Aws::String m_policyName;
109
110 Aws::String m_policyDocument;
111
112 ResponseMetadata m_responseMetadata;
113 bool m_groupNameHasBeenSet = 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
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)
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