AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateEndpointResult.h
1
6#pragma once
7#include <aws/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eventbridge/model/RoutingConfig.h>
10#include <aws/eventbridge/model/ReplicationConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/eventbridge/model/EndpointState.h>
13#include <aws/eventbridge/model/EndpointEventBus.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace EventBridge
29{
30namespace Model
31{
33 {
34 public:
35 AWS_EVENTBRIDGE_API CreateEndpointResult() = default;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateEndpointResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetArn() const { return m_arn; }
56 template<typename ArnT = Aws::String>
57 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
58 template<typename ArnT = Aws::String>
59 CreateEndpointResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
61
63
66 inline const RoutingConfig& GetRoutingConfig() const { return m_routingConfig; }
67 template<typename RoutingConfigT = RoutingConfig>
68 void SetRoutingConfig(RoutingConfigT&& value) { m_routingConfigHasBeenSet = true; m_routingConfig = std::forward<RoutingConfigT>(value); }
69 template<typename RoutingConfigT = RoutingConfig>
70 CreateEndpointResult& WithRoutingConfig(RoutingConfigT&& value) { SetRoutingConfig(std::forward<RoutingConfigT>(value)); return *this;}
72
74
77 inline const ReplicationConfig& GetReplicationConfig() const { return m_replicationConfig; }
78 template<typename ReplicationConfigT = ReplicationConfig>
79 void SetReplicationConfig(ReplicationConfigT&& value) { m_replicationConfigHasBeenSet = true; m_replicationConfig = std::forward<ReplicationConfigT>(value); }
80 template<typename ReplicationConfigT = ReplicationConfig>
81 CreateEndpointResult& WithReplicationConfig(ReplicationConfigT&& value) { SetReplicationConfig(std::forward<ReplicationConfigT>(value)); return *this;}
83
85
88 inline const Aws::Vector<EndpointEventBus>& GetEventBuses() const { return m_eventBuses; }
89 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
90 void SetEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses = std::forward<EventBusesT>(value); }
91 template<typename EventBusesT = Aws::Vector<EndpointEventBus>>
92 CreateEndpointResult& WithEventBuses(EventBusesT&& value) { SetEventBuses(std::forward<EventBusesT>(value)); return *this;}
93 template<typename EventBusesT = EndpointEventBus>
94 CreateEndpointResult& AddEventBuses(EventBusesT&& value) { m_eventBusesHasBeenSet = true; m_eventBuses.emplace_back(std::forward<EventBusesT>(value)); return *this; }
96
98
101 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
102 template<typename RoleArnT = Aws::String>
103 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
104 template<typename RoleArnT = Aws::String>
105 CreateEndpointResult& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
107
109
112 inline EndpointState GetState() const { return m_state; }
113 inline void SetState(EndpointState value) { m_stateHasBeenSet = true; m_state = value; }
114 inline CreateEndpointResult& WithState(EndpointState value) { SetState(value); return *this;}
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template<typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
122 template<typename RequestIdT = Aws::String>
123 CreateEndpointResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
125 private:
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 Aws::String m_arn;
131 bool m_arnHasBeenSet = false;
132
133 RoutingConfig m_routingConfig;
134 bool m_routingConfigHasBeenSet = false;
135
136 ReplicationConfig m_replicationConfig;
137 bool m_replicationConfigHasBeenSet = false;
138
140 bool m_eventBusesHasBeenSet = false;
141
142 Aws::String m_roleArn;
143 bool m_roleArnHasBeenSet = false;
144
146 bool m_stateHasBeenSet = false;
147
148 Aws::String m_requestId;
149 bool m_requestIdHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace EventBridge
154} // namespace Aws
const ReplicationConfig & GetReplicationConfig() const
void SetReplicationConfig(ReplicationConfigT &&value)
AWS_EVENTBRIDGE_API CreateEndpointResult()=default
CreateEndpointResult & WithName(NameT &&value)
CreateEndpointResult & WithEventBuses(EventBusesT &&value)
CreateEndpointResult & WithRoleArn(RoleArnT &&value)
const Aws::Vector< EndpointEventBus > & GetEventBuses() const
CreateEndpointResult & WithReplicationConfig(ReplicationConfigT &&value)
CreateEndpointResult & WithState(EndpointState value)
AWS_EVENTBRIDGE_API CreateEndpointResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEndpointResult & AddEventBuses(EventBusesT &&value)
AWS_EVENTBRIDGE_API CreateEndpointResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEndpointResult & WithRoutingConfig(RoutingConfigT &&value)
CreateEndpointResult & WithArn(ArnT &&value)
CreateEndpointResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue