Interface GetServiceAttributesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetServiceAttributesResponse.Builder,
,GetServiceAttributesResponse> SdkBuilder<GetServiceAttributesResponse.Builder,
,GetServiceAttributesResponse> SdkPojo
,SdkResponse.Builder
,ServiceDiscoveryResponse.Builder
- Enclosing class:
GetServiceAttributesResponse
@Mutable
@NotThreadSafe
public static interface GetServiceAttributesResponse.Builder
extends ServiceDiscoveryResponse.Builder, SdkPojo, CopyableBuilder<GetServiceAttributesResponse.Builder,GetServiceAttributesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionserviceAttributes
(Consumer<ServiceAttributes.Builder> serviceAttributes) A complex type that contains the service ARN and a list of attribute key-value pairs associated with the service.serviceAttributes
(ServiceAttributes serviceAttributes) A complex type that contains the service ARN and a list of attribute key-value pairs associated with the service.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
Methods inherited from interface software.amazon.awssdk.services.servicediscovery.model.ServiceDiscoveryResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
serviceAttributes
A complex type that contains the service ARN and a list of attribute key-value pairs associated with the service.
- Parameters:
serviceAttributes
- A complex type that contains the service ARN and a list of attribute key-value pairs associated with the service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAttributes
default GetServiceAttributesResponse.Builder serviceAttributes(Consumer<ServiceAttributes.Builder> serviceAttributes) A complex type that contains the service ARN and a list of attribute key-value pairs associated with the service.
This is a convenience method that creates an instance of theServiceAttributes.Builder
avoiding the need to create one manually viaServiceAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserviceAttributes(ServiceAttributes)
.- Parameters:
serviceAttributes
- a consumer that will call methods onServiceAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-