AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GetImagePolicyResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.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 imagebuilder {
22namespace Model {
24 public:
25 AWS_IMAGEBUILDER_API GetImagePolicyResult() = default;
28
30
33 inline const Aws::String& GetRequestId() const { return m_requestId; }
34 template <typename RequestIdT = Aws::String>
35 void SetRequestId(RequestIdT&& value) {
36 m_requestIdHasBeenSet = true;
37 m_requestId = std::forward<RequestIdT>(value);
38 }
39 template <typename RequestIdT = Aws::String>
40 GetImagePolicyResult& WithRequestId(RequestIdT&& value) {
41 SetRequestId(std::forward<RequestIdT>(value));
42 return *this;
43 }
45
47
50 inline const Aws::String& GetPolicy() const { return m_policy; }
51 template <typename PolicyT = Aws::String>
52 void SetPolicy(PolicyT&& value) {
53 m_policyHasBeenSet = true;
54 m_policy = std::forward<PolicyT>(value);
55 }
56 template <typename PolicyT = Aws::String>
57 GetImagePolicyResult& WithPolicy(PolicyT&& value) {
58 SetPolicy(std::forward<PolicyT>(value));
59 return *this;
60 }
62 private:
63 Aws::String m_requestId;
64
65 Aws::String m_policy;
66 bool m_requestIdHasBeenSet = false;
67 bool m_policyHasBeenSet = false;
68};
69
70} // namespace Model
71} // namespace imagebuilder
72} // namespace Aws
GetImagePolicyResult & WithRequestId(RequestIdT &&value)
AWS_IMAGEBUILDER_API GetImagePolicyResult()=default
AWS_IMAGEBUILDER_API GetImagePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetImagePolicyResult & WithPolicy(PolicyT &&value)
AWS_IMAGEBUILDER_API GetImagePolicyResult(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