Struct aws_sdk_migrationhub::operation::put_resource_attributes::builders::PutResourceAttributesInputBuilder
source · #[non_exhaustive]pub struct PutResourceAttributesInputBuilder { /* private fields */ }Expand description
A builder for PutResourceAttributesInput.
Implementations§
source§impl PutResourceAttributesInputBuilder
impl PutResourceAttributesInputBuilder
sourcepub fn progress_update_stream(self, input: impl Into<String>) -> Self
pub fn progress_update_stream(self, input: impl Into<String>) -> Self
The name of the ProgressUpdateStream.
This field is required.sourcepub fn set_progress_update_stream(self, input: Option<String>) -> Self
pub fn set_progress_update_stream(self, input: Option<String>) -> Self
The name of the ProgressUpdateStream.
sourcepub fn get_progress_update_stream(&self) -> &Option<String>
pub fn get_progress_update_stream(&self) -> &Option<String>
The name of the ProgressUpdateStream.
sourcepub fn migration_task_name(self, input: impl Into<String>) -> Self
pub fn migration_task_name(self, input: impl Into<String>) -> Self
Unique identifier that references the migration task. Do not store personal data in this field.
This field is required.sourcepub fn set_migration_task_name(self, input: Option<String>) -> Self
pub fn set_migration_task_name(self, input: Option<String>) -> Self
Unique identifier that references the migration task. Do not store personal data in this field.
sourcepub fn get_migration_task_name(&self) -> &Option<String>
pub fn get_migration_task_name(&self) -> &Option<String>
Unique identifier that references the migration task. Do not store personal data in this field.
sourcepub fn resource_attribute_list(self, input: ResourceAttribute) -> Self
pub fn resource_attribute_list(self, input: ResourceAttribute) -> Self
Appends an item to resource_attribute_list.
To override the contents of this collection use set_resource_attribute_list.
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
ResourceAttributeobject, it is required thatVM_MANAGER_ID, as a minimum, is always set. IfVM_MANAGER_IDis 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
ResourceAttributeListparameter to maximize the chances of matching.
sourcepub fn set_resource_attribute_list(
self,
input: Option<Vec<ResourceAttribute>>
) -> Self
pub fn set_resource_attribute_list( self, input: Option<Vec<ResourceAttribute>> ) -> Self
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
ResourceAttributeobject, it is required thatVM_MANAGER_ID, as a minimum, is always set. IfVM_MANAGER_IDis 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
ResourceAttributeListparameter to maximize the chances of matching.
sourcepub fn get_resource_attribute_list(&self) -> &Option<Vec<ResourceAttribute>>
pub fn get_resource_attribute_list(&self) -> &Option<Vec<ResourceAttribute>>
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
ResourceAttributeobject, it is required thatVM_MANAGER_ID, as a minimum, is always set. IfVM_MANAGER_IDis 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
ResourceAttributeListparameter to maximize the chances of matching.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.
sourcepub fn build(self) -> Result<PutResourceAttributesInput, BuildError>
pub fn build(self) -> Result<PutResourceAttributesInput, BuildError>
Consumes the builder and constructs a PutResourceAttributesInput.
source§impl PutResourceAttributesInputBuilder
impl PutResourceAttributesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutResourceAttributesOutput, SdkError<PutResourceAttributesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutResourceAttributesOutput, SdkError<PutResourceAttributesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutResourceAttributesInputBuilder
impl Clone for PutResourceAttributesInputBuilder
source§fn clone(&self) -> PutResourceAttributesInputBuilder
fn clone(&self) -> PutResourceAttributesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for PutResourceAttributesInputBuilder
impl Default for PutResourceAttributesInputBuilder
source§fn default() -> PutResourceAttributesInputBuilder
fn default() -> PutResourceAttributesInputBuilder
source§impl PartialEq for PutResourceAttributesInputBuilder
impl PartialEq for PutResourceAttributesInputBuilder
source§fn eq(&self, other: &PutResourceAttributesInputBuilder) -> bool
fn eq(&self, other: &PutResourceAttributesInputBuilder) -> bool
self and other values to be equal, and is used
by ==.