Struct aws_sdk_codebuild::model::batch_restrictions::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for BatchRestrictions
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn maximum_builds_allowed(self, input: i32) -> Self
pub fn maximum_builds_allowed(self, input: i32) -> Self
Specifies the maximum number of builds allowed.
sourcepub fn set_maximum_builds_allowed(self, input: Option<i32>) -> Self
pub fn set_maximum_builds_allowed(self, input: Option<i32>) -> Self
Specifies the maximum number of builds allowed.
sourcepub fn compute_types_allowed(self, input: impl Into<String>) -> Self
pub fn compute_types_allowed(self, input: impl Into<String>) -> Self
Appends an item to compute_types_allowed
.
To override the contents of this collection use set_compute_types_allowed
.
An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
sourcepub fn set_compute_types_allowed(self, input: Option<Vec<String>>) -> Self
pub fn set_compute_types_allowed(self, input: Option<Vec<String>>) -> Self
An array of strings that specify the compute types that are allowed for the batch build. See Build environment compute types in the CodeBuild User Guide for these values.
sourcepub fn build(self) -> BatchRestrictions
pub fn build(self) -> BatchRestrictions
Consumes the builder and constructs a BatchRestrictions
.