diff --git a/java-client/src/generated/java/org/opensearch/client/opensearch/snapshot/GetSnapshotRequest.java b/java-client/src/generated/java/org/opensearch/client/opensearch/snapshot/GetSnapshotRequest.java
index 1dd07215be..3b1776a93b 100644
--- a/java-client/src/generated/java/org/opensearch/client/opensearch/snapshot/GetSnapshotRequest.java
+++ b/java-client/src/generated/java/org/opensearch/client/opensearch/snapshot/GetSnapshotRequest.java
@@ -50,8 +50,10 @@
import org.opensearch.client.transport.Endpoint;
import org.opensearch.client.transport.endpoints.SimpleEndpoint;
import org.opensearch.client.util.ApiTypeHelper;
+import org.opensearch.client.util.CopyableBuilder;
import org.opensearch.client.util.ObjectBuilder;
import org.opensearch.client.util.ObjectBuilderBase;
+import org.opensearch.client.util.ToCopyableBuilder;
// typedef: snapshot.get.Request
@@ -59,7 +61,7 @@
* Returns information about a snapshot.
*/
@Generated("org.opensearch.client.codegen.CodeGenerator")
-public class GetSnapshotRequest extends RequestBase {
+public class GetSnapshotRequest extends RequestBase implements ToCopyableBuilder
* API name: {@code ignore_unavailable}
*
* API name: {@code master_timeout}
*
- * Comma-separated list of snapshot names to retrieve. Also accepts wildcards (*).
+ * Comma-separated list of snapshot names to retrieve. Also accepts wildcards (
* API name: {@code snapshot}
@@ -160,8 +162,8 @@ public final List
* API name: {@code verbose}
* false
, the request returns an error for any snapshots that are unavailable.
* *
).
*
- *
* *
) or _all
._current
.true
, returns additional information about each snapshot such as the version of OpenSearch which took the snapshot,
+ * the start and end times of the snapshot, and the number of shards snapshotted.
*
false
, the request returns an error for any snapshots that are unavailable.
* * API name: {@code ignore_unavailable} *
*/ + @Nonnull public final Builder ignoreUnavailable(@Nullable Boolean value) { this.ignoreUnavailable = value; return this; } /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and - * returns an error. + * Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request + * fails and returns an error. ** API name: {@code master_timeout} *
*/ @Deprecated + @Nonnull public final Builder masterTimeout(@Nullable Time value) { this.masterTimeout = value; return this; } /** - * Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and - * returns an error. + * Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request + * fails and returns an error. ** API name: {@code master_timeout} *
*/ @Deprecated + @Nonnull public final Builder masterTimeout(Function
- * Comma-separated list of snapshot names to retrieve. Also accepts wildcards (*).
+ * Comma-separated list of snapshot names to retrieve. Also accepts wildcards (*
).
*
*
) or _all
._current
.
* API name: {@code snapshot}
@@ -273,6 +318,7 @@ public final Builder repository(String value) {
* Adds all elements of list
to snapshot
.
*
- * Comma-separated list of snapshot names to retrieve. Also accepts wildcards (*).
+ * Comma-separated list of snapshot names to retrieve. Also accepts wildcards (*
).
*
*
) or _all
._current
.
* API name: {@code snapshot}
@@ -295,18 +341,20 @@ public final Builder snapshot(Listsnapshot
.
*
true
, returns additional information about each snapshot such as the version of OpenSearch which took the
+ * snapshot, the start and end times of the snapshot, and the number of shards snapshotted.
* * API name: {@code verbose} *
*/ + @Nonnull public final Builder verbose(@Nullable Boolean value) { this.verbose = value; return this; @@ -317,6 +365,8 @@ public final Builder verbose(@Nullable Boolean value) { * * @throws NullPointerException if some of the required fields are null. */ + @Override + @Nonnull public GetSnapshotRequest build() { _checkSingleUse(); diff --git a/java-client/src/generated/java/org/opensearch/client/opensearch/snapshot/GetSnapshotResponse.java b/java-client/src/generated/java/org/opensearch/client/opensearch/snapshot/GetSnapshotResponse.java index f8b88031c6..253287d4c3 100644 --- a/java-client/src/generated/java/org/opensearch/client/opensearch/snapshot/GetSnapshotResponse.java +++ b/java-client/src/generated/java/org/opensearch/client/opensearch/snapshot/GetSnapshotResponse.java @@ -48,14 +48,16 @@ import org.opensearch.client.json.ObjectDeserializer; import org.opensearch.client.json.PlainJsonSerializable; import org.opensearch.client.util.ApiTypeHelper; +import org.opensearch.client.util.CopyableBuilder; import org.opensearch.client.util.ObjectBuilder; import org.opensearch.client.util.ObjectBuilderBase; +import org.opensearch.client.util.ToCopyableBuilder; // typedef: snapshot.get.Response @JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") -public class GetSnapshotResponse implements PlainJsonSerializable { +public class GetSnapshotResponse implements PlainJsonSerializable, ToCopyableBuildersnapshots
.
*
*/
+ @Nonnull
public final Builder snapshots(Listsnapshots
.
*
*/
+ @Nonnull
public final Builder snapshots(SnapshotInfo value, SnapshotInfo... values) {
this.snapshots = _listAdd(this.snapshots, value, values);
return this;
@@ -136,6 +167,7 @@ public final Builder snapshots(SnapshotInfo value, SnapshotInfo... values) {
* Adds a value to snapshots
using a builder lambda.
*
*/
+ @Nonnull
public final Builder snapshots(FunctiondataStreams
.
*
*/
+ @Nonnull
public final Builder dataStreams(ListdataStreams
.
*
*/
+ @Nonnull
public final Builder dataStreams(String value, String... values) {
this.dataStreams = _listAdd(this.dataStreams, value, values);
return this;
@@ -506,6 +575,7 @@ public final Builder dataStreams(String value, String... values) {
/**
* API name: {@code duration}
*/
+ @Nonnull
public final Builder duration(@Nullable Time value) {
this.duration = value;
return this;
@@ -514,6 +584,7 @@ public final Builder duration(@Nullable Time value) {
/**
* API name: {@code duration}
*/
+ @Nonnull
public final Builder duration(Functionlist
to failures
.
*
*/
+ @Nonnull
public final Builder failures(Listfailures
.
*
*/
+ @Nonnull
public final Builder failures(SnapshotShardFailure value, SnapshotShardFailure... values) {
this.failures = _listAdd(this.failures, value, values);
return this;
@@ -573,6 +649,7 @@ public final Builder failures(SnapshotShardFailure value, SnapshotShardFailure..
* Adds a value to failures
using a builder lambda.
*
*/
+ @Nonnull
public final Builder failures(Functionindices
.
*
*/
+ @Nonnull
public final Builder indices(Listindices
.
*
*/
+ @Nonnull
public final Builder indices(String value, String... values) {
this.indices = _listAdd(this.indices, value, values);
return this;
@@ -616,6 +696,7 @@ public final Builder indices(String value, String... values) {
* Adds all elements of map
to metadata
.
*
*/
+ @Nonnull
public final Builder metadata(Mapmetadata
.
*
*/
+ @Nonnull
public final Builder metadata(String key, JsonData value) {
this.metadata = _mapPut(this.metadata, key, value);
return this;
@@ -636,6 +718,7 @@ public final Builder metadata(String key, JsonData value) {
/**
* API name: {@code pinned_timestamp}
*/
+ @Nonnull
public final Builder pinnedTimestamp(@Nullable Long value) {
this.pinnedTimestamp = value;
return this;
@@ -644,6 +727,7 @@ public final Builder pinnedTimestamp(@Nullable Long value) {
/**
* API name: {@code reason}
*/
+ @Nonnull
public final Builder reason(@Nullable String value) {
this.reason = value;
return this;
@@ -652,6 +736,7 @@ public final Builder reason(@Nullable String value) {
/**
* API name: {@code remote_store_index_shallow_copy}
*/
+ @Nonnull
public final Builder remoteStoreIndexShallowCopy(@Nullable Boolean value) {
this.remoteStoreIndexShallowCopy = value;
return this;
@@ -660,6 +745,7 @@ public final Builder remoteStoreIndexShallowCopy(@Nullable Boolean value) {
/**
* API name: {@code shards}
*/
+ @Nonnull
public final Builder shards(@Nullable ShardStatistics value) {
this.shards = value;
return this;
@@ -668,6 +754,7 @@ public final Builder shards(@Nullable ShardStatistics value) {
/**
* API name: {@code shards}
*/
+ @Nonnull
public final Builder shards(Function