AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateLifecyclePolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/Imagebuilder_EXPORTS.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 imagebuilder {
23namespace Model {
25 public:
26 AWS_IMAGEBUILDER_API CreateLifecyclePolicyResult() = default;
29
31
34 inline const Aws::String& GetClientToken() const { return m_clientToken; }
35 template <typename ClientTokenT = Aws::String>
36 void SetClientToken(ClientTokenT&& value) {
37 m_clientTokenHasBeenSet = true;
38 m_clientToken = std::forward<ClientTokenT>(value);
39 }
40 template <typename ClientTokenT = Aws::String>
42 SetClientToken(std::forward<ClientTokenT>(value));
43 return *this;
44 }
46
48
52 inline const Aws::String& GetLifecyclePolicyArn() const { return m_lifecyclePolicyArn; }
53 template <typename LifecyclePolicyArnT = Aws::String>
54 void SetLifecyclePolicyArn(LifecyclePolicyArnT&& value) {
55 m_lifecyclePolicyArnHasBeenSet = true;
56 m_lifecyclePolicyArn = std::forward<LifecyclePolicyArnT>(value);
57 }
58 template <typename LifecyclePolicyArnT = Aws::String>
60 SetLifecyclePolicyArn(std::forward<LifecyclePolicyArnT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template <typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) {
70 m_requestIdHasBeenSet = true;
71 m_requestId = std::forward<RequestIdT>(value);
72 }
73 template <typename RequestIdT = Aws::String>
75 SetRequestId(std::forward<RequestIdT>(value));
76 return *this;
77 }
79 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
80
81 private:
82 Aws::String m_clientToken;
83
84 Aws::String m_lifecyclePolicyArn;
85
86 Aws::String m_requestId;
87 Aws::Http::HttpResponseCode m_HttpResponseCode;
88 bool m_clientTokenHasBeenSet = false;
89 bool m_lifecyclePolicyArnHasBeenSet = false;
90 bool m_requestIdHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace imagebuilder
95} // namespace Aws
AWS_IMAGEBUILDER_API CreateLifecyclePolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLifecyclePolicyResult & WithRequestId(RequestIdT &&value)
AWS_IMAGEBUILDER_API CreateLifecyclePolicyResult()=default
AWS_IMAGEBUILDER_API CreateLifecyclePolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateLifecyclePolicyResult & WithLifecyclePolicyArn(LifecyclePolicyArnT &&value)
CreateLifecyclePolicyResult & WithClientToken(ClientTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue