/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EventBridge { namespace Model { /** */ class PutEventsRequest : public EventBridgeRequest { public: AWS_EVENTBRIDGE_API PutEventsRequest(); // 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 "PutEvents"; } AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override; AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** * Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation. */ AWS_EVENTBRIDGE_API EndpointParameters GetEndpointContextParams() const override; /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline const Aws::Vector& GetEntries() const{ return m_entries; } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline bool EntriesHasBeenSet() const { return m_entriesHasBeenSet; } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline void SetEntries(const Aws::Vector& value) { m_entriesHasBeenSet = true; m_entries = value; } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline void SetEntries(Aws::Vector&& value) { m_entriesHasBeenSet = true; m_entries = std::move(value); } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline PutEventsRequest& WithEntries(const Aws::Vector& value) { SetEntries(value); return *this;} /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline PutEventsRequest& WithEntries(Aws::Vector&& value) { SetEntries(std::move(value)); return *this;} /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline PutEventsRequest& AddEntries(const PutEventsRequestEntry& value) { m_entriesHasBeenSet = true; m_entries.push_back(value); return *this; } /** *

The entry that defines an event in your system. You can specify several * parameters for the entry such as the source and type of the event, resources * associated with the event, and so on.

*/ inline PutEventsRequest& AddEntries(PutEventsRequestEntry&& value) { m_entriesHasBeenSet = true; m_entries.push_back(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 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 PutEventsRequest& 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 PutEventsRequest& 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 PutEventsRequest& WithEndpointId(const char* value) { SetEndpointId(value); return *this;} private: Aws::Vector m_entries; bool m_entriesHasBeenSet = false; Aws::String m_endpointId; bool m_endpointIdHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws