/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pipes { namespace Model { /** *

The parameters for using an EventBridge event bus as a target.

See * Also:

AWS * API Reference

*/ class PipeTargetEventBridgeEventBusParameters { public: AWS_PIPES_API PipeTargetEventBridgeEventBusParameters(); AWS_PIPES_API PipeTargetEventBridgeEventBusParameters(Aws::Utils::Json::JsonView jsonValue); AWS_PIPES_API PipeTargetEventBridgeEventBusParameters& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline const Aws::String& GetDetailType() const{ return m_detailType; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline PipeTargetEventBridgeEventBusParameters& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;} /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline PipeTargetEventBridgeEventBusParameters& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;} /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline PipeTargetEventBridgeEventBusParameters& WithDetailType(const char* value) { SetDetailType(value); return *this;} /** *

The URL subdomain of the endpoint. For example, if the URL for Endpoint is * https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is * abcde.veo.

When using Java, you must include * auth-crt on the class path.

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

The URL subdomain of the endpoint. For example, if the URL for Endpoint is * https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is * abcde.veo.

When using Java, you must include * auth-crt on the class path.

*/ inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; } /** *

The URL subdomain of the endpoint. For example, if the URL for Endpoint is * https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is * abcde.veo.

When using Java, you must include * auth-crt on the class path.

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

The URL subdomain of the endpoint. For example, if the URL for Endpoint is * https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is * abcde.veo.

When using Java, you must include * auth-crt on the class path.

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

The URL subdomain of the endpoint. For example, if the URL for Endpoint is * https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is * abcde.veo.

When using Java, you must include * auth-crt on the class path.

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

The URL subdomain of the endpoint. For example, if the URL for Endpoint is * https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is * abcde.veo.

When using Java, you must include * auth-crt on the class path.

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

The URL subdomain of the endpoint. For example, if the URL for Endpoint is * https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is * abcde.veo.

When using Java, you must include * auth-crt on the class path.

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

The URL subdomain of the endpoint. For example, if the URL for Endpoint is * https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is * abcde.veo.

When using Java, you must include * auth-crt on the class path.

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

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PipeTargetEventBridgeEventBusParameters& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PipeTargetEventBridgeEventBusParameters& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PipeTargetEventBridgeEventBusParameters& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PipeTargetEventBridgeEventBusParameters& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PipeTargetEventBridgeEventBusParameters& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

The source of the event.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The source of the event.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source of the event.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source of the event.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source of the event.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The source of the event.

*/ inline PipeTargetEventBridgeEventBusParameters& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The source of the event.

*/ inline PipeTargetEventBridgeEventBusParameters& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The source of the event.

*/ inline PipeTargetEventBridgeEventBusParameters& WithSource(const char* value) { SetSource(value); return *this;} /** *

The time stamp of the event, per RFC3339. If no time stamp * is provided, the time stamp of the PutEvents * call is used.

*/ inline const Aws::String& GetTime() const{ return m_time; } /** *

The time stamp of the event, per RFC3339. If no time stamp * is provided, the time stamp of the PutEvents * call is used.

*/ inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; } /** *

The time stamp of the event, per RFC3339. If no time stamp * is provided, the time stamp of the PutEvents * call is used.

*/ inline void SetTime(const Aws::String& value) { m_timeHasBeenSet = true; m_time = value; } /** *

The time stamp of the event, per RFC3339. If no time stamp * is provided, the time stamp of the PutEvents * call is used.

*/ inline void SetTime(Aws::String&& value) { m_timeHasBeenSet = true; m_time = std::move(value); } /** *

The time stamp of the event, per RFC3339. If no time stamp * is provided, the time stamp of the PutEvents * call is used.

*/ inline void SetTime(const char* value) { m_timeHasBeenSet = true; m_time.assign(value); } /** *

The time stamp of the event, per RFC3339. If no time stamp * is provided, the time stamp of the PutEvents * call is used.

*/ inline PipeTargetEventBridgeEventBusParameters& WithTime(const Aws::String& value) { SetTime(value); return *this;} /** *

The time stamp of the event, per RFC3339. If no time stamp * is provided, the time stamp of the PutEvents * call is used.

*/ inline PipeTargetEventBridgeEventBusParameters& WithTime(Aws::String&& value) { SetTime(std::move(value)); return *this;} /** *

The time stamp of the event, per RFC3339. If no time stamp * is provided, the time stamp of the PutEvents * call is used.

*/ inline PipeTargetEventBridgeEventBusParameters& WithTime(const char* value) { SetTime(value); return *this;} private: Aws::String m_detailType; bool m_detailTypeHasBeenSet = false; Aws::String m_endpointId; bool m_endpointIdHasBeenSet = false; Aws::Vector m_resources; bool m_resourcesHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_time; bool m_timeHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws