-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #733 from commercetools/gen-sdk-updates
Update generated SDKs
- Loading branch information
Showing
54 changed files
with
3,372 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 119 additions & 0 deletions
119
...rc/main/java-generated/com/commercetools/api/models/error/GraphQLSearchNotReadyError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
|
||
package com.commercetools.api.models.error; | ||
|
||
import java.time.*; | ||
import java.util.*; | ||
import java.util.function.Function; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
|
||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
/** | ||
* <p>Returned if the requested search service is not ready. The search might be deactivated or indexing is in progress.</p> | ||
* | ||
* <hr> | ||
* Example to create an instance using the builder pattern | ||
* <div class=code-example> | ||
* <pre><code class='java'> | ||
* GraphQLSearchNotReadyError graphQLSearchNotReadyError = GraphQLSearchNotReadyError.builder() | ||
* .build() | ||
* </code></pre> | ||
* </div> | ||
*/ | ||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
@JsonDeserialize(as = GraphQLSearchNotReadyErrorImpl.class) | ||
public interface GraphQLSearchNotReadyError extends GraphQLErrorObject { | ||
|
||
/** | ||
* discriminator value for GraphQLSearchNotReadyError | ||
*/ | ||
String SEARCH_NOT_READY = "SearchNotReady"; | ||
|
||
/** | ||
* | ||
* @return code | ||
*/ | ||
@NotNull | ||
@JsonProperty("code") | ||
public String getCode(); | ||
|
||
/** | ||
* factory method | ||
* @return instance of GraphQLSearchNotReadyError | ||
*/ | ||
public static GraphQLSearchNotReadyError of() { | ||
return new GraphQLSearchNotReadyErrorImpl(); | ||
} | ||
|
||
/** | ||
* factory method to create a shallow copy GraphQLSearchNotReadyError | ||
* @param template instance to be copied | ||
* @return copy instance | ||
*/ | ||
public static GraphQLSearchNotReadyError of(final GraphQLSearchNotReadyError template) { | ||
GraphQLSearchNotReadyErrorImpl instance = new GraphQLSearchNotReadyErrorImpl(); | ||
Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); | ||
return instance; | ||
} | ||
|
||
/** | ||
* factory method to create a deep copy of GraphQLSearchNotReadyError | ||
* @param template instance to be copied | ||
* @return copy instance | ||
*/ | ||
@Nullable | ||
public static GraphQLSearchNotReadyError deepCopy(@Nullable final GraphQLSearchNotReadyError template) { | ||
if (template == null) { | ||
return null; | ||
} | ||
GraphQLSearchNotReadyErrorImpl instance = new GraphQLSearchNotReadyErrorImpl(); | ||
Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue)); | ||
return instance; | ||
} | ||
|
||
/** | ||
* builder factory method for GraphQLSearchNotReadyError | ||
* @return builder | ||
*/ | ||
public static GraphQLSearchNotReadyErrorBuilder builder() { | ||
return GraphQLSearchNotReadyErrorBuilder.of(); | ||
} | ||
|
||
/** | ||
* create builder for GraphQLSearchNotReadyError instance | ||
* @param template instance with prefilled values for the builder | ||
* @return builder | ||
*/ | ||
public static GraphQLSearchNotReadyErrorBuilder builder(final GraphQLSearchNotReadyError template) { | ||
return GraphQLSearchNotReadyErrorBuilder.of(template); | ||
} | ||
|
||
/** | ||
* accessor map function | ||
* @param <T> mapped type | ||
* @param helper function to map the object | ||
* @return mapped value | ||
*/ | ||
default <T> T withGraphQLSearchNotReadyError(Function<GraphQLSearchNotReadyError, T> helper) { | ||
return helper.apply(this); | ||
} | ||
|
||
/** | ||
* gives a TypeReference for usage with Jackson DataBind | ||
* @return TypeReference | ||
*/ | ||
public static com.fasterxml.jackson.core.type.TypeReference<GraphQLSearchNotReadyError> typeReference() { | ||
return new com.fasterxml.jackson.core.type.TypeReference<GraphQLSearchNotReadyError>() { | ||
@Override | ||
public String toString() { | ||
return "TypeReference<GraphQLSearchNotReadyError>"; | ||
} | ||
}; | ||
} | ||
} |
95 changes: 95 additions & 0 deletions
95
.../java-generated/com/commercetools/api/models/error/GraphQLSearchNotReadyErrorBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
|
||
package com.commercetools.api.models.error; | ||
|
||
import java.util.*; | ||
|
||
import io.vrap.rmf.base.client.Builder; | ||
import io.vrap.rmf.base.client.utils.Generated; | ||
|
||
/** | ||
* GraphQLSearchNotReadyErrorBuilder | ||
* <hr> | ||
* Example to create an instance using the builder pattern | ||
* <div class=code-example> | ||
* <pre><code class='java'> | ||
* GraphQLSearchNotReadyError graphQLSearchNotReadyError = GraphQLSearchNotReadyError.builder() | ||
* .build() | ||
* </code></pre> | ||
* </div> | ||
*/ | ||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
public class GraphQLSearchNotReadyErrorBuilder implements Builder<GraphQLSearchNotReadyError> { | ||
|
||
private Map<String, java.lang.Object> values = new HashMap<>(); | ||
|
||
/** | ||
* <p>Error-specific additional fields.</p> | ||
* @param values properties to be set | ||
* @return Builder | ||
*/ | ||
|
||
public GraphQLSearchNotReadyErrorBuilder values(final Map<String, java.lang.Object> values) { | ||
this.values = values; | ||
return this; | ||
} | ||
|
||
/** | ||
* <p>Error-specific additional fields.</p> | ||
* @param key property name | ||
* @param value property value | ||
* @return Builder | ||
*/ | ||
|
||
public GraphQLSearchNotReadyErrorBuilder addValue(final String key, final java.lang.Object value) { | ||
if (this.values == null) { | ||
values = new HashMap<>(); | ||
} | ||
values.put(key, value); | ||
return this; | ||
} | ||
|
||
/** | ||
* <p>Error-specific additional fields.</p> | ||
* @return pattern properties | ||
*/ | ||
|
||
public Map<String, java.lang.Object> getValues() { | ||
return this.values; | ||
} | ||
|
||
/** | ||
* builds GraphQLSearchNotReadyError with checking for non-null required values | ||
* @return GraphQLSearchNotReadyError | ||
*/ | ||
public GraphQLSearchNotReadyError build() { | ||
return new GraphQLSearchNotReadyErrorImpl(values); | ||
} | ||
|
||
/** | ||
* builds GraphQLSearchNotReadyError without checking for non-null required values | ||
* @return GraphQLSearchNotReadyError | ||
*/ | ||
public GraphQLSearchNotReadyError buildUnchecked() { | ||
return new GraphQLSearchNotReadyErrorImpl(values); | ||
} | ||
|
||
/** | ||
* factory method for an instance of GraphQLSearchNotReadyErrorBuilder | ||
* @return builder | ||
*/ | ||
public static GraphQLSearchNotReadyErrorBuilder of() { | ||
return new GraphQLSearchNotReadyErrorBuilder(); | ||
} | ||
|
||
/** | ||
* create builder for GraphQLSearchNotReadyError instance | ||
* @param template instance with prefilled values for the builder | ||
* @return builder | ||
*/ | ||
public static GraphQLSearchNotReadyErrorBuilder of(final GraphQLSearchNotReadyError template) { | ||
GraphQLSearchNotReadyErrorBuilder builder = new GraphQLSearchNotReadyErrorBuilder(); | ||
builder.values = template.values(); | ||
return builder; | ||
} | ||
|
||
} |
Oops, something went wrong.