Class CreateSnapshotRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • clusterManagerTimeout

        @Nonnull
        public final CreateSnapshotRequest.Builder clusterManagerTimeout​(@Nullable
                                                                         Time value)
        Operation timeout for connection to cluster-manager node.

        API name: cluster_manager_timeout

      • featureStates

        @Nonnull
        public final CreateSnapshotRequest.Builder featureStates​(java.util.List<java.lang.String> list)
        Feature states to include in the snapshot. Each feature state includes one or more system indexes containing related data. You can view a list of eligible features using the get features API. If include_global_state is true, all current feature states are included by default. If include_global_state is false, no feature states are included by default.

        API name: feature_states

        Adds all elements of list to featureStates.

      • featureStates

        @Nonnull
        public final CreateSnapshotRequest.Builder featureStates​(java.lang.String value,
                                                                 java.lang.String... values)
        Feature states to include in the snapshot. Each feature state includes one or more system indexes containing related data. You can view a list of eligible features using the get features API. If include_global_state is true, all current feature states are included by default. If include_global_state is false, no feature states are included by default.

        API name: feature_states

        Adds one or more values to featureStates.

      • ignoreUnavailable

        @Nonnull
        public final CreateSnapshotRequest.Builder ignoreUnavailable​(@Nullable
                                                                     java.lang.Boolean value)
        If true, the request ignores data streams and indexes in indices that are missing or closed. If false, the request returns an error for any data stream or index that is missing or closed.

        API name: ignore_unavailable

      • includeGlobalState

        @Nonnull
        public final CreateSnapshotRequest.Builder includeGlobalState​(@Nullable
                                                                      java.lang.Boolean value)
        If true, the current cluster state is included in the snapshot. The cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies. It also includes data stored in system indexes, such as Watches and task records (configurable with feature_states).

        API name: include_global_state

      • indices

        @Nonnull
        public final CreateSnapshotRequest.Builder indices​(java.util.List<java.lang.String> list)
        API name: indices

        Adds all elements of list to indices.

      • indices

        @Nonnull
        public final CreateSnapshotRequest.Builder indices​(java.lang.String value,
                                                           java.lang.String... values)
        API name: indices

        Adds one or more values to indices.

      • masterTimeout

        @Deprecated
        @Nonnull
        public final CreateSnapshotRequest.Builder masterTimeout​(@Nullable
                                                                 Time value)
        Deprecated.
        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: master_timeout

      • masterTimeout

        @Deprecated
        @Nonnull
        public final CreateSnapshotRequest.Builder masterTimeout​(java.util.function.Function<Time.Builder,​ObjectBuilder<Time>> fn)
        Deprecated.
        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: master_timeout

      • partial

        @Nonnull
        public final CreateSnapshotRequest.Builder partial​(@Nullable
                                                           java.lang.Boolean value)
        If true, allows restoring a partial snapshot of indexes with unavailable shards. Only shards that were successfully included in the snapshot will be restored. All missing shards will be recreated as empty. If false, the entire restore operation will fail if one or more indexes included in the snapshot do not have all primary shards available.

        API name: partial

      • repository

        @Nonnull
        public final CreateSnapshotRequest.Builder repository​(java.lang.String value)
        Required - Repository for the snapshot.

        API name: repository

      • snapshot

        @Nonnull
        public final CreateSnapshotRequest.Builder snapshot​(java.lang.String value)
        Required - Name of the snapshot. Must be unique in the repository.

        API name: snapshot

      • waitForCompletion

        @Nonnull
        public final CreateSnapshotRequest.Builder waitForCompletion​(@Nullable
                                                                     java.lang.Boolean value)
        If true, the request returns a response when the snapshot is complete. If false, the request returns a response when the snapshot initializes.

        API name: wait_for_completion