/** * 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 { namespace EventBridge { namespace Model { /** */ class UpdateEndpointRequest : public EventBridgeRequest { public: AWS_EVENTBRIDGE_API UpdateEndpointRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateEndpoint"; } AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override; AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the endpoint you want to update.

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

The name of the endpoint you want to update.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the endpoint you want to update.

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

The name of the endpoint you want to update.

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

The name of the endpoint you want to update.

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

The name of the endpoint you want to update.

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

The name of the endpoint you want to update.

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

The name of the endpoint you want to update.

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

A description for the endpoint.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the endpoint.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the endpoint.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the endpoint.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the endpoint.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the endpoint.

*/ inline UpdateEndpointRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the endpoint.

*/ inline UpdateEndpointRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the endpoint.

*/ inline UpdateEndpointRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Configure the routing policy, including the health check and secondary * Region.

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

Configure the routing policy, including the health check and secondary * Region.

*/ inline bool RoutingConfigHasBeenSet() const { return m_routingConfigHasBeenSet; } /** *

Configure the routing policy, including the health check and secondary * Region.

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

Configure the routing policy, including the health check and secondary * Region.

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

Configure the routing policy, including the health check and secondary * Region.

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

Configure the routing policy, including the health check and secondary * Region.

*/ inline UpdateEndpointRequest& 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 bool ReplicationConfigHasBeenSet() const { return m_replicationConfigHasBeenSet; } /** *

Whether event replication was enabled or disabled by this request.

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

Whether event replication was enabled or disabled by this request.

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

Whether event replication was enabled or disabled by this request.

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

Whether event replication was enabled or disabled by this request.

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

Define event buses used for replication.

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

Define event buses used for replication.

*/ inline bool EventBusesHasBeenSet() const { return m_eventBusesHasBeenSet; } /** *

Define event buses used for replication.

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

Define event buses used for replication.

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

Define event buses used for replication.

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

Define event buses used for replication.

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

Define event buses used for replication.

*/ inline UpdateEndpointRequest& AddEventBuses(const EndpointEventBus& value) { m_eventBusesHasBeenSet = true; m_eventBuses.push_back(value); return *this; } /** *

Define event buses used for replication.

*/ inline UpdateEndpointRequest& AddEventBuses(EndpointEventBus&& value) { m_eventBusesHasBeenSet = true; 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 bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline UpdateEndpointRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; RoutingConfig m_routingConfig; bool m_routingConfigHasBeenSet = false; ReplicationConfig m_replicationConfig; bool m_replicationConfigHasBeenSet = false; Aws::Vector m_eventBuses; bool m_eventBusesHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws