AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetPolicyVersionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mpa/MPA_EXPORTS.h>
9#include <aws/mpa/model/PolicyVersion.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 MPA {
23namespace Model {
25 public:
26 AWS_MPA_API GetPolicyVersionResult() = default;
29
31
40 inline const PolicyVersion& GetPolicyVersion() const { return m_policyVersion; }
41 template <typename PolicyVersionT = PolicyVersion>
42 void SetPolicyVersion(PolicyVersionT&& value) {
43 m_policyVersionHasBeenSet = true;
44 m_policyVersion = std::forward<PolicyVersionT>(value);
45 }
46 template <typename PolicyVersionT = PolicyVersion>
47 GetPolicyVersionResult& WithPolicyVersion(PolicyVersionT&& value) {
48 SetPolicyVersion(std::forward<PolicyVersionT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetRequestId() const { return m_requestId; }
56 template <typename RequestIdT = Aws::String>
57 void SetRequestId(RequestIdT&& value) {
58 m_requestIdHasBeenSet = true;
59 m_requestId = std::forward<RequestIdT>(value);
60 }
61 template <typename RequestIdT = Aws::String>
63 SetRequestId(std::forward<RequestIdT>(value));
64 return *this;
65 }
67 private:
68 PolicyVersion m_policyVersion;
69
70 Aws::String m_requestId;
71 bool m_policyVersionHasBeenSet = false;
72 bool m_requestIdHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace MPA
77} // namespace Aws
AWS_MPA_API GetPolicyVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_MPA_API GetPolicyVersionResult()=default
GetPolicyVersionResult & WithRequestId(RequestIdT &&value)
AWS_MPA_API GetPolicyVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetPolicyVersionResult & WithPolicyVersion(PolicyVersionT &&value)
void SetPolicyVersion(PolicyVersionT &&value)
const PolicyVersion & GetPolicyVersion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue