Struct aws_sdk_proton::types::builders::DeploymentBuilder
source · #[non_exhaustive]pub struct DeploymentBuilder { /* private fields */ }
Expand description
A builder for Deployment
.
Implementations§
source§impl DeploymentBuilder
impl DeploymentBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID of the deployment.
This field is required.sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the deployment.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the deployment.
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the target of the deployment.
This field is required.sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the target of the deployment.
sourcepub fn get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the target of the deployment.
sourcepub fn target_resource_created_at(self, input: DateTime) -> Self
pub fn target_resource_created_at(self, input: DateTime) -> Self
The date and time the depoyment target was created.
This field is required.sourcepub fn set_target_resource_created_at(self, input: Option<DateTime>) -> Self
pub fn set_target_resource_created_at(self, input: Option<DateTime>) -> Self
The date and time the depoyment target was created.
sourcepub fn get_target_resource_created_at(&self) -> &Option<DateTime>
pub fn get_target_resource_created_at(&self) -> &Option<DateTime>
The date and time the depoyment target was created.
sourcepub fn target_resource_type(self, input: DeploymentTargetResourceType) -> Self
pub fn target_resource_type(self, input: DeploymentTargetResourceType) -> Self
The resource type of the deployment target. It can be an environment, service, service instance, or component.
This field is required.sourcepub fn set_target_resource_type(
self,
input: Option<DeploymentTargetResourceType>
) -> Self
pub fn set_target_resource_type( self, input: Option<DeploymentTargetResourceType> ) -> Self
The resource type of the deployment target. It can be an environment, service, service instance, or component.
sourcepub fn get_target_resource_type(&self) -> &Option<DeploymentTargetResourceType>
pub fn get_target_resource_type(&self) -> &Option<DeploymentTargetResourceType>
The resource type of the deployment target. It can be an environment, service, service instance, or component.
sourcepub fn environment_name(self, input: impl Into<String>) -> Self
pub fn environment_name(self, input: impl Into<String>) -> Self
The name of the environment associated with this deployment.
This field is required.sourcepub fn set_environment_name(self, input: Option<String>) -> Self
pub fn set_environment_name(self, input: Option<String>) -> Self
The name of the environment associated with this deployment.
sourcepub fn get_environment_name(&self) -> &Option<String>
pub fn get_environment_name(&self) -> &Option<String>
The name of the environment associated with this deployment.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the service in this deployment.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the service in this deployment.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the service in this deployment.
sourcepub fn service_instance_name(self, input: impl Into<String>) -> Self
pub fn service_instance_name(self, input: impl Into<String>) -> Self
The name of the deployment's service instance.
sourcepub fn set_service_instance_name(self, input: Option<String>) -> Self
pub fn set_service_instance_name(self, input: Option<String>) -> Self
The name of the deployment's service instance.
sourcepub fn get_service_instance_name(&self) -> &Option<String>
pub fn get_service_instance_name(&self) -> &Option<String>
The name of the deployment's service instance.
sourcepub fn component_name(self, input: impl Into<String>) -> Self
pub fn component_name(self, input: impl Into<String>) -> Self
The name of the component associated with this deployment.
sourcepub fn set_component_name(self, input: Option<String>) -> Self
pub fn set_component_name(self, input: Option<String>) -> Self
The name of the component associated with this deployment.
sourcepub fn get_component_name(&self) -> &Option<String>
pub fn get_component_name(&self) -> &Option<String>
The name of the component associated with this deployment.
sourcepub fn deployment_status(self, input: DeploymentStatus) -> Self
pub fn deployment_status(self, input: DeploymentStatus) -> Self
The status of the deployment.
This field is required.sourcepub fn set_deployment_status(self, input: Option<DeploymentStatus>) -> Self
pub fn set_deployment_status(self, input: Option<DeploymentStatus>) -> Self
The status of the deployment.
sourcepub fn get_deployment_status(&self) -> &Option<DeploymentStatus>
pub fn get_deployment_status(&self) -> &Option<DeploymentStatus>
The status of the deployment.
sourcepub fn deployment_status_message(self, input: impl Into<String>) -> Self
pub fn deployment_status_message(self, input: impl Into<String>) -> Self
The deployment status message.
sourcepub fn set_deployment_status_message(self, input: Option<String>) -> Self
pub fn set_deployment_status_message(self, input: Option<String>) -> Self
The deployment status message.
sourcepub fn get_deployment_status_message(&self) -> &Option<String>
pub fn get_deployment_status_message(&self) -> &Option<String>
The deployment status message.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The date and time the deployment was created.
This field is required.sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The date and time the deployment was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The date and time the deployment was created.
sourcepub fn last_modified_at(self, input: DateTime) -> Self
pub fn last_modified_at(self, input: DateTime) -> Self
The date and time the deployment was last modified.
This field is required.sourcepub fn set_last_modified_at(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_at(self, input: Option<DateTime>) -> Self
The date and time the deployment was last modified.
sourcepub fn get_last_modified_at(&self) -> &Option<DateTime>
pub fn get_last_modified_at(&self) -> &Option<DateTime>
The date and time the deployment was last modified.
sourcepub fn completed_at(self, input: DateTime) -> Self
pub fn completed_at(self, input: DateTime) -> Self
The date and time the deployment was completed.
sourcepub fn set_completed_at(self, input: Option<DateTime>) -> Self
pub fn set_completed_at(self, input: Option<DateTime>) -> Self
The date and time the deployment was completed.
sourcepub fn get_completed_at(&self) -> &Option<DateTime>
pub fn get_completed_at(&self) -> &Option<DateTime>
The date and time the deployment was completed.
sourcepub fn last_attempted_deployment_id(self, input: impl Into<String>) -> Self
pub fn last_attempted_deployment_id(self, input: impl Into<String>) -> Self
The ID of the last attempted deployment.
sourcepub fn set_last_attempted_deployment_id(self, input: Option<String>) -> Self
pub fn set_last_attempted_deployment_id(self, input: Option<String>) -> Self
The ID of the last attempted deployment.
sourcepub fn get_last_attempted_deployment_id(&self) -> &Option<String>
pub fn get_last_attempted_deployment_id(&self) -> &Option<String>
The ID of the last attempted deployment.
sourcepub fn last_succeeded_deployment_id(self, input: impl Into<String>) -> Self
pub fn last_succeeded_deployment_id(self, input: impl Into<String>) -> Self
The ID of the last successful deployment.
sourcepub fn set_last_succeeded_deployment_id(self, input: Option<String>) -> Self
pub fn set_last_succeeded_deployment_id(self, input: Option<String>) -> Self
The ID of the last successful deployment.
sourcepub fn get_last_succeeded_deployment_id(&self) -> &Option<String>
pub fn get_last_succeeded_deployment_id(&self) -> &Option<String>
The ID of the last successful deployment.
sourcepub fn initial_state(self, input: DeploymentState) -> Self
pub fn initial_state(self, input: DeploymentState) -> Self
The initial state of the target resource at the time of the deployment.
sourcepub fn set_initial_state(self, input: Option<DeploymentState>) -> Self
pub fn set_initial_state(self, input: Option<DeploymentState>) -> Self
The initial state of the target resource at the time of the deployment.
sourcepub fn get_initial_state(&self) -> &Option<DeploymentState>
pub fn get_initial_state(&self) -> &Option<DeploymentState>
The initial state of the target resource at the time of the deployment.
sourcepub fn target_state(self, input: DeploymentState) -> Self
pub fn target_state(self, input: DeploymentState) -> Self
The target state of the target resource at the time of the deployment.
sourcepub fn set_target_state(self, input: Option<DeploymentState>) -> Self
pub fn set_target_state(self, input: Option<DeploymentState>) -> Self
The target state of the target resource at the time of the deployment.
sourcepub fn get_target_state(&self) -> &Option<DeploymentState>
pub fn get_target_state(&self) -> &Option<DeploymentState>
The target state of the target resource at the time of the deployment.
sourcepub fn build(self) -> Result<Deployment, BuildError>
pub fn build(self) -> Result<Deployment, BuildError>
Consumes the builder and constructs a Deployment
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DeploymentBuilder
impl Clone for DeploymentBuilder
source§fn clone(&self) -> DeploymentBuilder
fn clone(&self) -> DeploymentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeploymentBuilder
impl Debug for DeploymentBuilder
source§impl Default for DeploymentBuilder
impl Default for DeploymentBuilder
source§fn default() -> DeploymentBuilder
fn default() -> DeploymentBuilder
source§impl PartialEq for DeploymentBuilder
impl PartialEq for DeploymentBuilder
source§fn eq(&self, other: &DeploymentBuilder) -> bool
fn eq(&self, other: &DeploymentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.