#[non_exhaustive]pub struct CreateWorkerInputBuilder { /* private fields */ }Expand description
A builder for CreateWorkerInput.
Implementations§
source§impl CreateWorkerInputBuilder
impl CreateWorkerInputBuilder
sourcepub fn farm_id(self, input: impl Into<String>) -> Self
pub fn farm_id(self, input: impl Into<String>) -> Self
The farm ID of the farm to connect to the worker.
This field is required.sourcepub fn set_farm_id(self, input: Option<String>) -> Self
pub fn set_farm_id(self, input: Option<String>) -> Self
The farm ID of the farm to connect to the worker.
sourcepub fn get_farm_id(&self) -> &Option<String>
pub fn get_farm_id(&self) -> &Option<String>
The farm ID of the farm to connect to the worker.
sourcepub fn fleet_id(self, input: impl Into<String>) -> Self
pub fn fleet_id(self, input: impl Into<String>) -> Self
The fleet ID to connect to the worker.
This field is required.sourcepub fn set_fleet_id(self, input: Option<String>) -> Self
pub fn set_fleet_id(self, input: Option<String>) -> Self
The fleet ID to connect to the worker.
sourcepub fn get_fleet_id(&self) -> &Option<String>
pub fn get_fleet_id(&self) -> &Option<String>
The fleet ID to connect to the worker.
sourcepub fn host_properties(self, input: HostPropertiesRequest) -> Self
pub fn host_properties(self, input: HostPropertiesRequest) -> Self
The IP address and host name of the worker.
sourcepub fn set_host_properties(self, input: Option<HostPropertiesRequest>) -> Self
pub fn set_host_properties(self, input: Option<HostPropertiesRequest>) -> Self
The IP address and host name of the worker.
sourcepub fn get_host_properties(&self) -> &Option<HostPropertiesRequest>
pub fn get_host_properties(&self) -> &Option<HostPropertiesRequest>
The IP address and host name of the worker.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The unique token which the server uses to recognize retries of the same request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The unique token which the server uses to recognize retries of the same request.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
The unique token which the server uses to recognize retries of the same request.
sourcepub fn build(self) -> Result<CreateWorkerInput, BuildError>
pub fn build(self) -> Result<CreateWorkerInput, BuildError>
Consumes the builder and constructs a CreateWorkerInput.
source§impl CreateWorkerInputBuilder
impl CreateWorkerInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateWorkerOutput, SdkError<CreateWorkerError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateWorkerOutput, SdkError<CreateWorkerError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateWorkerInputBuilder
impl Clone for CreateWorkerInputBuilder
source§fn clone(&self) -> CreateWorkerInputBuilder
fn clone(&self) -> CreateWorkerInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateWorkerInputBuilder
impl Debug for CreateWorkerInputBuilder
source§impl Default for CreateWorkerInputBuilder
impl Default for CreateWorkerInputBuilder
source§fn default() -> CreateWorkerInputBuilder
fn default() -> CreateWorkerInputBuilder
source§impl PartialEq for CreateWorkerInputBuilder
impl PartialEq for CreateWorkerInputBuilder
source§fn eq(&self, other: &CreateWorkerInputBuilder) -> bool
fn eq(&self, other: &CreateWorkerInputBuilder) -> bool
self and other values to be equal, and is used
by ==.