Interface GetCompatibleVersionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetCompatibleVersionsResponse.Builder,,GetCompatibleVersionsResponse> OpenSearchResponse.Builder,SdkBuilder<GetCompatibleVersionsResponse.Builder,,GetCompatibleVersionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCompatibleVersionsResponse
public static interface GetCompatibleVersionsResponse.Builder
extends OpenSearchResponse.Builder, SdkPojo, CopyableBuilder<GetCompatibleVersionsResponse.Builder,GetCompatibleVersionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncompatibleVersions(Collection<CompatibleVersionsMap> compatibleVersions) A map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.compatibleVersions(Consumer<CompatibleVersionsMap.Builder>... compatibleVersions) A map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.compatibleVersions(CompatibleVersionsMap... compatibleVersions) A map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opensearch.model.OpenSearchResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
compatibleVersions
GetCompatibleVersionsResponse.Builder compatibleVersions(Collection<CompatibleVersionsMap> compatibleVersions) A map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.
- Parameters:
compatibleVersions- A map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compatibleVersions
GetCompatibleVersionsResponse.Builder compatibleVersions(CompatibleVersionsMap... compatibleVersions) A map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.
- Parameters:
compatibleVersions- A map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
compatibleVersions
GetCompatibleVersionsResponse.Builder compatibleVersions(Consumer<CompatibleVersionsMap.Builder>... compatibleVersions) A map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.
This is a convenience method that creates an instance of theCompatibleVersionsMap.Builderavoiding the need to create one manually viaCompatibleVersionsMap.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocompatibleVersions(List<CompatibleVersionsMap>).- Parameters:
compatibleVersions- a consumer that will call methods onCompatibleVersionsMap.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-