/** * 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 namespace Aws { namespace NetworkManager { namespace Model { /** */ class CreateDeviceRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API CreateDeviceRequest(); // 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 "CreateDevice"; } 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 CreateDeviceRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the global network.

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

The ID of the global network.

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

The Amazon Web Services location of the device, if applicable. For an * on-premises device, you can omit this parameter.

*/ inline const AWSLocation& GetAWSLocation() const{ return m_aWSLocation; } /** *

The Amazon Web Services location of the device, if applicable. For an * on-premises device, you can omit this parameter.

*/ inline bool AWSLocationHasBeenSet() const { return m_aWSLocationHasBeenSet; } /** *

The Amazon Web Services location of the device, if applicable. For an * on-premises device, you can omit this parameter.

*/ inline void SetAWSLocation(const AWSLocation& value) { m_aWSLocationHasBeenSet = true; m_aWSLocation = value; } /** *

The Amazon Web Services location of the device, if applicable. For an * on-premises device, you can omit this parameter.

*/ inline void SetAWSLocation(AWSLocation&& value) { m_aWSLocationHasBeenSet = true; m_aWSLocation = std::move(value); } /** *

The Amazon Web Services location of the device, if applicable. For an * on-premises device, you can omit this parameter.

*/ inline CreateDeviceRequest& WithAWSLocation(const AWSLocation& value) { SetAWSLocation(value); return *this;} /** *

The Amazon Web Services location of the device, if applicable. For an * on-premises device, you can omit this parameter.

*/ inline CreateDeviceRequest& WithAWSLocation(AWSLocation&& value) { SetAWSLocation(std::move(value)); return *this;} /** *

A description of the device.

Constraints: Maximum length of 256 * characters.

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

A description of the device.

Constraints: Maximum length of 256 * characters.

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

A description of the device.

Constraints: Maximum length of 256 * characters.

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

A description of the device.

Constraints: Maximum length of 256 * characters.

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

A description of the device.

Constraints: Maximum length of 256 * characters.

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

A description of the device.

Constraints: Maximum length of 256 * characters.

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

A description of the device.

Constraints: Maximum length of 256 * characters.

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

A description of the device.

Constraints: Maximum length of 256 * characters.

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

The type of the device.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of the device.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the device.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the device.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the device.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of the device.

*/ inline CreateDeviceRequest& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of the device.

*/ inline CreateDeviceRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of the device.

*/ inline CreateDeviceRequest& WithType(const char* value) { SetType(value); return *this;} /** *

The vendor of the device.

Constraints: Maximum length of 128 * characters.

*/ inline const Aws::String& GetVendor() const{ return m_vendor; } /** *

The vendor of the device.

Constraints: Maximum length of 128 * characters.

*/ inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; } /** *

The vendor of the device.

Constraints: Maximum length of 128 * characters.

*/ inline void SetVendor(const Aws::String& value) { m_vendorHasBeenSet = true; m_vendor = value; } /** *

The vendor of the device.

Constraints: Maximum length of 128 * characters.

*/ inline void SetVendor(Aws::String&& value) { m_vendorHasBeenSet = true; m_vendor = std::move(value); } /** *

The vendor of the device.

Constraints: Maximum length of 128 * characters.

*/ inline void SetVendor(const char* value) { m_vendorHasBeenSet = true; m_vendor.assign(value); } /** *

The vendor of the device.

Constraints: Maximum length of 128 * characters.

*/ inline CreateDeviceRequest& WithVendor(const Aws::String& value) { SetVendor(value); return *this;} /** *

The vendor of the device.

Constraints: Maximum length of 128 * characters.

*/ inline CreateDeviceRequest& WithVendor(Aws::String&& value) { SetVendor(std::move(value)); return *this;} /** *

The vendor of the device.

Constraints: Maximum length of 128 * characters.

*/ inline CreateDeviceRequest& WithVendor(const char* value) { SetVendor(value); return *this;} /** *

The model of the device.

Constraints: Maximum length of 128 * characters.

*/ inline const Aws::String& GetModel() const{ return m_model; } /** *

The model of the device.

Constraints: Maximum length of 128 * characters.

*/ inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; } /** *

The model of the device.

Constraints: Maximum length of 128 * characters.

*/ inline void SetModel(const Aws::String& value) { m_modelHasBeenSet = true; m_model = value; } /** *

The model of the device.

Constraints: Maximum length of 128 * characters.

*/ inline void SetModel(Aws::String&& value) { m_modelHasBeenSet = true; m_model = std::move(value); } /** *

The model of the device.

Constraints: Maximum length of 128 * characters.

*/ inline void SetModel(const char* value) { m_modelHasBeenSet = true; m_model.assign(value); } /** *

The model of the device.

Constraints: Maximum length of 128 * characters.

*/ inline CreateDeviceRequest& WithModel(const Aws::String& value) { SetModel(value); return *this;} /** *

The model of the device.

Constraints: Maximum length of 128 * characters.

*/ inline CreateDeviceRequest& WithModel(Aws::String&& value) { SetModel(std::move(value)); return *this;} /** *

The model of the device.

Constraints: Maximum length of 128 * characters.

*/ inline CreateDeviceRequest& WithModel(const char* value) { SetModel(value); return *this;} /** *

The serial number of the device.

Constraints: Maximum length of 128 * characters.

*/ inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; } /** *

The serial number of the device.

Constraints: Maximum length of 128 * characters.

*/ inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; } /** *

The serial number of the device.

Constraints: Maximum length of 128 * characters.

*/ inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; } /** *

The serial number of the device.

Constraints: Maximum length of 128 * characters.

*/ inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::move(value); } /** *

The serial number of the device.

Constraints: Maximum length of 128 * characters.

*/ inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); } /** *

The serial number of the device.

Constraints: Maximum length of 128 * characters.

*/ inline CreateDeviceRequest& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;} /** *

The serial number of the device.

Constraints: Maximum length of 128 * characters.

*/ inline CreateDeviceRequest& WithSerialNumber(Aws::String&& value) { SetSerialNumber(std::move(value)); return *this;} /** *

The serial number of the device.

Constraints: Maximum length of 128 * characters.

*/ inline CreateDeviceRequest& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;} /** *

The location of the device.

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

The location of the device.

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

The location of the device.

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

The location of the device.

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

The location of the device.

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

The location of the device.

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

The ID of the site.

*/ inline const Aws::String& GetSiteId() const{ return m_siteId; } /** *

The ID of the site.

*/ inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; } /** *

The ID of the site.

*/ inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; } /** *

The ID of the site.

*/ inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); } /** *

The ID of the site.

*/ inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); } /** *

The ID of the site.

*/ inline CreateDeviceRequest& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;} /** *

The ID of the site.

*/ inline CreateDeviceRequest& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;} /** *

The ID of the site.

*/ inline CreateDeviceRequest& WithSiteId(const char* value) { SetSiteId(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 CreateDeviceRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

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

The tags to apply to the resource during creation.

*/ inline CreateDeviceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; AWSLocation m_aWSLocation; bool m_aWSLocationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_vendor; bool m_vendorHasBeenSet = false; Aws::String m_model; bool m_modelHasBeenSet = false; Aws::String m_serialNumber; bool m_serialNumberHasBeenSet = false; Location m_location; bool m_locationHasBeenSet = false; Aws::String m_siteId; bool m_siteIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws