/** * 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 { namespace MigrationHubRefactorSpaces { namespace Model { /** */ class CreateRouteRequest : public MigrationHubRefactorSpacesRequest { public: AWS_MIGRATIONHUBREFACTORSPACES_API CreateRouteRequest(); // 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 "CreateRoute"; } AWS_MIGRATIONHUBREFACTORSPACES_API Aws::String SerializePayload() const override; /** *

The ID of the application within which the route is being created.

*/ inline const Aws::String& GetApplicationIdentifier() const{ return m_applicationIdentifier; } /** *

The ID of the application within which the route is being created.

*/ inline bool ApplicationIdentifierHasBeenSet() const { return m_applicationIdentifierHasBeenSet; } /** *

The ID of the application within which the route is being created.

*/ inline void SetApplicationIdentifier(const Aws::String& value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier = value; } /** *

The ID of the application within which the route is being created.

*/ inline void SetApplicationIdentifier(Aws::String&& value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier = std::move(value); } /** *

The ID of the application within which the route is being created.

*/ inline void SetApplicationIdentifier(const char* value) { m_applicationIdentifierHasBeenSet = true; m_applicationIdentifier.assign(value); } /** *

The ID of the application within which the route is being created.

*/ inline CreateRouteRequest& WithApplicationIdentifier(const Aws::String& value) { SetApplicationIdentifier(value); return *this;} /** *

The ID of the application within which the route is being created.

*/ inline CreateRouteRequest& WithApplicationIdentifier(Aws::String&& value) { SetApplicationIdentifier(std::move(value)); return *this;} /** *

The ID of the application within which the route is being created.

*/ inline CreateRouteRequest& WithApplicationIdentifier(const char* value) { SetApplicationIdentifier(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ inline CreateRouteRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ inline CreateRouteRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request.

*/ inline CreateRouteRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Configuration for the default route type.

*/ inline const DefaultRouteInput& GetDefaultRoute() const{ return m_defaultRoute; } /** *

Configuration for the default route type.

*/ inline bool DefaultRouteHasBeenSet() const { return m_defaultRouteHasBeenSet; } /** *

Configuration for the default route type.

*/ inline void SetDefaultRoute(const DefaultRouteInput& value) { m_defaultRouteHasBeenSet = true; m_defaultRoute = value; } /** *

Configuration for the default route type.

*/ inline void SetDefaultRoute(DefaultRouteInput&& value) { m_defaultRouteHasBeenSet = true; m_defaultRoute = std::move(value); } /** *

Configuration for the default route type.

*/ inline CreateRouteRequest& WithDefaultRoute(const DefaultRouteInput& value) { SetDefaultRoute(value); return *this;} /** *

Configuration for the default route type.

*/ inline CreateRouteRequest& WithDefaultRoute(DefaultRouteInput&& value) { SetDefaultRoute(std::move(value)); return *this;} /** *

The ID of the environment in which the route is created.

*/ inline const Aws::String& GetEnvironmentIdentifier() const{ return m_environmentIdentifier; } /** *

The ID of the environment in which the route is created.

*/ inline bool EnvironmentIdentifierHasBeenSet() const { return m_environmentIdentifierHasBeenSet; } /** *

The ID of the environment in which the route is created.

*/ inline void SetEnvironmentIdentifier(const Aws::String& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = value; } /** *

The ID of the environment in which the route is created.

*/ inline void SetEnvironmentIdentifier(Aws::String&& value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier = std::move(value); } /** *

The ID of the environment in which the route is created.

*/ inline void SetEnvironmentIdentifier(const char* value) { m_environmentIdentifierHasBeenSet = true; m_environmentIdentifier.assign(value); } /** *

The ID of the environment in which the route is created.

*/ inline CreateRouteRequest& WithEnvironmentIdentifier(const Aws::String& value) { SetEnvironmentIdentifier(value); return *this;} /** *

The ID of the environment in which the route is created.

*/ inline CreateRouteRequest& WithEnvironmentIdentifier(Aws::String&& value) { SetEnvironmentIdentifier(std::move(value)); return *this;} /** *

The ID of the environment in which the route is created.

*/ inline CreateRouteRequest& WithEnvironmentIdentifier(const char* value) { SetEnvironmentIdentifier(value); return *this;} /** *

The route type of the route. DEFAULT indicates that all traffic * that does not match another route is forwarded to the default route. * Applications must have a default route before any other routes can be created. * URI_PATH indicates a route that is based on a URI path.

*/ inline const RouteType& GetRouteType() const{ return m_routeType; } /** *

The route type of the route. DEFAULT indicates that all traffic * that does not match another route is forwarded to the default route. * Applications must have a default route before any other routes can be created. * URI_PATH indicates a route that is based on a URI path.

*/ inline bool RouteTypeHasBeenSet() const { return m_routeTypeHasBeenSet; } /** *

The route type of the route. DEFAULT indicates that all traffic * that does not match another route is forwarded to the default route. * Applications must have a default route before any other routes can be created. * URI_PATH indicates a route that is based on a URI path.

*/ inline void SetRouteType(const RouteType& value) { m_routeTypeHasBeenSet = true; m_routeType = value; } /** *

The route type of the route. DEFAULT indicates that all traffic * that does not match another route is forwarded to the default route. * Applications must have a default route before any other routes can be created. * URI_PATH indicates a route that is based on a URI path.

*/ inline void SetRouteType(RouteType&& value) { m_routeTypeHasBeenSet = true; m_routeType = std::move(value); } /** *

The route type of the route. DEFAULT indicates that all traffic * that does not match another route is forwarded to the default route. * Applications must have a default route before any other routes can be created. * URI_PATH indicates a route that is based on a URI path.

*/ inline CreateRouteRequest& WithRouteType(const RouteType& value) { SetRouteType(value); return *this;} /** *

The route type of the route. DEFAULT indicates that all traffic * that does not match another route is forwarded to the default route. * Applications must have a default route before any other routes can be created. * URI_PATH indicates a route that is based on a URI path.

*/ inline CreateRouteRequest& WithRouteType(RouteType&& value) { SetRouteType(std::move(value)); return *this;} /** *

The ID of the service in which the route is created. Traffic that matches * this route is forwarded to this service.

*/ inline const Aws::String& GetServiceIdentifier() const{ return m_serviceIdentifier; } /** *

The ID of the service in which the route is created. Traffic that matches * this route is forwarded to this service.

*/ inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; } /** *

The ID of the service in which the route is created. Traffic that matches * this route is forwarded to this service.

*/ inline void SetServiceIdentifier(const Aws::String& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = value; } /** *

The ID of the service in which the route is created. Traffic that matches * this route is forwarded to this service.

*/ inline void SetServiceIdentifier(Aws::String&& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = std::move(value); } /** *

The ID of the service in which the route is created. Traffic that matches * this route is forwarded to this service.

*/ inline void SetServiceIdentifier(const char* value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier.assign(value); } /** *

The ID of the service in which the route is created. Traffic that matches * this route is forwarded to this service.

*/ inline CreateRouteRequest& WithServiceIdentifier(const Aws::String& value) { SetServiceIdentifier(value); return *this;} /** *

The ID of the service in which the route is created. Traffic that matches * this route is forwarded to this service.

*/ inline CreateRouteRequest& WithServiceIdentifier(Aws::String&& value) { SetServiceIdentifier(std::move(value)); return *this;} /** *

The ID of the service in which the route is created. Traffic that matches * this route is forwarded to this service.

*/ inline CreateRouteRequest& WithServiceIdentifier(const char* value) { SetServiceIdentifier(value); return *this;} /** *

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

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

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

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

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

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

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

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

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

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

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

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

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

*/ inline CreateRouteRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

*/ inline CreateRouteRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

*/ inline CreateRouteRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

*/ inline CreateRouteRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

*/ inline CreateRouteRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

*/ inline CreateRouteRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags to assign to the route. A tag is a label that you assign to an * Amazon Web Services resource. Each tag consists of a key-value pair..

*/ inline CreateRouteRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The configuration for the URI path route type.

*/ inline const UriPathRouteInput& GetUriPathRoute() const{ return m_uriPathRoute; } /** *

The configuration for the URI path route type.

*/ inline bool UriPathRouteHasBeenSet() const { return m_uriPathRouteHasBeenSet; } /** *

The configuration for the URI path route type.

*/ inline void SetUriPathRoute(const UriPathRouteInput& value) { m_uriPathRouteHasBeenSet = true; m_uriPathRoute = value; } /** *

The configuration for the URI path route type.

*/ inline void SetUriPathRoute(UriPathRouteInput&& value) { m_uriPathRouteHasBeenSet = true; m_uriPathRoute = std::move(value); } /** *

The configuration for the URI path route type.

*/ inline CreateRouteRequest& WithUriPathRoute(const UriPathRouteInput& value) { SetUriPathRoute(value); return *this;} /** *

The configuration for the URI path route type.

*/ inline CreateRouteRequest& WithUriPathRoute(UriPathRouteInput&& value) { SetUriPathRoute(std::move(value)); return *this;} private: Aws::String m_applicationIdentifier; bool m_applicationIdentifierHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; DefaultRouteInput m_defaultRoute; bool m_defaultRouteHasBeenSet = false; Aws::String m_environmentIdentifier; bool m_environmentIdentifierHasBeenSet = false; RouteType m_routeType; bool m_routeTypeHasBeenSet = false; Aws::String m_serviceIdentifier; bool m_serviceIdentifierHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; UriPathRouteInput m_uriPathRoute; bool m_uriPathRouteHasBeenSet = false; }; } // namespace Model } // namespace MigrationHubRefactorSpaces } // namespace Aws