AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
CreateApiDestinationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eventbridge/EventBridge_EXPORTS.h>
11#include <aws/eventbridge/model/ApiDestinationState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace EventBridge {
25namespace Model {
27 public:
28 AWS_EVENTBRIDGE_API CreateApiDestinationResult() = default;
31
33
36 inline const Aws::String& GetApiDestinationArn() const { return m_apiDestinationArn; }
37 template <typename ApiDestinationArnT = Aws::String>
38 void SetApiDestinationArn(ApiDestinationArnT&& value) {
39 m_apiDestinationArnHasBeenSet = true;
40 m_apiDestinationArn = std::forward<ApiDestinationArnT>(value);
41 }
42 template <typename ApiDestinationArnT = Aws::String>
44 SetApiDestinationArn(std::forward<ApiDestinationArnT>(value));
45 return *this;
46 }
48
50
53 inline ApiDestinationState GetApiDestinationState() const { return m_apiDestinationState; }
55 m_apiDestinationStateHasBeenSet = true;
56 m_apiDestinationState = value;
57 }
60 return *this;
61 }
63
65
68 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
69 template <typename CreationTimeT = Aws::Utils::DateTime>
70 void SetCreationTime(CreationTimeT&& value) {
71 m_creationTimeHasBeenSet = true;
72 m_creationTime = std::forward<CreationTimeT>(value);
73 }
74 template <typename CreationTimeT = Aws::Utils::DateTime>
76 SetCreationTime(std::forward<CreationTimeT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
87 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
88 void SetLastModifiedTime(LastModifiedTimeT&& value) {
89 m_lastModifiedTimeHasBeenSet = true;
90 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
91 }
92 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
94 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
95 return *this;
96 }
98
100
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 template <typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) {
104 m_requestIdHasBeenSet = true;
105 m_requestId = std::forward<RequestIdT>(value);
106 }
107 template <typename RequestIdT = Aws::String>
109 SetRequestId(std::forward<RequestIdT>(value));
110 return *this;
111 }
113 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
114
115 private:
116 Aws::String m_apiDestinationArn;
117
119
120 Aws::Utils::DateTime m_creationTime{};
121
122 Aws::Utils::DateTime m_lastModifiedTime{};
123
124 Aws::String m_requestId;
125 Aws::Http::HttpResponseCode m_HttpResponseCode;
126 bool m_apiDestinationArnHasBeenSet = false;
127 bool m_apiDestinationStateHasBeenSet = false;
128 bool m_creationTimeHasBeenSet = false;
129 bool m_lastModifiedTimeHasBeenSet = false;
130 bool m_requestIdHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace EventBridge
135} // namespace Aws
CreateApiDestinationResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API CreateApiDestinationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateApiDestinationResult & WithApiDestinationState(ApiDestinationState value)
AWS_EVENTBRIDGE_API CreateApiDestinationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateApiDestinationResult & WithCreationTime(CreationTimeT &&value)
AWS_EVENTBRIDGE_API CreateApiDestinationResult()=default
CreateApiDestinationResult & WithApiDestinationArn(ApiDestinationArnT &&value)
CreateApiDestinationResult & WithLastModifiedTime(LastModifiedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue