#[non_exhaustive]pub struct CreateDeploymentInputBuilder { /* private fields */ }Expand description
A builder for CreateDeploymentInput.
Implementations§
source§impl CreateDeploymentInputBuilder
impl CreateDeploymentInputBuilder
sourcepub fn environment_id(self, input: impl Into<String>) -> Self
pub fn environment_id(self, input: impl Into<String>) -> Self
The identifier of the runtime environment where you want to deploy this application.
This field is required.sourcepub fn set_environment_id(self, input: Option<String>) -> Self
pub fn set_environment_id(self, input: Option<String>) -> Self
The identifier of the runtime environment where you want to deploy this application.
sourcepub fn get_environment_id(&self) -> &Option<String>
pub fn get_environment_id(&self) -> &Option<String>
The identifier of the runtime environment where you want to deploy this application.
sourcepub fn application_id(self, input: impl Into<String>) -> Self
pub fn application_id(self, input: impl Into<String>) -> Self
The application identifier.
This field is required.sourcepub fn set_application_id(self, input: Option<String>) -> Self
pub fn set_application_id(self, input: Option<String>) -> Self
The application identifier.
sourcepub fn get_application_id(&self) -> &Option<String>
pub fn get_application_id(&self) -> &Option<String>
The application identifier.
sourcepub fn application_version(self, input: i32) -> Self
pub fn application_version(self, input: i32) -> Self
The version of the application to deploy.
This field is required.sourcepub fn set_application_version(self, input: Option<i32>) -> Self
pub fn set_application_version(self, input: Option<i32>) -> Self
The version of the application to deploy.
sourcepub fn get_application_version(&self) -> &Option<i32>
pub fn get_application_version(&self) -> &Option<i32>
The version of the application to deploy.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create a deployment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.
sourcepub fn build(self) -> Result<CreateDeploymentInput, BuildError>
pub fn build(self) -> Result<CreateDeploymentInput, BuildError>
Consumes the builder and constructs a CreateDeploymentInput.
source§impl CreateDeploymentInputBuilder
impl CreateDeploymentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDeploymentOutput, SdkError<CreateDeploymentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDeploymentOutput, SdkError<CreateDeploymentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDeploymentInputBuilder
impl Clone for CreateDeploymentInputBuilder
source§fn clone(&self) -> CreateDeploymentInputBuilder
fn clone(&self) -> CreateDeploymentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateDeploymentInputBuilder
impl Debug for CreateDeploymentInputBuilder
source§impl Default for CreateDeploymentInputBuilder
impl Default for CreateDeploymentInputBuilder
source§fn default() -> CreateDeploymentInputBuilder
fn default() -> CreateDeploymentInputBuilder
source§impl PartialEq for CreateDeploymentInputBuilder
impl PartialEq for CreateDeploymentInputBuilder
source§fn eq(&self, other: &CreateDeploymentInputBuilder) -> bool
fn eq(&self, other: &CreateDeploymentInputBuilder) -> bool
self and other values to be equal, and is used
by ==.