AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetPolicyResult.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruProfiler {
23namespace Model {
31 public:
32 AWS_CODEGURUPROFILER_API GetPolicyResult() = default;
35
37
41 inline const Aws::String& GetPolicy() const { return m_policy; }
42 template <typename PolicyT = Aws::String>
43 void SetPolicy(PolicyT&& value) {
44 m_policyHasBeenSet = true;
45 m_policy = std::forward<PolicyT>(value);
46 }
47 template <typename PolicyT = Aws::String>
48 GetPolicyResult& WithPolicy(PolicyT&& value) {
49 SetPolicy(std::forward<PolicyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
59 template <typename RevisionIdT = Aws::String>
60 void SetRevisionId(RevisionIdT&& value) {
61 m_revisionIdHasBeenSet = true;
62 m_revisionId = std::forward<RevisionIdT>(value);
63 }
64 template <typename RevisionIdT = Aws::String>
65 GetPolicyResult& WithRevisionId(RevisionIdT&& value) {
66 SetRevisionId(std::forward<RevisionIdT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
80 GetPolicyResult& WithRequestId(RequestIdT&& value) {
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
86
87 private:
88 Aws::String m_policy;
89
90 Aws::String m_revisionId;
91
92 Aws::String m_requestId;
93 Aws::Http::HttpResponseCode m_HttpResponseCode;
94 bool m_policyHasBeenSet = false;
95 bool m_revisionIdHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CodeGuruProfiler
101} // namespace Aws
GetPolicyResult & WithPolicy(PolicyT &&value)
GetPolicyResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CODEGURUPROFILER_API GetPolicyResult()=default
AWS_CODEGURUPROFILER_API GetPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyResult & WithRevisionId(RevisionIdT &&value)
AWS_CODEGURUPROFILER_API GetPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue