/** * 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 namespace Aws { namespace NetworkManager { namespace Model { /** */ class CreateSiteRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API CreateSiteRequest(); // 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 "CreateSite"; } AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override; /** *

The ID of the global network.

*/ inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; } /** *

The ID of the global network.

*/ inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); } /** *

The ID of the global network.

*/ inline CreateSiteRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the global network.

*/ inline CreateSiteRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;} /** *

The ID of the global network.

*/ inline CreateSiteRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;} /** *

A description of your site.

Constraints: Maximum length of 256 * characters.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of your site.

Constraints: Maximum length of 256 * characters.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of your site.

Constraints: Maximum length of 256 * characters.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of your site.

Constraints: Maximum length of 256 * characters.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of your site.

Constraints: Maximum length of 256 * characters.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of your site.

Constraints: Maximum length of 256 * characters.

*/ inline CreateSiteRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of your site.

Constraints: Maximum length of 256 * characters.

*/ inline CreateSiteRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of your site.

Constraints: Maximum length of 256 * characters.

*/ inline CreateSiteRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The site location. This information is used for visualization in the Network * Manager console. If you specify the address, the latitude and longitude are * automatically calculated.

  • Address: The physical * address of the site.

  • Latitude: The latitude of * the site.

  • Longitude: The longitude of the * site.

*/ inline const Location& GetLocation() const{ return m_location; } /** *

The site location. This information is used for visualization in the Network * Manager console. If you specify the address, the latitude and longitude are * automatically calculated.

  • Address: The physical * address of the site.

  • Latitude: The latitude of * the site.

  • Longitude: The longitude of the * site.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The site location. This information is used for visualization in the Network * Manager console. If you specify the address, the latitude and longitude are * automatically calculated.

  • Address: The physical * address of the site.

  • Latitude: The latitude of * the site.

  • Longitude: The longitude of the * site.

*/ inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The site location. This information is used for visualization in the Network * Manager console. If you specify the address, the latitude and longitude are * automatically calculated.

  • Address: The physical * address of the site.

  • Latitude: The latitude of * the site.

  • Longitude: The longitude of the * site.

*/ inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The site location. This information is used for visualization in the Network * Manager console. If you specify the address, the latitude and longitude are * automatically calculated.

  • Address: The physical * address of the site.

  • Latitude: The latitude of * the site.

  • Longitude: The longitude of the * site.

*/ inline CreateSiteRequest& WithLocation(const Location& value) { SetLocation(value); return *this;} /** *

The site location. This information is used for visualization in the Network * Manager console. If you specify the address, the latitude and longitude are * automatically calculated.

  • Address: The physical * address of the site.

  • Latitude: The latitude of * the site.

  • Longitude: The longitude of the * site.

*/ inline CreateSiteRequest& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;} /** *

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

*/ inline CreateSiteRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Location m_location; bool m_locationHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws