Class PostFeatureUpgradeResponse
java.lang.Object
org.elasticsearch.client.migration.PostFeatureUpgradeResponse
Response to a request to begin a feature update
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A data class representing a feature. -
Constructor Summary
ConstructorDescriptionPostFeatureUpgradeResponse
(boolean accepted, List<PostFeatureUpgradeResponse.Feature> features, String reason, org.elasticsearch.ElasticsearchException elasticsearchException) -
Method Summary
Modifier and TypeMethodDescriptionboolean
We disregard exceptions when determining response equalityorg.elasticsearch.ElasticsearchException
int
hashCode()
We disregard exceptions when calculating hash codeboolean
static PostFeatureUpgradeResponse
parse
(org.elasticsearch.xcontent.XContentParser parser)
-
Constructor Details
-
PostFeatureUpgradeResponse
public PostFeatureUpgradeResponse(boolean accepted, List<PostFeatureUpgradeResponse.Feature> features, @Nullable String reason, @Nullable org.elasticsearch.ElasticsearchException elasticsearchException) - Parameters:
accepted
- Whether the request to begin an upgrade was accepted by the serverfeatures
- List of features that will be upgraded, empty for rejected requestsreason
- If the request was rejected, an explanation of why it was rejected, null otherwise.elasticsearchException
- If a request was request because of an exception, the exception. Null otherwise.
-
-
Method Details
-
parse
-
isAccepted
public boolean isAccepted() -
getFeatures
-
getReason
-
getElasticsearchException
@Nullable public org.elasticsearch.ElasticsearchException getElasticsearchException() -
equals
We disregard exceptions when determining response equality -
hashCode
public int hashCode()We disregard exceptions when calculating hash code
-