/** * 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 #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EventBridge { namespace Model { class DescribeEndpointResult { public: AWS_EVENTBRIDGE_API DescribeEndpointResult(); AWS_EVENTBRIDGE_API DescribeEndpointResult(const Aws::AmazonWebServiceResult& result); AWS_EVENTBRIDGE_API DescribeEndpointResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the endpoint you asked for information about.

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

The name of the endpoint you asked for information about.

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

The name of the endpoint you asked for information about.

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

The name of the endpoint you asked for information about.

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

The name of the endpoint you asked for information about.

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

The name of the endpoint you asked for information about.

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

The name of the endpoint you asked for information about.

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

The description of the endpoint you asked for information about.

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

The description of the endpoint you asked for information about.

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

The description of the endpoint you asked for information about.

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

The description of the endpoint you asked for information about.

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

The description of the endpoint you asked for information about.

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

The description of the endpoint you asked for information about.

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

The description of the endpoint you asked for information about.

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

The ARN of the endpoint you asked for information about.

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

The ARN of the endpoint you asked for information about.

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

The ARN of the endpoint you asked for information about.

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

The ARN of the endpoint you asked for information about.

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

The ARN of the endpoint you asked for information about.

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

The ARN of the endpoint you asked for information about.

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

The ARN of the endpoint you asked for information about.

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

The routing configuration of the endpoint you asked for information * about.

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

The routing configuration of the endpoint you asked for information * about.

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

The routing configuration of the endpoint you asked for information * about.

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

The routing configuration of the endpoint you asked for information * about.

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

The routing configuration of the endpoint you asked for information * about.

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

Whether replication is enabled or disabled for the endpoint you asked for * information about.

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

Whether replication is enabled or disabled for the endpoint you asked for * information about.

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

Whether replication is enabled or disabled for the endpoint you asked for * information about.

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

Whether replication is enabled or disabled for the endpoint you asked for * information about.

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

Whether replication is enabled or disabled for the endpoint you asked for * information about.

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

The event buses being used by the endpoint you asked for information * about.

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

The event buses being used by the endpoint you asked for information * about.

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

The event buses being used by the endpoint you asked for information * about.

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

The event buses being used by the endpoint you asked for information * about.

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

The event buses being used by the endpoint you asked for information * about.

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

The event buses being used by the endpoint you asked for information * about.

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

The event buses being used by the endpoint you asked for information * about.

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

The ARN of the role used by the endpoint you asked for information about.

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

The ARN of the role used by the endpoint you asked for information about.

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

The ARN of the role used by the endpoint you asked for information about.

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

The ARN of the role used by the endpoint you asked for information about.

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

The ARN of the role used by the endpoint you asked for information about.

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

The ARN of the role used by the endpoint you asked for information about.

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

The ARN of the role used by the endpoint you asked for information about.

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

The ID of the endpoint you asked for information about.

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

The ID of the endpoint you asked for information about.

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

The ID of the endpoint you asked for information about.

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

The ID of the endpoint you asked for information about.

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

The ID of the endpoint you asked for information about.

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

The ID of the endpoint you asked for information about.

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

The ID of the endpoint you asked for information about.

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

The URL of the endpoint you asked for information about.

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

The URL of the endpoint you asked for information about.

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

The URL of the endpoint you asked for information about.

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

The URL of the endpoint you asked for information about.

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

The URL of the endpoint you asked for information about.

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

The URL of the endpoint you asked for information about.

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

The URL of the endpoint you asked for information about.

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

The current state of the endpoint you asked for information about.

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

The current state of the endpoint you asked for information about.

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

The current state of the endpoint you asked for information about.

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

The current state of the endpoint you asked for information about.

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

The current state of the endpoint you asked for information about.

*/ inline DescribeEndpointResult& WithState(EndpointState&& value) { SetState(std::move(value)); return *this;} /** *

The reason the endpoint you asked for information about is in its current * state.

*/ inline const Aws::String& GetStateReason() const{ return m_stateReason; } /** *

The reason the endpoint you asked for information about is in its current * state.

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

The reason the endpoint you asked for information about is in its current * state.

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

The reason the endpoint you asked for information about is in its current * state.

*/ inline void SetStateReason(const char* value) { m_stateReason.assign(value); } /** *

The reason the endpoint you asked for information about is in its current * state.

*/ inline DescribeEndpointResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} /** *

The reason the endpoint you asked for information about is in its current * state.

*/ inline DescribeEndpointResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} /** *

The reason the endpoint you asked for information about is in its current * state.

*/ inline DescribeEndpointResult& WithStateReason(const char* value) { SetStateReason(value); return *this;} /** *

The time the endpoint you asked for information about was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time the endpoint you asked for information about was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

The time the endpoint you asked for information about was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

The time the endpoint you asked for information about was created.

*/ inline DescribeEndpointResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time the endpoint you asked for information about was created.

*/ inline DescribeEndpointResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The last time the endpoint you asked for information about was modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

The last time the endpoint you asked for information about was modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } /** *

The last time the endpoint you asked for information about was modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } /** *

The last time the endpoint you asked for information about was modified.

*/ inline DescribeEndpointResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

The last time the endpoint you asked for information about was modified.

*/ inline DescribeEndpointResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(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 DescribeEndpointResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeEndpointResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeEndpointResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_name; Aws::String m_description; 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_stateReason; Aws::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_lastModifiedTime; Aws::String m_requestId; }; } // namespace Model } // namespace EventBridge } // namespace Aws