AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetPolicyVersionResult.h
1
6#pragma once
7#include <aws/mpa/MPA_EXPORTS.h>
8#include <aws/mpa/model/PolicyVersion.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MPA
25{
26namespace Model
27{
29 {
30 public:
31 AWS_MPA_API GetPolicyVersionResult() = default;
34
35
37
46 inline const PolicyVersion& GetPolicyVersion() const { return m_policyVersion; }
47 template<typename PolicyVersionT = PolicyVersion>
48 void SetPolicyVersion(PolicyVersionT&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::forward<PolicyVersionT>(value); }
49 template<typename PolicyVersionT = PolicyVersion>
50 GetPolicyVersionResult& WithPolicyVersion(PolicyVersionT&& value) { SetPolicyVersion(std::forward<PolicyVersionT>(value)); return *this;}
52
54
55 inline const Aws::String& GetRequestId() const { return m_requestId; }
56 template<typename RequestIdT = Aws::String>
57 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
58 template<typename RequestIdT = Aws::String>
59 GetPolicyVersionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
61 private:
62
63 PolicyVersion m_policyVersion;
64 bool m_policyVersionHasBeenSet = false;
65
66 Aws::String m_requestId;
67 bool m_requestIdHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace MPA
72} // 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