/** * 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 FSx { namespace Model { /** *

The request object specifying one or more DNS alias names to associate with * an Amazon FSx for Windows File Server file system.

See Also:

AWS * API Reference

*/ class AssociateFileSystemAliasesRequest : public FSxRequest { public: AWS_FSX_API AssociateFileSystemAliasesRequest(); // 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 "AssociateFileSystemAliases"; } AWS_FSX_API Aws::String SerializePayload() const override; AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } inline AssociateFileSystemAliasesRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} inline AssociateFileSystemAliasesRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} inline AssociateFileSystemAliasesRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

Specifies the file system with which you want to associate one or more DNS * aliases.

*/ inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; } /** *

Specifies the file system with which you want to associate one or more DNS * aliases.

*/ inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; } /** *

Specifies the file system with which you want to associate one or more DNS * aliases.

*/ inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; } /** *

Specifies the file system with which you want to associate one or more DNS * aliases.

*/ inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); } /** *

Specifies the file system with which you want to associate one or more DNS * aliases.

*/ inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); } /** *

Specifies the file system with which you want to associate one or more DNS * aliases.

*/ inline AssociateFileSystemAliasesRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;} /** *

Specifies the file system with which you want to associate one or more DNS * aliases.

*/ inline AssociateFileSystemAliasesRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;} /** *

Specifies the file system with which you want to associate one or more DNS * aliases.

*/ inline AssociateFileSystemAliasesRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;} /** *

An array of one or more DNS alias names to associate with the file system. * The alias name has to comply with the following formatting requirements:

*
  • Formatted as a fully-qualified domain name (FQDN), * hostname.domain , for example, * accounting.corp.example.com.

  • Can contain * alphanumeric characters and the hyphen (-).

  • Cannot start or * end with a hyphen.

  • Can start with a numeric.

*

For DNS alias names, Amazon FSx stores alphabetic characters as lowercase * letters (a-z), regardless of how you specify them: as uppercase letters, * lowercase letters, or the corresponding letters in escape codes.

*/ inline const Aws::Vector& GetAliases() const{ return m_aliases; } /** *

An array of one or more DNS alias names to associate with the file system. * The alias name has to comply with the following formatting requirements:

*
  • Formatted as a fully-qualified domain name (FQDN), * hostname.domain , for example, * accounting.corp.example.com.

  • Can contain * alphanumeric characters and the hyphen (-).

  • Cannot start or * end with a hyphen.

  • Can start with a numeric.

*

For DNS alias names, Amazon FSx stores alphabetic characters as lowercase * letters (a-z), regardless of how you specify them: as uppercase letters, * lowercase letters, or the corresponding letters in escape codes.

*/ inline bool AliasesHasBeenSet() const { return m_aliasesHasBeenSet; } /** *

An array of one or more DNS alias names to associate with the file system. * The alias name has to comply with the following formatting requirements:

*
  • Formatted as a fully-qualified domain name (FQDN), * hostname.domain , for example, * accounting.corp.example.com.

  • Can contain * alphanumeric characters and the hyphen (-).

  • Cannot start or * end with a hyphen.

  • Can start with a numeric.

*

For DNS alias names, Amazon FSx stores alphabetic characters as lowercase * letters (a-z), regardless of how you specify them: as uppercase letters, * lowercase letters, or the corresponding letters in escape codes.

*/ inline void SetAliases(const Aws::Vector& value) { m_aliasesHasBeenSet = true; m_aliases = value; } /** *

An array of one or more DNS alias names to associate with the file system. * The alias name has to comply with the following formatting requirements:

*
  • Formatted as a fully-qualified domain name (FQDN), * hostname.domain , for example, * accounting.corp.example.com.

  • Can contain * alphanumeric characters and the hyphen (-).

  • Cannot start or * end with a hyphen.

  • Can start with a numeric.

*

For DNS alias names, Amazon FSx stores alphabetic characters as lowercase * letters (a-z), regardless of how you specify them: as uppercase letters, * lowercase letters, or the corresponding letters in escape codes.

*/ inline void SetAliases(Aws::Vector&& value) { m_aliasesHasBeenSet = true; m_aliases = std::move(value); } /** *

An array of one or more DNS alias names to associate with the file system. * The alias name has to comply with the following formatting requirements:

*
  • Formatted as a fully-qualified domain name (FQDN), * hostname.domain , for example, * accounting.corp.example.com.

  • Can contain * alphanumeric characters and the hyphen (-).

  • Cannot start or * end with a hyphen.

  • Can start with a numeric.

*

For DNS alias names, Amazon FSx stores alphabetic characters as lowercase * letters (a-z), regardless of how you specify them: as uppercase letters, * lowercase letters, or the corresponding letters in escape codes.

*/ inline AssociateFileSystemAliasesRequest& WithAliases(const Aws::Vector& value) { SetAliases(value); return *this;} /** *

An array of one or more DNS alias names to associate with the file system. * The alias name has to comply with the following formatting requirements:

*
  • Formatted as a fully-qualified domain name (FQDN), * hostname.domain , for example, * accounting.corp.example.com.

  • Can contain * alphanumeric characters and the hyphen (-).

  • Cannot start or * end with a hyphen.

  • Can start with a numeric.

*

For DNS alias names, Amazon FSx stores alphabetic characters as lowercase * letters (a-z), regardless of how you specify them: as uppercase letters, * lowercase letters, or the corresponding letters in escape codes.

*/ inline AssociateFileSystemAliasesRequest& WithAliases(Aws::Vector&& value) { SetAliases(std::move(value)); return *this;} /** *

An array of one or more DNS alias names to associate with the file system. * The alias name has to comply with the following formatting requirements:

*
  • Formatted as a fully-qualified domain name (FQDN), * hostname.domain , for example, * accounting.corp.example.com.

  • Can contain * alphanumeric characters and the hyphen (-).

  • Cannot start or * end with a hyphen.

  • Can start with a numeric.

*

For DNS alias names, Amazon FSx stores alphabetic characters as lowercase * letters (a-z), regardless of how you specify them: as uppercase letters, * lowercase letters, or the corresponding letters in escape codes.

*/ inline AssociateFileSystemAliasesRequest& AddAliases(const Aws::String& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(value); return *this; } /** *

An array of one or more DNS alias names to associate with the file system. * The alias name has to comply with the following formatting requirements:

*
  • Formatted as a fully-qualified domain name (FQDN), * hostname.domain , for example, * accounting.corp.example.com.

  • Can contain * alphanumeric characters and the hyphen (-).

  • Cannot start or * end with a hyphen.

  • Can start with a numeric.

*

For DNS alias names, Amazon FSx stores alphabetic characters as lowercase * letters (a-z), regardless of how you specify them: as uppercase letters, * lowercase letters, or the corresponding letters in escape codes.

*/ inline AssociateFileSystemAliasesRequest& AddAliases(Aws::String&& value) { m_aliasesHasBeenSet = true; m_aliases.push_back(std::move(value)); return *this; } /** *

An array of one or more DNS alias names to associate with the file system. * The alias name has to comply with the following formatting requirements:

*
  • Formatted as a fully-qualified domain name (FQDN), * hostname.domain , for example, * accounting.corp.example.com.

  • Can contain * alphanumeric characters and the hyphen (-).

  • Cannot start or * end with a hyphen.

  • Can start with a numeric.

*

For DNS alias names, Amazon FSx stores alphabetic characters as lowercase * letters (a-z), regardless of how you specify them: as uppercase letters, * lowercase letters, or the corresponding letters in escape codes.

*/ inline AssociateFileSystemAliasesRequest& AddAliases(const char* value) { m_aliasesHasBeenSet = true; m_aliases.push_back(value); return *this; } private: Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::String m_fileSystemId; bool m_fileSystemIdHasBeenSet = false; Aws::Vector m_aliases; bool m_aliasesHasBeenSet = false; }; } // namespace Model } // namespace FSx } // namespace Aws