/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EventBridge { namespace Model { class CreateEndpointResult { public: AWS_EVENTBRIDGE_API CreateEndpointResult(); AWS_EVENTBRIDGE_API CreateEndpointResult(const Aws::AmazonWebServiceResult& result); AWS_EVENTBRIDGE_API CreateEndpointResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the endpoint that was created by this request.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the endpoint that was created by this request.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the endpoint that was created by this request.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the endpoint that was created by this request.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the endpoint that was created by this request.

*/ inline CreateEndpointResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the endpoint that was created by this request.

*/ inline CreateEndpointResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the endpoint that was created by this request.

*/ inline CreateEndpointResult& WithName(const char* value) { SetName(value); return *this;} /** *

The ARN of the endpoint that was created by this request.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the endpoint that was created by this request.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The ARN of the endpoint that was created by this request.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The ARN of the endpoint that was created by this request.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The ARN of the endpoint that was created by this request.

*/ inline CreateEndpointResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the endpoint that was created by this request.

*/ inline CreateEndpointResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the endpoint that was created by this request.

*/ inline CreateEndpointResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The routing configuration defined by this request.

*/ inline const RoutingConfig& GetRoutingConfig() const{ return m_routingConfig; } /** *

The routing configuration defined by this request.

*/ inline void SetRoutingConfig(const RoutingConfig& value) { m_routingConfig = value; } /** *

The routing configuration defined by this request.

*/ inline void SetRoutingConfig(RoutingConfig&& value) { m_routingConfig = std::move(value); } /** *

The routing configuration defined by this request.

*/ inline CreateEndpointResult& WithRoutingConfig(const RoutingConfig& value) { SetRoutingConfig(value); return *this;} /** *

The routing configuration defined by this request.

*/ inline CreateEndpointResult& WithRoutingConfig(RoutingConfig&& value) { SetRoutingConfig(std::move(value)); return *this;} /** *

Whether event replication was enabled or disabled by this request.

*/ inline const ReplicationConfig& GetReplicationConfig() const{ return m_replicationConfig; } /** *

Whether event replication was enabled or disabled by this request.

*/ inline void SetReplicationConfig(const ReplicationConfig& value) { m_replicationConfig = value; } /** *

Whether event replication was enabled or disabled by this request.

*/ inline void SetReplicationConfig(ReplicationConfig&& value) { m_replicationConfig = std::move(value); } /** *

Whether event replication was enabled or disabled by this request.

*/ inline CreateEndpointResult& WithReplicationConfig(const ReplicationConfig& value) { SetReplicationConfig(value); return *this;} /** *

Whether event replication was enabled or disabled by this request.

*/ inline CreateEndpointResult& WithReplicationConfig(ReplicationConfig&& value) { SetReplicationConfig(std::move(value)); return *this;} /** *

The event buses used by this request.

*/ inline const Aws::Vector& GetEventBuses() const{ return m_eventBuses; } /** *

The event buses used by this request.

*/ inline void SetEventBuses(const Aws::Vector& value) { m_eventBuses = value; } /** *

The event buses used by this request.

*/ inline void SetEventBuses(Aws::Vector&& value) { m_eventBuses = std::move(value); } /** *

The event buses used by this request.

*/ inline CreateEndpointResult& WithEventBuses(const Aws::Vector& value) { SetEventBuses(value); return *this;} /** *

The event buses used by this request.

*/ inline CreateEndpointResult& WithEventBuses(Aws::Vector&& value) { SetEventBuses(std::move(value)); return *this;} /** *

The event buses used by this request.

*/ inline CreateEndpointResult& AddEventBuses(const EndpointEventBus& value) { m_eventBuses.push_back(value); return *this; } /** *

The event buses used by this request.

*/ inline CreateEndpointResult& AddEventBuses(EndpointEventBus&& value) { m_eventBuses.push_back(std::move(value)); return *this; } /** *

The ARN of the role used by event replication for this request.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The ARN of the role used by event replication for this request.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArn = value; } /** *

The ARN of the role used by event replication for this request.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArn = std::move(value); } /** *

The ARN of the role used by event replication for this request.

*/ inline void SetRoleArn(const char* value) { m_roleArn.assign(value); } /** *

The ARN of the role used by event replication for this request.

*/ inline CreateEndpointResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The ARN of the role used by event replication for this request.

*/ inline CreateEndpointResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The ARN of the role used by event replication for this request.

*/ inline CreateEndpointResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The state of the endpoint that was created by this request.

*/ inline const EndpointState& GetState() const{ return m_state; } /** *

The state of the endpoint that was created by this request.

*/ inline void SetState(const EndpointState& value) { m_state = value; } /** *

The state of the endpoint that was created by this request.

*/ inline void SetState(EndpointState&& value) { m_state = std::move(value); } /** *

The state of the endpoint that was created by this request.

*/ inline CreateEndpointResult& WithState(const EndpointState& value) { SetState(value); return *this;} /** *

The state of the endpoint that was created by this request.

*/ inline CreateEndpointResult& WithState(EndpointState&& value) { SetState(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateEndpointResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateEndpointResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateEndpointResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_arn; RoutingConfig m_routingConfig; ReplicationConfig m_replicationConfig; Aws::Vector m_eventBuses; Aws::String m_roleArn; EndpointState m_state; Aws::String m_requestId; }; } // namespace Model } // namespace EventBridge } // namespace Aws