AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateEventBusResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/EventBridge_EXPORTS.h>
10#include <aws/eventbridge/model/DeadLetterConfig.h>
11#include <aws/eventbridge/model/LogConfig.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 CreateEventBusResult() = default;
31
33
36 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
37 template <typename EventBusArnT = Aws::String>
38 void SetEventBusArn(EventBusArnT&& value) {
39 m_eventBusArnHasBeenSet = true;
40 m_eventBusArn = std::forward<EventBusArnT>(value);
41 }
42 template <typename EventBusArnT = Aws::String>
43 CreateEventBusResult& WithEventBusArn(EventBusArnT&& value) {
44 SetEventBusArn(std::forward<EventBusArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetDescription() const { return m_description; }
54 template <typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) {
56 m_descriptionHasBeenSet = true;
57 m_description = std::forward<DescriptionT>(value);
58 }
59 template <typename DescriptionT = Aws::String>
60 CreateEventBusResult& WithDescription(DescriptionT&& value) {
61 SetDescription(std::forward<DescriptionT>(value));
62 return *this;
63 }
65
67
74 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
75 template <typename KmsKeyIdentifierT = Aws::String>
76 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
77 m_kmsKeyIdentifierHasBeenSet = true;
78 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
79 }
80 template <typename KmsKeyIdentifierT = Aws::String>
81 CreateEventBusResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
82 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
83 return *this;
84 }
86
88
89 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
90 template <typename DeadLetterConfigT = DeadLetterConfig>
91 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
92 m_deadLetterConfigHasBeenSet = true;
93 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
94 }
95 template <typename DeadLetterConfigT = DeadLetterConfig>
96 CreateEventBusResult& WithDeadLetterConfig(DeadLetterConfigT&& value) {
97 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
98 return *this;
99 }
101
103
109 inline const LogConfig& GetLogConfig() const { return m_logConfig; }
110 template <typename LogConfigT = LogConfig>
111 void SetLogConfig(LogConfigT&& value) {
112 m_logConfigHasBeenSet = true;
113 m_logConfig = std::forward<LogConfigT>(value);
114 }
115 template <typename LogConfigT = LogConfig>
116 CreateEventBusResult& WithLogConfig(LogConfigT&& value) {
117 SetLogConfig(std::forward<LogConfigT>(value));
118 return *this;
119 }
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template <typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) {
127 m_requestIdHasBeenSet = true;
128 m_requestId = std::forward<RequestIdT>(value);
129 }
130 template <typename RequestIdT = Aws::String>
131 CreateEventBusResult& WithRequestId(RequestIdT&& value) {
132 SetRequestId(std::forward<RequestIdT>(value));
133 return *this;
134 }
136 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
137
138 private:
139 Aws::String m_eventBusArn;
140
141 Aws::String m_description;
142
143 Aws::String m_kmsKeyIdentifier;
144
145 DeadLetterConfig m_deadLetterConfig;
146
147 LogConfig m_logConfig;
148
149 Aws::String m_requestId;
150 Aws::Http::HttpResponseCode m_HttpResponseCode;
151 bool m_eventBusArnHasBeenSet = false;
152 bool m_descriptionHasBeenSet = false;
153 bool m_kmsKeyIdentifierHasBeenSet = false;
154 bool m_deadLetterConfigHasBeenSet = false;
155 bool m_logConfigHasBeenSet = false;
156 bool m_requestIdHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace EventBridge
161} // namespace Aws
AWS_EVENTBRIDGE_API CreateEventBusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEventBusResult & WithEventBusArn(EventBusArnT &&value)
CreateEventBusResult & WithDescription(DescriptionT &&value)
void SetDeadLetterConfig(DeadLetterConfigT &&value)
AWS_EVENTBRIDGE_API CreateEventBusResult()=default
CreateEventBusResult & WithKmsKeyIdentifier(KmsKeyIdentifierT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const DeadLetterConfig & GetDeadLetterConfig() const
CreateEventBusResult & WithDeadLetterConfig(DeadLetterConfigT &&value)
CreateEventBusResult & WithLogConfig(LogConfigT &&value)
void SetKmsKeyIdentifier(KmsKeyIdentifierT &&value)
CreateEventBusResult & WithRequestId(RequestIdT &&value)
AWS_EVENTBRIDGE_API CreateEventBusResult & operator=(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