Interface ServiceResource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ServiceResource.Builder,,ServiceResource> SdkBuilder<ServiceResource.Builder,,ServiceResource> SdkPojo
- Enclosing class:
ServiceResource
@Mutable
@NotThreadSafe
public static interface ServiceResource.Builder
extends SdkPojo, CopyableBuilder<ServiceResource.Builder,ServiceResource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ServiceResource.BuilderinputSource(Consumer<InputSource.Builder> inputSource) The input source that discovered the resource.inputSource(InputSource inputSource) The input source that discovered the resource.default ServiceResource.Builderresource(Consumer<Resource.Builder> resource) The resource details.The resource details.resourceIdentifier(String resourceIdentifier) The identifier of the resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
resourceIdentifier
The identifier of the resource.
- Parameters:
resourceIdentifier- The identifier of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputSource
The input source that discovered the resource.
- Parameters:
inputSource- The input source that discovered the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputSource
The input source that discovered the resource.
This is a convenience method that creates an instance of theInputSource.Builderavoiding the need to create one manually viaInputSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinputSource(InputSource).- Parameters:
inputSource- a consumer that will call methods onInputSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resource
The resource details.
- Parameters:
resource- The resource details.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
The resource details.
This is a convenience method that creates an instance of theResource.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresource(Resource).- Parameters:
resource- a consumer that will call methods onResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-