/** * 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 MigrationHub { namespace Model { /** */ class PutResourceAttributesRequest : public MigrationHubRequest { public: AWS_MIGRATIONHUB_API PutResourceAttributesRequest(); // 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 "PutResourceAttributes"; } AWS_MIGRATIONHUB_API Aws::String SerializePayload() const override; AWS_MIGRATIONHUB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the ProgressUpdateStream.

*/ inline const Aws::String& GetProgressUpdateStream() const{ return m_progressUpdateStream; } /** *

The name of the ProgressUpdateStream.

*/ inline bool ProgressUpdateStreamHasBeenSet() const { return m_progressUpdateStreamHasBeenSet; } /** *

The name of the ProgressUpdateStream.

*/ inline void SetProgressUpdateStream(const Aws::String& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = value; } /** *

The name of the ProgressUpdateStream.

*/ inline void SetProgressUpdateStream(Aws::String&& value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream = std::move(value); } /** *

The name of the ProgressUpdateStream.

*/ inline void SetProgressUpdateStream(const char* value) { m_progressUpdateStreamHasBeenSet = true; m_progressUpdateStream.assign(value); } /** *

The name of the ProgressUpdateStream.

*/ inline PutResourceAttributesRequest& WithProgressUpdateStream(const Aws::String& value) { SetProgressUpdateStream(value); return *this;} /** *

The name of the ProgressUpdateStream.

*/ inline PutResourceAttributesRequest& WithProgressUpdateStream(Aws::String&& value) { SetProgressUpdateStream(std::move(value)); return *this;} /** *

The name of the ProgressUpdateStream.

*/ inline PutResourceAttributesRequest& WithProgressUpdateStream(const char* value) { SetProgressUpdateStream(value); return *this;} /** *

Unique identifier that references the migration task. Do not store * personal data in this field.

*/ inline const Aws::String& GetMigrationTaskName() const{ return m_migrationTaskName; } /** *

Unique identifier that references the migration task. Do not store * personal data in this field.

*/ inline bool MigrationTaskNameHasBeenSet() const { return m_migrationTaskNameHasBeenSet; } /** *

Unique identifier that references the migration task. Do not store * personal data in this field.

*/ inline void SetMigrationTaskName(const Aws::String& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = value; } /** *

Unique identifier that references the migration task. Do not store * personal data in this field.

*/ inline void SetMigrationTaskName(Aws::String&& value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName = std::move(value); } /** *

Unique identifier that references the migration task. Do not store * personal data in this field.

*/ inline void SetMigrationTaskName(const char* value) { m_migrationTaskNameHasBeenSet = true; m_migrationTaskName.assign(value); } /** *

Unique identifier that references the migration task. Do not store * personal data in this field.

*/ inline PutResourceAttributesRequest& WithMigrationTaskName(const Aws::String& value) { SetMigrationTaskName(value); return *this;} /** *

Unique identifier that references the migration task. Do not store * personal data in this field.

*/ inline PutResourceAttributesRequest& WithMigrationTaskName(Aws::String&& value) { SetMigrationTaskName(std::move(value)); return *this;} /** *

Unique identifier that references the migration task. Do not store * personal data in this field.

*/ inline PutResourceAttributesRequest& WithMigrationTaskName(const char* value) { SetMigrationTaskName(value); return *this;} /** *

Information about the resource that is being migrated. This data will be used * to map the task to a resource in the Application Discovery Service * repository.

Takes the object array of * ResourceAttribute where the Type field is reserved for * the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | * VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | * MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up * to 256 characters.

  • If any "VM" related * value is set for a ResourceAttribute object, it is required that * VM_MANAGER_ID, as a minimum, is always set. If * VM_MANAGER_ID is not set, then all "VM" fields will be discarded * and "VM" fields will not be used for matching the migration task to a server in * Application Discovery Service repository. See the Example * section below for a use case of specifying "VM" related values.

  • *

    If a server you are trying to match has multiple IP or MAC addresses, you * should provide as many as you know in separate type/value pairs passed to the * ResourceAttributeList parameter to maximize the chances of * matching.

*/ inline const Aws::Vector& GetResourceAttributeList() const{ return m_resourceAttributeList; } /** *

Information about the resource that is being migrated. This data will be used * to map the task to a resource in the Application Discovery Service * repository.

Takes the object array of * ResourceAttribute where the Type field is reserved for * the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | * VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | * MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up * to 256 characters.

  • If any "VM" related * value is set for a ResourceAttribute object, it is required that * VM_MANAGER_ID, as a minimum, is always set. If * VM_MANAGER_ID is not set, then all "VM" fields will be discarded * and "VM" fields will not be used for matching the migration task to a server in * Application Discovery Service repository. See the Example * section below for a use case of specifying "VM" related values.

  • *

    If a server you are trying to match has multiple IP or MAC addresses, you * should provide as many as you know in separate type/value pairs passed to the * ResourceAttributeList parameter to maximize the chances of * matching.

*/ inline bool ResourceAttributeListHasBeenSet() const { return m_resourceAttributeListHasBeenSet; } /** *

Information about the resource that is being migrated. This data will be used * to map the task to a resource in the Application Discovery Service * repository.

Takes the object array of * ResourceAttribute where the Type field is reserved for * the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | * VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | * MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up * to 256 characters.

  • If any "VM" related * value is set for a ResourceAttribute object, it is required that * VM_MANAGER_ID, as a minimum, is always set. If * VM_MANAGER_ID is not set, then all "VM" fields will be discarded * and "VM" fields will not be used for matching the migration task to a server in * Application Discovery Service repository. See the Example * section below for a use case of specifying "VM" related values.

  • *

    If a server you are trying to match has multiple IP or MAC addresses, you * should provide as many as you know in separate type/value pairs passed to the * ResourceAttributeList parameter to maximize the chances of * matching.

*/ inline void SetResourceAttributeList(const Aws::Vector& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList = value; } /** *

Information about the resource that is being migrated. This data will be used * to map the task to a resource in the Application Discovery Service * repository.

Takes the object array of * ResourceAttribute where the Type field is reserved for * the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | * VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | * MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up * to 256 characters.

  • If any "VM" related * value is set for a ResourceAttribute object, it is required that * VM_MANAGER_ID, as a minimum, is always set. If * VM_MANAGER_ID is not set, then all "VM" fields will be discarded * and "VM" fields will not be used for matching the migration task to a server in * Application Discovery Service repository. See the Example * section below for a use case of specifying "VM" related values.

  • *

    If a server you are trying to match has multiple IP or MAC addresses, you * should provide as many as you know in separate type/value pairs passed to the * ResourceAttributeList parameter to maximize the chances of * matching.

*/ inline void SetResourceAttributeList(Aws::Vector&& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList = std::move(value); } /** *

Information about the resource that is being migrated. This data will be used * to map the task to a resource in the Application Discovery Service * repository.

Takes the object array of * ResourceAttribute where the Type field is reserved for * the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | * VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | * MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up * to 256 characters.

  • If any "VM" related * value is set for a ResourceAttribute object, it is required that * VM_MANAGER_ID, as a minimum, is always set. If * VM_MANAGER_ID is not set, then all "VM" fields will be discarded * and "VM" fields will not be used for matching the migration task to a server in * Application Discovery Service repository. See the Example * section below for a use case of specifying "VM" related values.

  • *

    If a server you are trying to match has multiple IP or MAC addresses, you * should provide as many as you know in separate type/value pairs passed to the * ResourceAttributeList parameter to maximize the chances of * matching.

*/ inline PutResourceAttributesRequest& WithResourceAttributeList(const Aws::Vector& value) { SetResourceAttributeList(value); return *this;} /** *

Information about the resource that is being migrated. This data will be used * to map the task to a resource in the Application Discovery Service * repository.

Takes the object array of * ResourceAttribute where the Type field is reserved for * the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | * VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | * MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up * to 256 characters.

  • If any "VM" related * value is set for a ResourceAttribute object, it is required that * VM_MANAGER_ID, as a minimum, is always set. If * VM_MANAGER_ID is not set, then all "VM" fields will be discarded * and "VM" fields will not be used for matching the migration task to a server in * Application Discovery Service repository. See the Example * section below for a use case of specifying "VM" related values.

  • *

    If a server you are trying to match has multiple IP or MAC addresses, you * should provide as many as you know in separate type/value pairs passed to the * ResourceAttributeList parameter to maximize the chances of * matching.

*/ inline PutResourceAttributesRequest& WithResourceAttributeList(Aws::Vector&& value) { SetResourceAttributeList(std::move(value)); return *this;} /** *

Information about the resource that is being migrated. This data will be used * to map the task to a resource in the Application Discovery Service * repository.

Takes the object array of * ResourceAttribute where the Type field is reserved for * the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | * VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | * MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up * to 256 characters.

  • If any "VM" related * value is set for a ResourceAttribute object, it is required that * VM_MANAGER_ID, as a minimum, is always set. If * VM_MANAGER_ID is not set, then all "VM" fields will be discarded * and "VM" fields will not be used for matching the migration task to a server in * Application Discovery Service repository. See the Example * section below for a use case of specifying "VM" related values.

  • *

    If a server you are trying to match has multiple IP or MAC addresses, you * should provide as many as you know in separate type/value pairs passed to the * ResourceAttributeList parameter to maximize the chances of * matching.

*/ inline PutResourceAttributesRequest& AddResourceAttributeList(const ResourceAttribute& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList.push_back(value); return *this; } /** *

Information about the resource that is being migrated. This data will be used * to map the task to a resource in the Application Discovery Service * repository.

Takes the object array of * ResourceAttribute where the Type field is reserved for * the following values: IPV4_ADDRESS | IPV6_ADDRESS | MAC_ADDRESS | FQDN | * VM_MANAGER_ID | VM_MANAGED_OBJECT_REFERENCE | VM_NAME | VM_PATH | BIOS_ID | * MOTHERBOARD_SERIAL_NUMBER where the identifying value can be a string up * to 256 characters.

  • If any "VM" related * value is set for a ResourceAttribute object, it is required that * VM_MANAGER_ID, as a minimum, is always set. If * VM_MANAGER_ID is not set, then all "VM" fields will be discarded * and "VM" fields will not be used for matching the migration task to a server in * Application Discovery Service repository. See the Example * section below for a use case of specifying "VM" related values.

  • *

    If a server you are trying to match has multiple IP or MAC addresses, you * should provide as many as you know in separate type/value pairs passed to the * ResourceAttributeList parameter to maximize the chances of * matching.

*/ inline PutResourceAttributesRequest& AddResourceAttributeList(ResourceAttribute&& value) { m_resourceAttributeListHasBeenSet = true; m_resourceAttributeList.push_back(std::move(value)); return *this; } /** *

Optional boolean flag to indicate whether any effect should take place. Used * to test if the caller has permission to make the call.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Optional boolean flag to indicate whether any effect should take place. Used * to test if the caller has permission to make the call.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Optional boolean flag to indicate whether any effect should take place. Used * to test if the caller has permission to make the call.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Optional boolean flag to indicate whether any effect should take place. Used * to test if the caller has permission to make the call.

*/ inline PutResourceAttributesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_progressUpdateStream; bool m_progressUpdateStreamHasBeenSet = false; Aws::String m_migrationTaskName; bool m_migrationTaskNameHasBeenSet = false; Aws::Vector m_resourceAttributeList; bool m_resourceAttributeListHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace MigrationHub } // namespace Aws