AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruProfiler
24{
25namespace Model
26{
34 {
35 public:
36 AWS_CODEGURUPROFILER_API GetPolicyResult() = default;
39
40
42
46 inline const Aws::String& GetPolicy() const { return m_policy; }
47 template<typename PolicyT = Aws::String>
48 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
49 template<typename PolicyT = Aws::String>
50 GetPolicyResult& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
52
54
57 inline const Aws::String& GetRevisionId() const { return m_revisionId; }
58 template<typename RevisionIdT = Aws::String>
59 void SetRevisionId(RevisionIdT&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::forward<RevisionIdT>(value); }
60 template<typename RevisionIdT = Aws::String>
61 GetPolicyResult& WithRevisionId(RevisionIdT&& value) { SetRevisionId(std::forward<RevisionIdT>(value)); return *this;}
63
65
66 inline const Aws::String& GetRequestId() const { return m_requestId; }
67 template<typename RequestIdT = Aws::String>
68 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
69 template<typename RequestIdT = Aws::String>
70 GetPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
72 private:
73
74 Aws::String m_policy;
75 bool m_policyHasBeenSet = false;
76
77 Aws::String m_revisionId;
78 bool m_revisionIdHasBeenSet = false;
79
80 Aws::String m_requestId;
81 bool m_requestIdHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace CodeGuruProfiler
86} // 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