Interface DescriptorSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DescriptorSource.Builder,,DescriptorSource> SdkBuilder<DescriptorSource.Builder,,DescriptorSource> SdkPojo
- Enclosing class:
DescriptorSource
@Mutable
@NotThreadSafe
public static interface DescriptorSource.Builder
extends SdkPojo, CopyableBuilder<DescriptorSource.Builder,DescriptorSource>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DescriptorSource.BuilderfromUrl(Consumer<DescriptorSourceUrl.Builder> fromUrl) The URL that hosts the descriptor content.fromUrl(DescriptorSourceUrl fromUrl) The URL that hosts the descriptor content.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
-
fromUrl
The URL that hosts the descriptor content.
- Parameters:
fromUrl- The URL that hosts the descriptor content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fromUrl
The URL that hosts the descriptor content.
This is a convenience method that creates an instance of theDescriptorSourceUrl.Builderavoiding the need to create one manually viaDescriptorSourceUrl.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofromUrl(DescriptorSourceUrl).- Parameters:
fromUrl- a consumer that will call methods onDescriptorSourceUrl.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-