/** * 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 WorkSpaces { namespace Model { /** */ class CreateConnectionAliasRequest : public WorkSpacesRequest { public: AWS_WORKSPACES_API CreateConnectionAliasRequest(); // 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 "CreateConnectionAlias"; } AWS_WORKSPACES_API Aws::String SerializePayload() const override; AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A connection string in the form of a fully qualified domain name (FQDN), such * as www.example.com.

After you create a * connection string, it is always associated to your Amazon Web Services account. * You cannot recreate the same connection string with a different account, even if * you delete all instances of it from the original account. The connection string * is globally reserved for your account.

*/ inline const Aws::String& GetConnectionString() const{ return m_connectionString; } /** *

A connection string in the form of a fully qualified domain name (FQDN), such * as www.example.com.

After you create a * connection string, it is always associated to your Amazon Web Services account. * You cannot recreate the same connection string with a different account, even if * you delete all instances of it from the original account. The connection string * is globally reserved for your account.

*/ inline bool ConnectionStringHasBeenSet() const { return m_connectionStringHasBeenSet; } /** *

A connection string in the form of a fully qualified domain name (FQDN), such * as www.example.com.

After you create a * connection string, it is always associated to your Amazon Web Services account. * You cannot recreate the same connection string with a different account, even if * you delete all instances of it from the original account. The connection string * is globally reserved for your account.

*/ inline void SetConnectionString(const Aws::String& value) { m_connectionStringHasBeenSet = true; m_connectionString = value; } /** *

A connection string in the form of a fully qualified domain name (FQDN), such * as www.example.com.

After you create a * connection string, it is always associated to your Amazon Web Services account. * You cannot recreate the same connection string with a different account, even if * you delete all instances of it from the original account. The connection string * is globally reserved for your account.

*/ inline void SetConnectionString(Aws::String&& value) { m_connectionStringHasBeenSet = true; m_connectionString = std::move(value); } /** *

A connection string in the form of a fully qualified domain name (FQDN), such * as www.example.com.

After you create a * connection string, it is always associated to your Amazon Web Services account. * You cannot recreate the same connection string with a different account, even if * you delete all instances of it from the original account. The connection string * is globally reserved for your account.

*/ inline void SetConnectionString(const char* value) { m_connectionStringHasBeenSet = true; m_connectionString.assign(value); } /** *

A connection string in the form of a fully qualified domain name (FQDN), such * as www.example.com.

After you create a * connection string, it is always associated to your Amazon Web Services account. * You cannot recreate the same connection string with a different account, even if * you delete all instances of it from the original account. The connection string * is globally reserved for your account.

*/ inline CreateConnectionAliasRequest& WithConnectionString(const Aws::String& value) { SetConnectionString(value); return *this;} /** *

A connection string in the form of a fully qualified domain name (FQDN), such * as www.example.com.

After you create a * connection string, it is always associated to your Amazon Web Services account. * You cannot recreate the same connection string with a different account, even if * you delete all instances of it from the original account. The connection string * is globally reserved for your account.

*/ inline CreateConnectionAliasRequest& WithConnectionString(Aws::String&& value) { SetConnectionString(std::move(value)); return *this;} /** *

A connection string in the form of a fully qualified domain name (FQDN), such * as www.example.com.

After you create a * connection string, it is always associated to your Amazon Web Services account. * You cannot recreate the same connection string with a different account, even if * you delete all instances of it from the original account. The connection string * is globally reserved for your account.

*/ inline CreateConnectionAliasRequest& WithConnectionString(const char* value) { SetConnectionString(value); return *this;} /** *

The tags to associate with the connection alias.

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

The tags to associate with the connection alias.

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

The tags to associate with the connection alias.

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

The tags to associate with the connection alias.

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

The tags to associate with the connection alias.

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

The tags to associate with the connection alias.

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

The tags to associate with the connection alias.

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

The tags to associate with the connection alias.

*/ inline CreateConnectionAliasRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_connectionString; bool m_connectionStringHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace WorkSpaces } // namespace Aws