/** * 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 UpdateEndpointResult { public: AWS_EVENTBRIDGE_API UpdateEndpointResult(); AWS_EVENTBRIDGE_API UpdateEndpointResult(const Aws::AmazonWebServiceResult& result); AWS_EVENTBRIDGE_API UpdateEndpointResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the endpoint you updated in this request.

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

The name of the endpoint you updated in this request.

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

The name of the endpoint you updated in this request.

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

The name of the endpoint you updated in this request.

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

The name of the endpoint you updated in this request.

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

The name of the endpoint you updated in this request.

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

The name of the endpoint you updated in this request.

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

The ARN of the endpoint you updated in this request.

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

The ARN of the endpoint you updated in this request.

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

The ARN of the endpoint you updated in this request.

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

The ARN of the endpoint you updated in this request.

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

The ARN of the endpoint you updated in this request.

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

The ARN of the endpoint you updated in this request.

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

The ARN of the endpoint you updated in this request.

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

The routing configuration you updated in this request.

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

The routing configuration you updated in this request.

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

The routing configuration you updated in this request.

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

The routing configuration you updated in this request.

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

The routing configuration you updated in this request.

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

Whether event replication was enabled or disabled for the endpoint you * updated in this request.

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

Whether event replication was enabled or disabled for the endpoint you * updated in this request.

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

Whether event replication was enabled or disabled for the endpoint you * updated in this request.

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

Whether event replication was enabled or disabled for the endpoint you * updated in this request.

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

Whether event replication was enabled or disabled for the endpoint you * updated in this request.

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

The event buses used for replication for the endpoint you updated in this * request.

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

The event buses used for replication for the endpoint you updated in this * request.

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

The event buses used for replication for the endpoint you updated in this * request.

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

The event buses used for replication for the endpoint you updated in this * request.

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

The event buses used for replication for the endpoint you updated in this * request.

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

The event buses used for replication for the endpoint you updated in this * request.

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

The event buses used for replication for the endpoint you updated in this * request.

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

The ARN of the role used by event replication for the endpoint you updated in * this request.

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

The ARN of the role used by event replication for the endpoint you updated in * this request.

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

The ARN of the role used by event replication for the endpoint you updated in * this request.

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

The ARN of the role used by event replication for the endpoint you updated in * this request.

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

The ARN of the role used by event replication for the endpoint you updated in * this request.

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

The ARN of the role used by event replication for the endpoint you updated in * this request.

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

The ARN of the role used by event replication for the endpoint you updated in * this request.

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

The ID of the endpoint you updated in this request.

*/ inline const Aws::String& GetEndpointId() const{ return m_endpointId; } /** *

The ID of the endpoint you updated in this request.

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

The ID of the endpoint you updated in this request.

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

The ID of the endpoint you updated in this request.

*/ inline void SetEndpointId(const char* value) { m_endpointId.assign(value); } /** *

The ID of the endpoint you updated in this request.

*/ inline UpdateEndpointResult& WithEndpointId(const Aws::String& value) { SetEndpointId(value); return *this;} /** *

The ID of the endpoint you updated in this request.

*/ inline UpdateEndpointResult& WithEndpointId(Aws::String&& value) { SetEndpointId(std::move(value)); return *this;} /** *

The ID of the endpoint you updated in this request.

*/ inline UpdateEndpointResult& WithEndpointId(const char* value) { SetEndpointId(value); return *this;} /** *

The URL of the endpoint you updated in this request.

*/ inline const Aws::String& GetEndpointUrl() const{ return m_endpointUrl; } /** *

The URL of the endpoint you updated in this request.

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

The URL of the endpoint you updated in this request.

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

The URL of the endpoint you updated in this request.

*/ inline void SetEndpointUrl(const char* value) { m_endpointUrl.assign(value); } /** *

The URL of the endpoint you updated in this request.

*/ inline UpdateEndpointResult& WithEndpointUrl(const Aws::String& value) { SetEndpointUrl(value); return *this;} /** *

The URL of the endpoint you updated in this request.

*/ inline UpdateEndpointResult& WithEndpointUrl(Aws::String&& value) { SetEndpointUrl(std::move(value)); return *this;} /** *

The URL of the endpoint you updated in this request.

*/ inline UpdateEndpointResult& WithEndpointUrl(const char* value) { SetEndpointUrl(value); return *this;} /** *

The state of the endpoint you updated in this request.

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

The state of the endpoint you updated in this request.

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

The state of the endpoint you updated in this request.

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

The state of the endpoint you updated in this request.

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

The state of the endpoint you updated in this request.

*/ inline UpdateEndpointResult& 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 UpdateEndpointResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateEndpointResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateEndpointResult& 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; Aws::String m_endpointId; Aws::String m_endpointUrl; EndpointState m_state; Aws::String m_requestId; }; } // namespace Model } // namespace EventBridge } // namespace Aws