Interface GetServiceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetServiceResponse.Builder,,GetServiceResponse> DevOpsAgentResponse.Builder,SdkBuilder<GetServiceResponse.Builder,,GetServiceResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetServiceResponse
@Mutable
@NotThreadSafe
public static interface GetServiceResponse.Builder
extends DevOpsAgentResponse.Builder, SdkPojo, CopyableBuilder<GetServiceResponse.Builder,GetServiceResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetServiceResponse.Builderservice(Consumer<RegisteredService.Builder> service) Sets the value of the Service property for this object.service(RegisteredService service) Sets the value of the Service property for this object.Tags associated with the Service.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.devopsagent.model.DevOpsAgentResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
service
Sets the value of the Service property for this object.- Parameters:
service- The new value for the Service property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
service
Sets the value of the Service property for this object. This is a convenience method that creates an instance of theRegisteredService.Builderavoiding the need to create one manually viaRegisteredService.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toservice(RegisteredService).- Parameters:
service- a consumer that will call methods onRegisteredService.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Tags associated with the Service.
- Parameters:
tags- Tags associated with the Service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-