pub struct DeploymentBuilder { /* private fields */ }
Expand description
Builder for Deployment
.
Implementations§
Source§impl DeploymentBuilder
impl DeploymentBuilder
Sourcepub fn namespace(&mut self, value: String) -> &mut Self
pub fn namespace(&mut self, value: String) -> &mut Self
Namespace is the namespace the deployment is created in
Sourcepub fn create_time(&mut self, value: i64) -> &mut Self
pub fn create_time(&mut self, value: i64) -> &mut Self
Creation and modification times, stored as UnixNano
Sourcepub fn job_version(&mut self, value: u64) -> &mut Self
pub fn job_version(&mut self, value: u64) -> &mut Self
JobVersion is the version of the job at which the deployment is tracking
Sourcepub fn job_modify_index(&mut self, value: u64) -> &mut Self
pub fn job_modify_index(&mut self, value: u64) -> &mut Self
JobModifyIndex is the ModifyIndex of the job which the deployment is tracking.
Sourcepub fn job_create_index(&mut self, value: u64) -> &mut Self
pub fn job_create_index(&mut self, value: u64) -> &mut Self
JobCreateIndex is the create index of the job which the deployment is tracking. It is needed so that if the job gets stopped and reran we can present the correct list of deployments for the job and not old ones.
pub fn modify_index(&mut self, value: u64) -> &mut Self
Sourcepub fn task_groups(
&mut self,
value: HashMap<String, DeploymentState>,
) -> &mut Self
pub fn task_groups( &mut self, value: HashMap<String, DeploymentState>, ) -> &mut Self
TaskGroups is the set of task groups effected by the deployment and their current deployment status.
Sourcepub fn status_description(&mut self, value: String) -> &mut Self
pub fn status_description(&mut self, value: String) -> &mut Self
StatusDescription allows a human readable description of the deployment status.
pub fn create_index(&mut self, value: u64) -> &mut Self
Sourcepub fn job_id(&mut self, value: String) -> &mut Self
pub fn job_id(&mut self, value: String) -> &mut Self
JobID is the job the deployment is created for
Sourcepub fn job_spec_modify_index(&mut self, value: u64) -> &mut Self
pub fn job_spec_modify_index(&mut self, value: u64) -> &mut Self
JobSpecModifyIndex is the JobModifyIndex of the job which the deployment is tracking.
Sourcepub fn is_multiregion(&mut self, value: bool) -> &mut Self
pub fn is_multiregion(&mut self, value: bool) -> &mut Self
IsMultiregion specifies if this deployment is part of a multi-region deployment
pub fn modify_time(&mut self, value: i64) -> &mut Self
Sourcepub fn build(&self) -> Result<Deployment, DeploymentBuilderError>
pub fn build(&self) -> Result<Deployment, DeploymentBuilderError>
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 more