pub struct UpdateServiceFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateService
.
Edit a service description or use a spec to add and delete service instances.
Existing service instances and the service pipeline can't be edited using this API. They can only be deleted.
Use the description
parameter to modify the description.
Edit the spec
parameter to add or delete instances.
You can't delete a service instance (remove it from the spec) if it has an attached component.
For more information about components, see Proton components in the Proton User Guide.
Implementations§
source§impl UpdateServiceFluentBuilder
impl UpdateServiceFluentBuilder
sourcepub fn as_input(&self) -> &UpdateServiceInputBuilder
pub fn as_input(&self) -> &UpdateServiceInputBuilder
Access the UpdateService as a reference.
sourcepub async fn send(
self
) -> Result<UpdateServiceOutput, SdkError<UpdateServiceError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateServiceOutput, SdkError<UpdateServiceError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<UpdateServiceOutput, UpdateServiceError, Self>, SdkError<UpdateServiceError>>
pub async fn customize( self ) -> Result<CustomizableOperation<UpdateServiceOutput, UpdateServiceError, Self>, SdkError<UpdateServiceError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The edited service description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The edited service description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The edited service description.
sourcepub fn spec(self, input: impl Into<String>) -> Self
pub fn spec(self, input: impl Into<String>) -> Self
Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the Proton User Guide.
sourcepub fn set_spec(self, input: Option<String>) -> Self
pub fn set_spec(self, input: Option<String>) -> Self
Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the Proton User Guide.
sourcepub fn get_spec(&self) -> &Option<String>
pub fn get_spec(&self) -> &Option<String>
Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the Proton User Guide.
Trait Implementations§
source§impl Clone for UpdateServiceFluentBuilder
impl Clone for UpdateServiceFluentBuilder
source§fn clone(&self) -> UpdateServiceFluentBuilder
fn clone(&self) -> UpdateServiceFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more