pub struct Builder { /* private fields */ }Expand description
A builder for UpdateTestGridProjectInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn project_arn(self, input: impl Into<String>) -> Self
pub fn project_arn(self, input: impl Into<String>) -> Self
ARN of the project to update.
sourcepub fn set_project_arn(self, input: Option<String>) -> Self
pub fn set_project_arn(self, input: Option<String>) -> Self
ARN of the project to update.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Human-readable description for the project.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Human-readable description for the project.
sourcepub fn vpc_config(self, input: TestGridVpcConfig) -> Self
pub fn vpc_config(self, input: TestGridVpcConfig) -> Self
The VPC security groups and subnets that are attached to a project.
sourcepub fn set_vpc_config(self, input: Option<TestGridVpcConfig>) -> Self
pub fn set_vpc_config(self, input: Option<TestGridVpcConfig>) -> Self
The VPC security groups and subnets that are attached to a project.
sourcepub fn build(self) -> Result<UpdateTestGridProjectInput, BuildError>
pub fn build(self) -> Result<UpdateTestGridProjectInput, BuildError>
Consumes the builder and constructs a UpdateTestGridProjectInput.
Examples found in repository?
src/client.rs (line 8262)
8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateTestGridProject,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateTestGridProjectError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateTestGridProjectOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateTestGridProjectError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}