#[non_exhaustive]pub struct GenerateSshScriptRequest {
pub migration_job: String,
pub vm: String,
pub vm_port: i32,
pub vm_config: Option<VmConfig>,
/* private fields */
}Expand description
Request message for ‘GenerateSshScript’ request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.migration_job: StringName of the migration job resource to generate the SSH script.
vm: StringRequired. Bastion VM Instance name to use or to create.
vm_port: i32The port that will be open on the bastion host.
vm_config: Option<VmConfig>The VM configuration
Implementations§
Source§impl GenerateSshScriptRequest
impl GenerateSshScriptRequest
pub fn new() -> Self
Sourcepub fn set_migration_job<T: Into<String>>(self, v: T) -> Self
pub fn set_migration_job<T: Into<String>>(self, v: T) -> Self
Sets the value of migration_job.
Sourcepub fn set_vm_port<T: Into<i32>>(self, v: T) -> Self
pub fn set_vm_port<T: Into<i32>>(self, v: T) -> Self
Sets the value of vm_port.
Sourcepub fn set_vm_config<T: Into<Option<VmConfig>>>(self, v: T) -> Self
pub fn set_vm_config<T: Into<Option<VmConfig>>>(self, v: T) -> Self
Sets the value of vm_config.
Note that all the setters affecting vm_config are mutually
exclusive.
Sourcepub fn vm_creation_config(&self) -> Option<&Box<VmCreationConfig>>
pub fn vm_creation_config(&self) -> Option<&Box<VmCreationConfig>>
The value of vm_config
if it holds a VmCreationConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_vm_creation_config<T: Into<Box<VmCreationConfig>>>(
self,
v: T,
) -> Self
pub fn set_vm_creation_config<T: Into<Box<VmCreationConfig>>>( self, v: T, ) -> Self
Sets the value of vm_config
to hold a VmCreationConfig.
Note that all the setters affecting vm_config are
mutually exclusive.
Sourcepub fn vm_selection_config(&self) -> Option<&Box<VmSelectionConfig>>
pub fn vm_selection_config(&self) -> Option<&Box<VmSelectionConfig>>
The value of vm_config
if it holds a VmSelectionConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_vm_selection_config<T: Into<Box<VmSelectionConfig>>>(
self,
v: T,
) -> Self
pub fn set_vm_selection_config<T: Into<Box<VmSelectionConfig>>>( self, v: T, ) -> Self
Sets the value of vm_config
to hold a VmSelectionConfig.
Note that all the setters affecting vm_config are
mutually exclusive.
Trait Implementations§
Source§impl Clone for GenerateSshScriptRequest
impl Clone for GenerateSshScriptRequest
Source§fn clone(&self) -> GenerateSshScriptRequest
fn clone(&self) -> GenerateSshScriptRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more