AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
GetPolicyResult.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace CodeGuruProfiler {
22namespace Model {
30 public:
31 AWS_CODEGURUPROFILER_API GetPolicyResult() = default;
34
36
40 inline const Aws::String& GetPolicy() const { return m_policy; }
41 template <typename PolicyT = Aws::String>
42 void SetPolicy(PolicyT&& value) {
43 m_policyHasBeenSet = true;
44 m_policy = std::forward<PolicyT>(value);
45 }
46 template <typename PolicyT = Aws::String>
47 GetPolicyResult& WithPolicy(PolicyT&& value) {
48 SetPolicy(std::forward<PolicyT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
58 template <typename RevisionIdT = Aws::String>
59 void SetRevisionId(RevisionIdT&& value) {
60 m_revisionIdHasBeenSet = true;
61 m_revisionId = std::forward<RevisionIdT>(value);
62 }
63 template <typename RevisionIdT = Aws::String>
64 GetPolicyResult& WithRevisionId(RevisionIdT&& value) {
65 SetRevisionId(std::forward<RevisionIdT>(value));
66 return *this;
67 }
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template <typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) {
75 m_requestIdHasBeenSet = true;
76 m_requestId = std::forward<RequestIdT>(value);
77 }
78 template <typename RequestIdT = Aws::String>
79 GetPolicyResult& WithRequestId(RequestIdT&& value) {
80 SetRequestId(std::forward<RequestIdT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_policy;
86
87 Aws::String m_revisionId;
88
89 Aws::String m_requestId;
90 bool m_policyHasBeenSet = false;
91 bool m_revisionIdHasBeenSet = false;
92 bool m_requestIdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace CodeGuruProfiler
97} // namespace Aws
GetPolicyResult & WithPolicy(PolicyT &&value)
GetPolicyResult & WithRequestId(RequestIdT &&value)
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