AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateEventBusResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridge_EXPORTS.h>
9#include <aws/eventbridge/model/DeadLetterConfig.h>
10#include <aws/eventbridge/model/LogConfig.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace EventBridge {
24namespace Model {
26 public:
27 AWS_EVENTBRIDGE_API CreateEventBusResult() = default;
30
32
35 inline const Aws::String& GetEventBusArn() const { return m_eventBusArn; }
36 template <typename EventBusArnT = Aws::String>
37 void SetEventBusArn(EventBusArnT&& value) {
38 m_eventBusArnHasBeenSet = true;
39 m_eventBusArn = std::forward<EventBusArnT>(value);
40 }
41 template <typename EventBusArnT = Aws::String>
42 CreateEventBusResult& WithEventBusArn(EventBusArnT&& value) {
43 SetEventBusArn(std::forward<EventBusArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetDescription() const { return m_description; }
53 template <typename DescriptionT = Aws::String>
54 void SetDescription(DescriptionT&& value) {
55 m_descriptionHasBeenSet = true;
56 m_description = std::forward<DescriptionT>(value);
57 }
58 template <typename DescriptionT = Aws::String>
59 CreateEventBusResult& WithDescription(DescriptionT&& value) {
60 SetDescription(std::forward<DescriptionT>(value));
61 return *this;
62 }
64
66
73 inline const Aws::String& GetKmsKeyIdentifier() const { return m_kmsKeyIdentifier; }
74 template <typename KmsKeyIdentifierT = Aws::String>
75 void SetKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
76 m_kmsKeyIdentifierHasBeenSet = true;
77 m_kmsKeyIdentifier = std::forward<KmsKeyIdentifierT>(value);
78 }
79 template <typename KmsKeyIdentifierT = Aws::String>
80 CreateEventBusResult& WithKmsKeyIdentifier(KmsKeyIdentifierT&& value) {
81 SetKmsKeyIdentifier(std::forward<KmsKeyIdentifierT>(value));
82 return *this;
83 }
85
87
88 inline const DeadLetterConfig& GetDeadLetterConfig() const { return m_deadLetterConfig; }
89 template <typename DeadLetterConfigT = DeadLetterConfig>
90 void SetDeadLetterConfig(DeadLetterConfigT&& value) {
91 m_deadLetterConfigHasBeenSet = true;
92 m_deadLetterConfig = std::forward<DeadLetterConfigT>(value);
93 }
94 template <typename DeadLetterConfigT = DeadLetterConfig>
95 CreateEventBusResult& WithDeadLetterConfig(DeadLetterConfigT&& value) {
96 SetDeadLetterConfig(std::forward<DeadLetterConfigT>(value));
97 return *this;
98 }
100
102
108 inline const LogConfig& GetLogConfig() const { return m_logConfig; }
109 template <typename LogConfigT = LogConfig>
110 void SetLogConfig(LogConfigT&& value) {
111 m_logConfigHasBeenSet = true;
112 m_logConfig = std::forward<LogConfigT>(value);
113 }
114 template <typename LogConfigT = LogConfig>
115 CreateEventBusResult& WithLogConfig(LogConfigT&& value) {
116 SetLogConfig(std::forward<LogConfigT>(value));
117 return *this;
118 }
120
122
123 inline const Aws::String& GetRequestId() const { return m_requestId; }
124 template <typename RequestIdT = Aws::String>
125 void SetRequestId(RequestIdT&& value) {
126 m_requestIdHasBeenSet = true;
127 m_requestId = std::forward<RequestIdT>(value);
128 }
129 template <typename RequestIdT = Aws::String>
130 CreateEventBusResult& WithRequestId(RequestIdT&& value) {
131 SetRequestId(std::forward<RequestIdT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_eventBusArn;
137
138 Aws::String m_description;
139
140 Aws::String m_kmsKeyIdentifier;
141
142 DeadLetterConfig m_deadLetterConfig;
143
144 LogConfig m_logConfig;
145
146 Aws::String m_requestId;
147 bool m_eventBusArnHasBeenSet = false;
148 bool m_descriptionHasBeenSet = false;
149 bool m_kmsKeyIdentifierHasBeenSet = false;
150 bool m_deadLetterConfigHasBeenSet = false;
151 bool m_logConfigHasBeenSet = false;
152 bool m_requestIdHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace EventBridge
157} // 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)
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