Skip to content

Commit

Permalink
Add getters for dictionary responses
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Apr 28, 2022
1 parent 2b5f3d2 commit fb5d5f2
Show file tree
Hide file tree
Showing 24 changed files with 168 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, ClusterRemoteInfo> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable ClusterRemoteInfo get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, Lifecycle> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable Lifecycle get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, IndexAliases> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable IndexAliases get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public final Map<String, TypeFieldMappings> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable TypeFieldMappings get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public final Map<String, IndexState> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable IndexState get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public final Map<String, IndexState> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable IndexState get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, IndexMappingRecord> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable IndexMappingRecord get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public final Map<String, TemplateMapping> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable TemplateMapping get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, RecoveryStatus> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable RecoveryStatus get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public final Map<String, Pipeline> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable Pipeline get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public final Map<String, Pipeline> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable Pipeline get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, RollupCapabilities> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable RollupCapabilities get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public final Map<String, IndexCapabilities> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable IndexCapabilities get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public final Map<String, Map<String, FoundStatus>> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable Map<String, FoundStatus> get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public final Map<String, Map<String, Actions>> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable Map<String, Actions> get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, RoleMapping> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable RoleMapping get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, Role> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable Role get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public final Map<String, RoleDescriptorWrapper> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable RoleDescriptorWrapper get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, UserProfileWithMetadata> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable UserProfileWithMetadata get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public final Map<String, User> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable User get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ public final Map<String, Map<String, Actions>> privileges() {
return this.privileges;
}

/**
* Get an element of {@code privileges}.
*/
public final @Nullable Map<String, Actions> get(String key) {
return this.privileges.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, Map<String, CreatedStatus>> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable Map<String, CreatedStatus> get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public final Map<String, SnapshotLifecycle> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable SnapshotLifecycle get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public final Map<String, Repository> result() {
return this.result;
}

/**
* Get an element of {@code result}.
*/
public final @Nullable Repository get(String key) {
return this.result.get(key);
}

/**
* Serialize this value to JSON.
*/
Expand Down

0 comments on commit fb5d5f2

Please sign in to comment.