/** * 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 CloudWatchEvents { namespace Model { /** */ class CreateEventBusRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_API CreateEventBusRequest(); // 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 "CreateEventBus"; } AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the new event bus.

Event bus names cannot contain the / * character. You can't use the name default for a custom event bus, * as this name is already used for your account's default event bus.

If * this is a partner event bus, the name must exactly match the name of the partner * event source that this event bus is matched to.

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

The name of the new event bus.

Event bus names cannot contain the / * character. You can't use the name default for a custom event bus, * as this name is already used for your account's default event bus.

If * this is a partner event bus, the name must exactly match the name of the partner * event source that this event bus is matched to.

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

The name of the new event bus.

Event bus names cannot contain the / * character. You can't use the name default for a custom event bus, * as this name is already used for your account's default event bus.

If * this is a partner event bus, the name must exactly match the name of the partner * event source that this event bus is matched to.

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

The name of the new event bus.

Event bus names cannot contain the / * character. You can't use the name default for a custom event bus, * as this name is already used for your account's default event bus.

If * this is a partner event bus, the name must exactly match the name of the partner * event source that this event bus is matched to.

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

The name of the new event bus.

Event bus names cannot contain the / * character. You can't use the name default for a custom event bus, * as this name is already used for your account's default event bus.

If * this is a partner event bus, the name must exactly match the name of the partner * event source that this event bus is matched to.

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

The name of the new event bus.

Event bus names cannot contain the / * character. You can't use the name default for a custom event bus, * as this name is already used for your account's default event bus.

If * this is a partner event bus, the name must exactly match the name of the partner * event source that this event bus is matched to.

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

The name of the new event bus.

Event bus names cannot contain the / * character. You can't use the name default for a custom event bus, * as this name is already used for your account's default event bus.

If * this is a partner event bus, the name must exactly match the name of the partner * event source that this event bus is matched to.

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

The name of the new event bus.

Event bus names cannot contain the / * character. You can't use the name default for a custom event bus, * as this name is already used for your account's default event bus.

If * this is a partner event bus, the name must exactly match the name of the partner * event source that this event bus is matched to.

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

If you are creating a partner event bus, this specifies the partner event * source that the new event bus will be matched with.

*/ inline const Aws::String& GetEventSourceName() const{ return m_eventSourceName; } /** *

If you are creating a partner event bus, this specifies the partner event * source that the new event bus will be matched with.

*/ inline bool EventSourceNameHasBeenSet() const { return m_eventSourceNameHasBeenSet; } /** *

If you are creating a partner event bus, this specifies the partner event * source that the new event bus will be matched with.

*/ inline void SetEventSourceName(const Aws::String& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = value; } /** *

If you are creating a partner event bus, this specifies the partner event * source that the new event bus will be matched with.

*/ inline void SetEventSourceName(Aws::String&& value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName = std::move(value); } /** *

If you are creating a partner event bus, this specifies the partner event * source that the new event bus will be matched with.

*/ inline void SetEventSourceName(const char* value) { m_eventSourceNameHasBeenSet = true; m_eventSourceName.assign(value); } /** *

If you are creating a partner event bus, this specifies the partner event * source that the new event bus will be matched with.

*/ inline CreateEventBusRequest& WithEventSourceName(const Aws::String& value) { SetEventSourceName(value); return *this;} /** *

If you are creating a partner event bus, this specifies the partner event * source that the new event bus will be matched with.

*/ inline CreateEventBusRequest& WithEventSourceName(Aws::String&& value) { SetEventSourceName(std::move(value)); return *this;} /** *

If you are creating a partner event bus, this specifies the partner event * source that the new event bus will be matched with.

*/ inline CreateEventBusRequest& WithEventSourceName(const char* value) { SetEventSourceName(value); return *this;} /** *

Tags to associate with the event bus.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Tags to associate with the event bus.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags to associate with the event bus.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags to associate with the event bus.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags to associate with the event bus.

*/ inline CreateEventBusRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Tags to associate with the event bus.

*/ inline CreateEventBusRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Tags to associate with the event bus.

*/ inline CreateEventBusRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Tags to associate with the event bus.

*/ inline CreateEventBusRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_eventSourceName; bool m_eventSourceNameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws