diff --git a/README.md b/README.md index abb1aab2..e259df29 100644 --- a/README.md +++ b/README.md @@ -75,12 +75,13 @@ public AiDeploymentCreationResponse createDeployment() { new DeploymentApi(getClient()) .deploymentCreate( "default", - new AiDeploymentCreationRequest().configurationId("12345-123-123-123-123456abcdefg")); + AiDeploymentCreationRequest.create() + .configurationId("12345-123-123-123-123456abcdefg")); Objects.requireNonNull(deployment, "Deployment creation failed"); String id = deployment.getId(); - Status status = deployment.getStatus(); + AiExecutionStatus status = deployment.getStatus(); return deployment; } @@ -95,12 +96,12 @@ public AiDeploymentDeletionResponse deleteDeployment(AiDeploymentCreationRespons DeploymentApi client = new DeploymentApi(getClient()); - if (deployment.getStatus() == Status.RUNNING) { + if (deployment.getStatus() == AiExecutionStatus.RUNNING) { // Only RUNNING deployments can be STOPPED client.deploymentModify( "default", deployment.getId(), - new AiDeploymentModificationRequest().targetStatus(Status.STOPPED)); + AiDeploymentModificationRequest.create().targetStatus(AiDeploymentTargetStatus.STOPPED)); } // Wait a few seconds for the deployment to stop // Only UNKNOWN and STOPPED deployments can be DELETED @@ -180,12 +181,15 @@ See [an example pom in our Spring Boot application](e2e-test-app/pom.xml) ### Simple chat completion ```java +final var systemMessage = + new OpenAiChatSystemMessage().setContent("You are a helpful assistant"); final var userMessage = - new OpenAiChatUserMessage().setContent("Hello World! Why is this phrase so famous?"); + new OpenAiChatUserMessage().addText("Hello World! Why is this phrase so famous?"); final var request = new OpenAiChatCompletionParameters().setMessages(List.of(systemMessage, userMessage)); -final OpenAiChatCompletionOutput result = OpenAiClient.forModel(GPT_35_TURBO).chatCompletion(request); +final OpenAiChatCompletionOutput result = + OpenAiClient.forModel(GPT_35_TURBO).chatCompletion(request); final String resultMessage = result.getChoices().get(0).getMessage().getContent(); ``` @@ -196,7 +200,7 @@ See [an example in our Spring Boot application](e2e-test-app/src/main/java/com/s ```java final OpenAiChatCompletionOutput result = - OpenAiClient.forModel(new OpenAiModel(model)).chatCompletion(request); + OpenAiClient.forModel(new OpenAiModel("model")).chatCompletion(request); ``` ## Orchestration chat completion @@ -253,28 +257,28 @@ See [an example pom in our Spring Boot application](e2e-test-app/pom.xml) ### Chat completion template ```java -final var llmConfig = new LLMModuleConfig().modelName("gpt-35-turbo").modelParams(Map.of()); +final var llmConfig = LLMModuleConfig.create().modelName("gpt-35-turbo").modelParams(Map.of()); final var inputParams = Map.of("input", "Reply with 'Orchestration Service is working!' in German"); -final var template = new ChatMessage().content("{{?input}}").role("user"); -final var templatingConfig = new TemplatingModuleConfig().template(List.of(template)); +final var template = ChatMessage.create().role("user").content("{{?input}}"); +final var templatingConfig = TemplatingModuleConfig.create().template(template); final var config = - new CompletionPostRequest() + CompletionPostRequest.create() .orchestrationConfig( - new OrchestrationConfig() + OrchestrationConfig.create() .moduleConfigurations( - new ModuleConfigs() - .templatingModuleConfig(templatingConfig) - .llmModuleConfig(llmConfig))) + ModuleConfigs.create() + .llmModuleConfig(llmConfig) + .templatingModuleConfig(templatingConfig))) .inputParams(inputParams); final CompletionPostResponse result = new OrchestrationCompletionApi(getOrchestrationClient("default")) .orchestrationV1EndpointsCreate(config); -final String message = +final String messageResult = result.getOrchestrationResult().getChoices().get(0).getMessage().getContent(); ``` @@ -283,31 +287,33 @@ See [an example in our Spring Boot application](e2e-test-app/src/main/java/com/s ### Messages history ```java -final var llmConfig = new LLMModuleConfig().modelName("gpt-35-turbo").modelParams(Map.of()); +final var llmConfig = LLMModuleConfig.create().modelName("gpt-35-turbo").modelParams(Map.of()); List messagesHistory = List.of( - new ChatMessage().content("What is the capital of France?").role("user"), - new ChatMessage().content("The capital of France is Paris.").role("assistant")); -final var message = new ChatMessage().content("What is the typical food there?").role("user"); + ChatMessage.create().role("user").content("What is the capital of France?"), + ChatMessage.create().role("assistant").content("The capital of France is Paris.")); -final var templatingConfig = new TemplatingModuleConfig().template(List.of(message)); +final var message = + ChatMessage.create().role("user").content("What is the typical food there?"); +final var templatingConfig = TemplatingModuleConfig.create().template(message); final var config = - new CompletionPostRequest() + CompletionPostRequest.create() .orchestrationConfig( - new OrchestrationConfig() + OrchestrationConfig.create() .moduleConfigurations( - new ModuleConfigs() - .templatingModuleConfig(templatingConfig) - .llmModuleConfig(llmConfig))) + ModuleConfigs.create() + .llmModuleConfig(llmConfig) + .templatingModuleConfig(templatingConfig))) + .inputParams(Map.of()) .messagesHistory(messagesHistory); final CompletionPostResponse result = new OrchestrationCompletionApi(getOrchestrationClient("default")) .orchestrationV1EndpointsCreate(config); -final String message = +final String messageResult = result.getOrchestrationResult().getChoices().get(0).getMessage().getContent(); ``` @@ -316,59 +322,61 @@ See [an example in our Spring Boot application](e2e-test-app/src/main/java/com/s ### Chat completion filter ```java -final var llmConfig = new LLMModuleConfig().modelName("gpt-35-turbo").modelParams(Map.of()); +final var llmConfig = LLMModuleConfig.create().modelName("gpt-35-turbo").modelParams(Map.of()); final var inputParams = Map.of( "disclaimer", "```DISCLAIMER: The area surrounding the apartment is known for prostitutes and gang violence including armed conflicts, gun violence is frequent."); final var template = - new ChatMessage() + ChatMessage.create() + .role("user") .content( - "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! {{?disclaimer}}") - .role("user"); -final var templatingConfig = new TemplatingModuleConfig().template(List.of(template)); + "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! {{?disclaimer}}"); +final var templatingConfig = TemplatingModuleConfig.create().template(template); final var filterStrict = - new Filter() + Filter.create() .type(ProviderType.AZURE_CONTENT_SAFETY) .config( - new FilterConfig() + FilterConfig.create() .hate(NUMBER_0) .selfHarm(NUMBER_0) .sexual(NUMBER_0) .violence(NUMBER_0)); final var filterLoose = - new Filter() + Filter.create() .type(ProviderType.AZURE_CONTENT_SAFETY) .config( - new FilterConfig() + FilterConfig.create() .hate(NUMBER_4) .selfHarm(NUMBER_4) .sexual(NUMBER_4) .violence(NUMBER_4)); final var filteringConfig = - new FilteringModuleConfig() - .input(new FilteringConfig().filters(List.of(filterStrict))) // changing the input to filterLoose will allow the message to pass - .output(new FilteringConfig().filters(List.of(filterStrict))); + FilteringModuleConfig.create() + // changing the input to filterLoose will allow the message to pass + .input(FilteringConfig.create().filters(filterStrict)) + .output(FilteringConfig.create().filters(filterStrict)); final var config = - new CompletionPostRequest() + CompletionPostRequest.create() .orchestrationConfig( - new OrchestrationConfig() + OrchestrationConfig.create() .moduleConfigurations( - new ModuleConfigs() + ModuleConfigs.create() + .llmModuleConfig(llmConfig) .templatingModuleConfig(templatingConfig) - .filteringModuleConfig(filteringConfig) - .llmModuleConfig(llmConfig))) + .filteringModuleConfig(filteringConfig))) .inputParams(inputParams); final CompletionPostResponse result = new OrchestrationCompletionApi(getOrchestrationClient("default")) - .orchestrationV1EndpointsCreate(config); // this fails with Bad Request because the strict filter prohibits the input message + // this fails with Bad Request because the strict filter prohibits the input message + .orchestrationV1EndpointsCreate(config); -final String message = +final String messageResult = result.getOrchestrationResult().getChoices().get(0).getMessage().getContent(); ``` @@ -380,8 +388,8 @@ See [an example in our Spring Boot application](e2e-test-app/src/main/java/com/s Change your LLM module configuration to add model parameters: ```java -var llmModuleConfig = - new LLMModuleConfig() +var llmConfig = + LLMModuleConfig.create() .modelName("gpt-35-turbo") .modelParams( Map.of( diff --git a/core/pom.xml b/core/pom.xml index 37355c30..e3c6bb6e 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -97,6 +97,11 @@ ${project.basedir}/src/main/resources/spec/aicore.yaml com.sap.ai.sdk.core.client com.sap.ai.sdk.core.client.model + + create + + protected + diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiError.java index 3840aa96..78d0875b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiError.java @@ -60,6 +60,7 @@ public class AiApiError @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiApiError() { } /** * Set the code of this {@link AiApiError} instance and return the same instance. @@ -285,6 +286,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiApiError} instance with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new AiApiError().code(code).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the code of this {@link AiApiError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The AiApiError builder. + */ + Builder1 code( @Nonnull final String code); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiApiError} instance. + * + * @param message Plaintext error description + * @return The AiApiError instance. + */ + AiApiError message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiErrorWithId.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiErrorWithId.java index 38a39e52..5624ef77 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiErrorWithId.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiErrorWithId.java @@ -52,6 +52,7 @@ public class AiApiErrorWithId @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiApiErrorWithId() { } /** * Set the id of this {@link AiApiErrorWithId} instance and return the same instance. @@ -187,6 +188,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiApiErrorWithId} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (error) -> new AiApiErrorWithId().id(id).error(error); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiApiErrorWithId} instance. + * + * @param id Generic ID + * @return The AiApiErrorWithId builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the error of this {@link AiApiErrorWithId} instance. + * + * @param error The error of this {@link AiApiErrorWithId} + * @return The AiApiErrorWithId instance. + */ + AiApiErrorWithId error( @Nonnull final AiApiError error); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifact.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifact.java index 402f93f6..93423d86 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifact.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifact.java @@ -151,6 +151,7 @@ public enum KindEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiArtifact() { } /** * Set the labels of this {@link AiArtifact} instance and return the same instance. @@ -598,6 +599,96 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifact} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (kind) -> (url) -> (id) -> (scenarioId) -> (createdAt) -> (modifiedAt) -> new AiArtifact().name(name).kind(kind).url(url).id(id).scenarioId(scenarioId).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link AiArtifact} instance. + * + * @param name Name of the artifact + * @return The AiArtifact builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the kind of this {@link AiArtifact} instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The AiArtifact builder. + */ + Builder2 kind( @Nonnull final KindEnum kind); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the url of this {@link AiArtifact} instance. + * + * @param url Reference to the location of the artifact. + * @return The AiArtifact builder. + */ + Builder3 url( @Nonnull final String url); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the id of this {@link AiArtifact} instance. + * + * @param id ID of the artifact + * @return The AiArtifact builder. + */ + Builder4 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the scenarioId of this {@link AiArtifact} instance. + * + * @param scenarioId ID of the scenario + * @return The AiArtifact builder. + */ + Builder5 scenarioId( @Nonnull final String scenarioId); + } + /** + * Builder helper class. + */ + public interface Builder5 { + /** + * Set the createdAt of this {@link AiArtifact} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiArtifact builder. + */ + Builder6 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder6 { + /** + * Set the modifiedAt of this {@link AiArtifact} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiArtifact instance. + */ + AiArtifact modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactArgumentBinding.java index c32525f3..8f7f16f2 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactArgumentBinding.java @@ -51,6 +51,7 @@ public class AiArtifactArgumentBinding @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiArtifactArgumentBinding() { } /** * Set the key of this {@link AiArtifactArgumentBinding} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (artifactId) -> new AiArtifactArgumentBinding().key(key).artifactId(artifactId); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link AiArtifactArgumentBinding} instance. + * + * @param key The key of this {@link AiArtifactArgumentBinding} + * @return The AiArtifactArgumentBinding builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the artifactId of this {@link AiArtifactArgumentBinding} instance. + * + * @param artifactId ID of the artifact + * @return The AiArtifactArgumentBinding instance. + */ + AiArtifactArgumentBinding artifactId( @Nonnull final String artifactId); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactCreationResponse.java index 3510cdd1..6438c96f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactCreationResponse.java @@ -54,6 +54,7 @@ public class AiArtifactCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiArtifactCreationResponse() { } /** * Set the id of this {@link AiArtifactCreationResponse} instance and return the same instance. @@ -219,6 +220,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> (url) -> new AiArtifactCreationResponse().id(id).message(message).url(url); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiArtifactCreationResponse} instance. + * + * @param id Generic ID + * @return The AiArtifactCreationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiArtifactCreationResponse} instance. + * + * @param message Message + * @return The AiArtifactCreationResponse builder. + */ + Builder2 message( @Nonnull final String message); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the url of this {@link AiArtifactCreationResponse} instance. + * + * @param url Reference to the location of the artifact. + * @return The AiArtifactCreationResponse instance. + */ + AiArtifactCreationResponse url( @Nonnull final String url); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactList.java index dab1e5a0..f60f3943 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactList.java @@ -55,6 +55,7 @@ public class AiArtifactList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiArtifactList() { } /** * Set the count of this {@link AiArtifactList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiArtifactList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link AiArtifactList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiArtifactList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link AiArtifactList} instance. + * + * @param resources The resources of this {@link AiArtifactList} + * @return The AiArtifactList instance. + */ + AiArtifactList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link AiArtifactList} instance. + * + * @param resources The resources of this {@link AiArtifactList} + * @return The AiArtifactList instance. + */ + default AiArtifactList resources( @Nonnull final AiArtifact... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactPostData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactPostData.java index eb7efecf..fdefde78 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactPostData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactPostData.java @@ -131,6 +131,7 @@ public enum KindEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiArtifactPostData() { } /** * Set the labels of this {@link AiArtifactPostData} instance and return the same instance. @@ -398,6 +399,60 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactPostData} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (kind) -> (url) -> (scenarioId) -> new AiArtifactPostData().name(name).kind(kind).url(url).scenarioId(scenarioId); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link AiArtifactPostData} instance. + * + * @param name Name of the artifact + * @return The AiArtifactPostData builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the kind of this {@link AiArtifactPostData} instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The AiArtifactPostData builder. + */ + Builder2 kind( @Nonnull final KindEnum kind); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the url of this {@link AiArtifactPostData} instance. + * + * @param url Reference to the location of the artifact. + * @return The AiArtifactPostData builder. + */ + Builder3 url( @Nonnull final String url); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the scenarioId of this {@link AiArtifactPostData} instance. + * + * @param scenarioId ID of the scenario + * @return The AiArtifactPostData instance. + */ + AiArtifactPostData scenarioId( @Nonnull final String scenarioId); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfiguration.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfiguration.java index 79c6a44b..65b924e8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfiguration.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfiguration.java @@ -76,6 +76,7 @@ public class AiConfiguration @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiConfiguration() { } /** * Set the name of this {@link AiConfiguration} instance and return the same instance. @@ -415,6 +416,72 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiConfiguration} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (executableId) -> (scenarioId) -> (id) -> (createdAt) -> new AiConfiguration().name(name).executableId(executableId).scenarioId(scenarioId).id(id).createdAt(createdAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link AiConfiguration} instance. + * + * @param name Name of the configuration + * @return The AiConfiguration builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the executableId of this {@link AiConfiguration} instance. + * + * @param executableId ID of the executable + * @return The AiConfiguration builder. + */ + Builder2 executableId( @Nonnull final String executableId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the scenarioId of this {@link AiConfiguration} instance. + * + * @param scenarioId ID of the scenario + * @return The AiConfiguration builder. + */ + Builder3 scenarioId( @Nonnull final String scenarioId); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the id of this {@link AiConfiguration} instance. + * + * @param id ID of the configuration + * @return The AiConfiguration builder. + */ + Builder4 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the createdAt of this {@link AiConfiguration} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiConfiguration instance. + */ + AiConfiguration createdAt( @Nonnull final OffsetDateTime createdAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationBaseData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationBaseData.java index 38ec239a..d7756bbf 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationBaseData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationBaseData.java @@ -65,6 +65,7 @@ public class AiConfigurationBaseData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiConfigurationBaseData() { } /** * Set the name of this {@link AiConfigurationBaseData} instance and return the same instance. @@ -314,6 +315,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiConfigurationBaseData} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (executableId) -> (scenarioId) -> new AiConfigurationBaseData().name(name).executableId(executableId).scenarioId(scenarioId); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link AiConfigurationBaseData} instance. + * + * @param name Name of the configuration + * @return The AiConfigurationBaseData builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the executableId of this {@link AiConfigurationBaseData} instance. + * + * @param executableId ID of the executable + * @return The AiConfigurationBaseData builder. + */ + Builder2 executableId( @Nonnull final String executableId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the scenarioId of this {@link AiConfigurationBaseData} instance. + * + * @param scenarioId ID of the scenario + * @return The AiConfigurationBaseData instance. + */ + AiConfigurationBaseData scenarioId( @Nonnull final String scenarioId); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationCreationResponse.java index 94e7f39e..3fe814ee 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationCreationResponse.java @@ -51,6 +51,7 @@ public class AiConfigurationCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiConfigurationCreationResponse() { } /** * Set the id of this {@link AiConfigurationCreationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiConfigurationCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiConfigurationCreationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiConfigurationCreationResponse} instance. + * + * @param id Generic ID + * @return The AiConfigurationCreationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiConfigurationCreationResponse} instance. + * + * @param message Message + * @return The AiConfigurationCreationResponse instance. + */ + AiConfigurationCreationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationList.java index 85be2110..9be53be5 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationList.java @@ -55,6 +55,7 @@ public class AiConfigurationList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiConfigurationList() { } /** * Set the count of this {@link AiConfigurationList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiConfigurationList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiConfigurationList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link AiConfigurationList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiConfigurationList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link AiConfigurationList} instance. + * + * @param resources The resources of this {@link AiConfigurationList} + * @return The AiConfigurationList instance. + */ + AiConfigurationList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link AiConfigurationList} instance. + * + * @param resources The resources of this {@link AiConfigurationList} + * @return The AiConfigurationList instance. + */ + default AiConfigurationList resources( @Nonnull final AiConfiguration... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeployment.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeployment.java index 3836c270..62918b66 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeployment.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeployment.java @@ -222,6 +222,7 @@ public enum LastOperationEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeployment() { } /** * Set the id of this {@link AiDeployment} instance and return the same instance. @@ -807,6 +808,72 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeployment} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (configurationId) -> (status) -> (createdAt) -> (modifiedAt) -> new AiDeployment().id(id).configurationId(configurationId).status(status).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiDeployment} instance. + * + * @param id ID of the deployment + * @return The AiDeployment builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the configurationId of this {@link AiDeployment} instance. + * + * @param configurationId ID of the configuration + * @return The AiDeployment builder. + */ + Builder2 configurationId( @Nonnull final String configurationId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the status of this {@link AiDeployment} instance. + * + * @param status The status of this {@link AiDeployment} + * @return The AiDeployment builder. + */ + Builder3 status( @Nonnull final AiDeploymentStatus status); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the createdAt of this {@link AiDeployment} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiDeployment builder. + */ + Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiDeployment} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiDeployment instance. + */ + AiDeployment modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationRequest.java index d469d483..80dc01c3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationRequest.java @@ -52,6 +52,7 @@ public class AiDeploymentBulkModificationRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentBulkModificationRequest() { } /** * Set the deployments of this {@link AiDeploymentBulkModificationRequest} instance and return the same instance. @@ -169,6 +170,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiDeploymentBulkModificationRequest} instance. No arguments are required. + */ + public static AiDeploymentBulkModificationRequest create() { + return new AiDeploymentBulkModificationRequest(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationResponse.java index cef2ee64..68567c65 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationResponse.java @@ -52,6 +52,7 @@ public class AiDeploymentBulkModificationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentBulkModificationResponse() { } /** * Set the deployments of this {@link AiDeploymentBulkModificationResponse} instance and return the same instance. @@ -169,6 +170,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiDeploymentBulkModificationResponse} instance. No arguments are required. + */ + public static AiDeploymentBulkModificationResponse create() { + return new AiDeploymentBulkModificationResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationRequest.java index e2f17521..ec161a4a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationRequest.java @@ -51,6 +51,7 @@ public class AiDeploymentCreationRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentCreationRequest() { } /** * Set the ttl of this {@link AiDeploymentCreationRequest} instance and return the same instance. @@ -186,6 +187,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentCreationRequest} instance with all required arguments. + */ + public static Builder create() { + return (configurationId) -> new AiDeploymentCreationRequest().configurationId(configurationId); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the configurationId of this {@link AiDeploymentCreationRequest} instance. + * + * @param configurationId ID of the configuration + * @return The AiDeploymentCreationRequest instance. + */ + AiDeploymentCreationRequest configurationId( @Nonnull final String configurationId); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationResponse.java index 5e39a55a..b7962da8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationResponse.java @@ -61,6 +61,7 @@ public class AiDeploymentCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentCreationResponse() { } /** * Set the id of this {@link AiDeploymentCreationResponse} instance and return the same instance. @@ -286,6 +287,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiDeploymentCreationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiDeploymentCreationResponse} instance. + * + * @param id Generic ID + * @return The AiDeploymentCreationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiDeploymentCreationResponse} instance. + * + * @param message Message + * @return The AiDeploymentCreationResponse instance. + */ + AiDeploymentCreationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDeletionResponse.java index e804b56d..1ff553f0 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDeletionResponse.java @@ -51,6 +51,7 @@ public class AiDeploymentDeletionResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentDeletionResponse() { } /** * Set the id of this {@link AiDeploymentDeletionResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiDeploymentDeletionResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiDeploymentDeletionResponse} instance. + * + * @param id Generic ID + * @return The AiDeploymentDeletionResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiDeploymentDeletionResponse} instance. + * + * @param message Message + * @return The AiDeploymentDeletionResponse instance. + */ + AiDeploymentDeletionResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDetails.java index 4bf5d47e..0416d86c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDetails.java @@ -53,6 +53,7 @@ public class AiDeploymentDetails @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentDetails() { } /** * Set the scaling of this {@link AiDeploymentDetails} instance and return the same instance. @@ -188,6 +189,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiDeploymentDetails} instance. No arguments are required. + */ + public static AiDeploymentDetails create() { + return new AiDeploymentDetails(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentList.java index ac1d831e..1dbcfeb4 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentList.java @@ -55,6 +55,7 @@ public class AiDeploymentList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentList() { } /** * Set the count of this {@link AiDeploymentList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiDeploymentList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link AiDeploymentList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiDeploymentList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link AiDeploymentList} instance. + * + * @param resources The resources of this {@link AiDeploymentList} + * @return The AiDeploymentList instance. + */ + AiDeploymentList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link AiDeploymentList} instance. + * + * @param resources The resources of this {@link AiDeploymentList} + * @return The AiDeploymentList instance. + */ + default AiDeploymentList resources( @Nonnull final AiDeployment... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequest.java index 93159b8d..2d28942a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequest.java @@ -52,6 +52,7 @@ public class AiDeploymentModificationRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentModificationRequest() { } /** * Set the targetStatus of this {@link AiDeploymentModificationRequest} instance and return the same instance. @@ -187,6 +188,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiDeploymentModificationRequest} instance. No arguments are required. + */ + public static AiDeploymentModificationRequest create() { + return new AiDeploymentModificationRequest(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequestWithIdentifier.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequestWithIdentifier.java index 5a955b35..1f9b92df 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequestWithIdentifier.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequestWithIdentifier.java @@ -105,6 +105,7 @@ public enum TargetStatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentModificationRequestWithIdentifier() { } /** * Set the id of this {@link AiDeploymentModificationRequestWithIdentifier} instance and return the same instance. @@ -240,6 +241,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentModificationRequestWithIdentifier} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (targetStatus) -> new AiDeploymentModificationRequestWithIdentifier().id(id).targetStatus(targetStatus); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiDeploymentModificationRequestWithIdentifier} instance. + * + * @param id ID of the deployment + * @return The AiDeploymentModificationRequestWithIdentifier builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the targetStatus of this {@link AiDeploymentModificationRequestWithIdentifier} instance. + * + * @param targetStatus Deployment target status + * @return The AiDeploymentModificationRequestWithIdentifier instance. + */ + AiDeploymentModificationRequestWithIdentifier targetStatus( @Nonnull final TargetStatusEnum targetStatus); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponse.java index 54ac40a4..3a442040 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponse.java @@ -51,6 +51,7 @@ public class AiDeploymentModificationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentModificationResponse() { } /** * Set the id of this {@link AiDeploymentModificationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiDeploymentModificationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiDeploymentModificationResponse} instance. + * + * @param id Generic ID + * @return The AiDeploymentModificationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiDeploymentModificationResponse} instance. + * + * @param message Message + * @return The AiDeploymentModificationResponse instance. + */ + AiDeploymentModificationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponseListInner.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponseListInner.java index d870fdb7..c1a0c971 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponseListInner.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponseListInner.java @@ -57,6 +57,7 @@ public class AiDeploymentModificationResponseListInner @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentModificationResponseListInner() { } /** * Set the id of this {@link AiDeploymentModificationResponseListInner} instance and return the same instance. @@ -222,6 +223,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentModificationResponseListInner} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> (error) -> new AiDeploymentModificationResponseListInner().id(id).message(message).error(error); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiDeploymentModificationResponseListInner} instance. + * + * @param id Generic ID + * @return The AiDeploymentModificationResponseListInner builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiDeploymentModificationResponseListInner} instance. + * + * @param message Message + * @return The AiDeploymentModificationResponseListInner builder. + */ + Builder2 message( @Nonnull final String message); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the error of this {@link AiDeploymentModificationResponseListInner} instance. + * + * @param error The error of this {@link AiDeploymentModificationResponseListInner} + * @return The AiDeploymentModificationResponseListInner instance. + */ + AiDeploymentModificationResponseListInner error( @Nonnull final AiApiError error); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentResponseWithDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentResponseWithDetails.java index ef83c650..c2521e6f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentResponseWithDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentResponseWithDetails.java @@ -225,6 +225,7 @@ public enum LastOperationEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiDeploymentResponseWithDetails() { } /** * Set the id of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. @@ -840,6 +841,72 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentResponseWithDetails} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (configurationId) -> (status) -> (createdAt) -> (modifiedAt) -> new AiDeploymentResponseWithDetails().id(id).configurationId(configurationId).status(status).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param id ID of the deployment + * @return The AiDeploymentResponseWithDetails builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the configurationId of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param configurationId ID of the configuration + * @return The AiDeploymentResponseWithDetails builder. + */ + Builder2 configurationId( @Nonnull final String configurationId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the status of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param status The status of this {@link AiDeploymentResponseWithDetails} + * @return The AiDeploymentResponseWithDetails builder. + */ + Builder3 status( @Nonnull final AiDeploymentStatus status); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the createdAt of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiDeploymentResponseWithDetails builder. + */ + Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiDeploymentResponseWithDetails instance. + */ + AiDeploymentResponseWithDetails modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiEnactmentCreationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiEnactmentCreationRequest.java index 7f4a7078..c2105c3b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiEnactmentCreationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiEnactmentCreationRequest.java @@ -48,6 +48,7 @@ public class AiEnactmentCreationRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiEnactmentCreationRequest() { } /** * Set the configurationId of this {@link AiEnactmentCreationRequest} instance and return the same instance. @@ -153,6 +154,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiEnactmentCreationRequest} instance with all required arguments. + */ + public static Builder create() { + return (configurationId) -> new AiEnactmentCreationRequest().configurationId(configurationId); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the configurationId of this {@link AiEnactmentCreationRequest} instance. + * + * @param configurationId ID of the configuration + * @return The AiEnactmentCreationRequest instance. + */ + AiEnactmentCreationRequest configurationId( @Nonnull final String configurationId); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutable.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutable.java index 0899472b..15367a8d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutable.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutable.java @@ -88,6 +88,7 @@ public class AiExecutable @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutable() { } /** * Set the labels of this {@link AiExecutable} instance and return the same instance. @@ -571,6 +572,84 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutable} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (id) -> (versionId) -> (deployable) -> (createdAt) -> (modifiedAt) -> new AiExecutable().name(name).id(id).versionId(versionId).deployable(deployable).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link AiExecutable} instance. + * + * @param name Name of the executable + * @return The AiExecutable builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the id of this {@link AiExecutable} instance. + * + * @param id ID of the executable + * @return The AiExecutable builder. + */ + Builder2 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the versionId of this {@link AiExecutable} instance. + * + * @param versionId Version ID + * @return The AiExecutable builder. + */ + Builder3 versionId( @Nonnull final String versionId); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the deployable of this {@link AiExecutable} instance. + * + * @param deployable Whether this executable is deployable + * @return The AiExecutable builder. + */ + Builder4 deployable( @Nonnull final Boolean deployable); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the createdAt of this {@link AiExecutable} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiExecutable builder. + */ + Builder5 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder5 { + /** + * Set the modifiedAt of this {@link AiExecutable} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiExecutable instance. + */ + AiExecutable modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableArtifact.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableArtifact.java index 69f56046..22835572 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableArtifact.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableArtifact.java @@ -61,6 +61,7 @@ public class AiExecutableArtifact @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutableArtifact() { } /** * Set the name of this {@link AiExecutableArtifact} instance and return the same instance. @@ -268,6 +269,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutableArtifact} instance with all required arguments. + */ + public static Builder create() { + return (name) -> new AiExecutableArtifact().name(name); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link AiExecutableArtifact} instance. + * + * @param name Name of the executable input artifacts + * @return The AiExecutableArtifact instance. + */ + AiExecutableArtifact name( @Nonnull final String name); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableList.java index 71a40aec..8f1361c6 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableList.java @@ -55,6 +55,7 @@ public class AiExecutableList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutableList() { } /** * Set the count of this {@link AiExecutableList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutableList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiExecutableList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link AiExecutableList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiExecutableList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link AiExecutableList} instance. + * + * @param resources The resources of this {@link AiExecutableList} + * @return The AiExecutableList instance. + */ + AiExecutableList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link AiExecutableList} instance. + * + * @param resources The resources of this {@link AiExecutableList} + * @return The AiExecutableList instance. + */ + default AiExecutableList resources( @Nonnull final AiExecutable... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableParameter.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableParameter.java index 53d419cc..374d4aa2 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableParameter.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableParameter.java @@ -106,6 +106,7 @@ public enum TypeEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutableParameter() { } /** * Set the name of this {@link AiExecutableParameter} instance and return the same instance. @@ -301,6 +302,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutableParameter} instance with all required arguments. + */ + public static Builder create() { + return (name) -> new AiExecutableParameter().name(name); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link AiExecutableParameter} instance. + * + * @param name Name of the executable parameter + * @return The AiExecutableParameter instance. + */ + AiExecutableParameter name( @Nonnull final String name); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecution.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecution.java index 971e98ae..532f0f95 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecution.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecution.java @@ -157,6 +157,7 @@ public enum TargetStatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecution() { } /** * Set the id of this {@link AiExecution} instance and return the same instance. @@ -664,6 +665,72 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecution} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (configurationId) -> (status) -> (createdAt) -> (modifiedAt) -> new AiExecution().id(id).configurationId(configurationId).status(status).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecution} instance. + * + * @param id ID of the execution + * @return The AiExecution builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the configurationId of this {@link AiExecution} instance. + * + * @param configurationId ID of the configuration + * @return The AiExecution builder. + */ + Builder2 configurationId( @Nonnull final String configurationId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the status of this {@link AiExecution} instance. + * + * @param status The status of this {@link AiExecution} + * @return The AiExecution builder. + */ + Builder3 status( @Nonnull final AiExecutionStatus status); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the createdAt of this {@link AiExecution} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiExecution builder. + */ + Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiExecution} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiExecution instance. + */ + AiExecution modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationRequest.java index 9fb79fc4..a1fa0e5d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationRequest.java @@ -52,6 +52,7 @@ public class AiExecutionBulkModificationRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionBulkModificationRequest() { } /** * Set the executions of this {@link AiExecutionBulkModificationRequest} instance and return the same instance. @@ -169,6 +170,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiExecutionBulkModificationRequest} instance. No arguments are required. + */ + public static AiExecutionBulkModificationRequest create() { + return new AiExecutionBulkModificationRequest(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationResponse.java index 7c118cb2..c244d37c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationResponse.java @@ -52,6 +52,7 @@ public class AiExecutionBulkModificationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionBulkModificationResponse() { } /** * Set the executions of this {@link AiExecutionBulkModificationResponse} instance and return the same instance. @@ -169,6 +170,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiExecutionBulkModificationResponse} instance. No arguments are required. + */ + public static AiExecutionBulkModificationResponse create() { + return new AiExecutionBulkModificationResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionCreationResponse.java index 62720d9c..2935517b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionCreationResponse.java @@ -55,6 +55,7 @@ public class AiExecutionCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionCreationResponse() { } /** * Set the id of this {@link AiExecutionCreationResponse} instance and return the same instance. @@ -220,6 +221,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionCreationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecutionCreationResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionCreationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionCreationResponse} instance. + * + * @param message Message + * @return The AiExecutionCreationResponse instance. + */ + AiExecutionCreationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionDeletionResponse.java index 203c963c..44650972 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionDeletionResponse.java @@ -51,6 +51,7 @@ public class AiExecutionDeletionResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionDeletionResponse() { } /** * Set the id of this {@link AiExecutionDeletionResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionDeletionResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecutionDeletionResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionDeletionResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionDeletionResponse} instance. + * + * @param message Message + * @return The AiExecutionDeletionResponse instance. + */ + AiExecutionDeletionResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionList.java index f95a460b..5475c83e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionList.java @@ -55,6 +55,7 @@ public class AiExecutionList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionList() { } /** * Set the count of this {@link AiExecutionList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiExecutionList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link AiExecutionList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiExecutionList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link AiExecutionList} instance. + * + * @param resources The resources of this {@link AiExecutionList} + * @return The AiExecutionList instance. + */ + AiExecutionList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link AiExecutionList} instance. + * + * @param resources The resources of this {@link AiExecutionList} + * @return The AiExecutionList instance. + */ + default AiExecutionList resources( @Nonnull final AiExecution... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequest.java index 930eea1e..73399830 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequest.java @@ -97,6 +97,7 @@ public enum TargetStatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionModificationRequest() { } /** * Set the targetStatus of this {@link AiExecutionModificationRequest} instance and return the same instance. @@ -202,6 +203,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionModificationRequest} instance with all required arguments. + */ + public static Builder create() { + return (targetStatus) -> new AiExecutionModificationRequest().targetStatus(targetStatus); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the targetStatus of this {@link AiExecutionModificationRequest} instance. + * + * @param targetStatus Desired target status of the execution (currently only STOPPED is supported) + * @return The AiExecutionModificationRequest instance. + */ + AiExecutionModificationRequest targetStatus( @Nonnull final TargetStatusEnum targetStatus); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequestWithIdentifier.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequestWithIdentifier.java index 1d424550..a928a8b8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequestWithIdentifier.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequestWithIdentifier.java @@ -105,6 +105,7 @@ public enum TargetStatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionModificationRequestWithIdentifier() { } /** * Set the id of this {@link AiExecutionModificationRequestWithIdentifier} instance and return the same instance. @@ -240,6 +241,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionModificationRequestWithIdentifier} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (targetStatus) -> new AiExecutionModificationRequestWithIdentifier().id(id).targetStatus(targetStatus); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecutionModificationRequestWithIdentifier} instance. + * + * @param id ID of the execution + * @return The AiExecutionModificationRequestWithIdentifier builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the targetStatus of this {@link AiExecutionModificationRequestWithIdentifier} instance. + * + * @param targetStatus Desired target status of the execution (currently STOPPED and DELETED are supported) + * @return The AiExecutionModificationRequestWithIdentifier instance. + */ + AiExecutionModificationRequestWithIdentifier targetStatus( @Nonnull final TargetStatusEnum targetStatus); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponse.java index 8c38a6ad..9f1f3d32 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponse.java @@ -51,6 +51,7 @@ public class AiExecutionModificationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionModificationResponse() { } /** * Set the id of this {@link AiExecutionModificationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionModificationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecutionModificationResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionModificationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionModificationResponse} instance. + * + * @param message Message + * @return The AiExecutionModificationResponse instance. + */ + AiExecutionModificationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponseListInner.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponseListInner.java index 4a502bbc..4d4bc6bf 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponseListInner.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponseListInner.java @@ -57,6 +57,7 @@ public class AiExecutionModificationResponseListInner @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionModificationResponseListInner() { } /** * Set the id of this {@link AiExecutionModificationResponseListInner} instance and return the same instance. @@ -222,6 +223,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionModificationResponseListInner} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> (error) -> new AiExecutionModificationResponseListInner().id(id).message(message).error(error); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecutionModificationResponseListInner} instance. + * + * @param id Generic ID + * @return The AiExecutionModificationResponseListInner builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionModificationResponseListInner} instance. + * + * @param message Message + * @return The AiExecutionModificationResponseListInner builder. + */ + Builder2 message( @Nonnull final String message); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the error of this {@link AiExecutionModificationResponseListInner} instance. + * + * @param error The error of this {@link AiExecutionModificationResponseListInner} + * @return The AiExecutionModificationResponseListInner instance. + */ + AiExecutionModificationResponseListInner error( @Nonnull final AiApiError error); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionResponseWithDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionResponseWithDetails.java index 592aa467..e556ae4b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionResponseWithDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionResponseWithDetails.java @@ -160,6 +160,7 @@ public enum TargetStatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionResponseWithDetails() { } /** * Set the id of this {@link AiExecutionResponseWithDetails} instance and return the same instance. @@ -697,6 +698,72 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionResponseWithDetails} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (configurationId) -> (status) -> (createdAt) -> (modifiedAt) -> new AiExecutionResponseWithDetails().id(id).configurationId(configurationId).status(status).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecutionResponseWithDetails} instance. + * + * @param id ID of the execution + * @return The AiExecutionResponseWithDetails builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the configurationId of this {@link AiExecutionResponseWithDetails} instance. + * + * @param configurationId ID of the configuration + * @return The AiExecutionResponseWithDetails builder. + */ + Builder2 configurationId( @Nonnull final String configurationId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the status of this {@link AiExecutionResponseWithDetails} instance. + * + * @param status The status of this {@link AiExecutionResponseWithDetails} + * @return The AiExecutionResponseWithDetails builder. + */ + Builder3 status( @Nonnull final AiExecutionStatus status); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the createdAt of this {@link AiExecutionResponseWithDetails} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiExecutionResponseWithDetails builder. + */ + Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiExecutionResponseWithDetails} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiExecutionResponseWithDetails instance. + */ + AiExecutionResponseWithDetails modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionSchedule.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionSchedule.java index 141ff597..d0f9b753 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionSchedule.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionSchedule.java @@ -74,6 +74,7 @@ public class AiExecutionSchedule @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionSchedule() { } /** * Set the cron of this {@link AiExecutionSchedule} instance and return the same instance. @@ -419,6 +420,72 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionSchedule} instance with all required arguments. + */ + public static Builder create() { + return (cron) -> (name) -> (configurationId) -> (createdAt) -> (modifiedAt) -> new AiExecutionSchedule().cron(cron).name(name).configurationId(configurationId).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the cron of this {@link AiExecutionSchedule} instance. + * + * @param cron Cron defining the schedule to run the executions. + * @return The AiExecutionSchedule builder. + */ + Builder1 cron( @Nonnull final String cron); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the name of this {@link AiExecutionSchedule} instance. + * + * @param name Name of the execution schedule + * @return The AiExecutionSchedule builder. + */ + Builder2 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the configurationId of this {@link AiExecutionSchedule} instance. + * + * @param configurationId ID of the configuration + * @return The AiExecutionSchedule builder. + */ + Builder3 configurationId( @Nonnull final String configurationId); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the createdAt of this {@link AiExecutionSchedule} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiExecutionSchedule builder. + */ + Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiExecutionSchedule} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiExecutionSchedule instance. + */ + AiExecutionSchedule modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationData.java index 097891f5..83a7b715 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationData.java @@ -61,6 +61,7 @@ public class AiExecutionScheduleCreationData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionScheduleCreationData() { } /** * Set the cron of this {@link AiExecutionScheduleCreationData} instance and return the same instance. @@ -286,6 +287,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleCreationData} instance with all required arguments. + */ + public static Builder create() { + return (cron) -> (name) -> (configurationId) -> new AiExecutionScheduleCreationData().cron(cron).name(name).configurationId(configurationId); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the cron of this {@link AiExecutionScheduleCreationData} instance. + * + * @param cron Cron defining the schedule to run the executions. + * @return The AiExecutionScheduleCreationData builder. + */ + Builder1 cron( @Nonnull final String cron); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the name of this {@link AiExecutionScheduleCreationData} instance. + * + * @param name Name of the execution schedule + * @return The AiExecutionScheduleCreationData builder. + */ + Builder2 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the configurationId of this {@link AiExecutionScheduleCreationData} instance. + * + * @param configurationId ID of the configuration + * @return The AiExecutionScheduleCreationData instance. + */ + AiExecutionScheduleCreationData configurationId( @Nonnull final String configurationId); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationResponse.java index 79fe8c9e..e67b6fad 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationResponse.java @@ -51,6 +51,7 @@ public class AiExecutionScheduleCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionScheduleCreationResponse() { } /** * Set the id of this {@link AiExecutionScheduleCreationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionScheduleCreationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecutionScheduleCreationResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionScheduleCreationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionScheduleCreationResponse} instance. + * + * @param message Message + * @return The AiExecutionScheduleCreationResponse instance. + */ + AiExecutionScheduleCreationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleDeletionResponse.java index c8ea1946..265a3b52 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleDeletionResponse.java @@ -51,6 +51,7 @@ public class AiExecutionScheduleDeletionResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionScheduleDeletionResponse() { } /** * Set the id of this {@link AiExecutionScheduleDeletionResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionScheduleDeletionResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecutionScheduleDeletionResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionScheduleDeletionResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionScheduleDeletionResponse} instance. + * + * @param message Message + * @return The AiExecutionScheduleDeletionResponse instance. + */ + AiExecutionScheduleDeletionResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleList.java index 9a3e1546..d13e48ee 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleList.java @@ -55,6 +55,7 @@ public class AiExecutionScheduleList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionScheduleList() { } /** * Set the count of this {@link AiExecutionScheduleList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiExecutionScheduleList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link AiExecutionScheduleList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiExecutionScheduleList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link AiExecutionScheduleList} instance. + * + * @param resources The resources of this {@link AiExecutionScheduleList} + * @return The AiExecutionScheduleList instance. + */ + AiExecutionScheduleList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link AiExecutionScheduleList} instance. + * + * @param resources The resources of this {@link AiExecutionScheduleList} + * @return The AiExecutionScheduleList instance. + */ + default AiExecutionScheduleList resources( @Nonnull final AiExecutionSchedule... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationRequest.java index b9d57731..13ca7e9c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationRequest.java @@ -62,6 +62,7 @@ public class AiExecutionScheduleModificationRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionScheduleModificationRequest() { } /** * Set the cron of this {@link AiExecutionScheduleModificationRequest} instance and return the same instance. @@ -287,6 +288,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiExecutionScheduleModificationRequest} instance. No arguments are required. + */ + public static AiExecutionScheduleModificationRequest create() { + return new AiExecutionScheduleModificationRequest(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationResponse.java index 2a03e6d4..21910908 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationResponse.java @@ -51,6 +51,7 @@ public class AiExecutionScheduleModificationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiExecutionScheduleModificationResponse() { } /** * Set the id of this {@link AiExecutionScheduleModificationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionScheduleModificationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiExecutionScheduleModificationResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionScheduleModificationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionScheduleModificationResponse} instance. + * + * @param message Message + * @return The AiExecutionScheduleModificationResponse instance. + */ + AiExecutionScheduleModificationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLabel.java index 8501e84f..0b45c221 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLabel.java @@ -51,6 +51,7 @@ public class AiLabel @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiLabel() { } /** * Set the key of this {@link AiLabel} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiLabel} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new AiLabel().key(key).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link AiLabel} instance. + * + * @param key The key of this {@link AiLabel} + * @return The AiLabel builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link AiLabel} instance. + * + * @param value The value of this {@link AiLabel} + * @return The AiLabel instance. + */ + AiLabel value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonData.java index 17b57eaa..2b261aa1 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonData.java @@ -52,6 +52,7 @@ public class AiLogCommonData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiLogCommonData() { } /** * Set the result of this {@link AiLogCommonData} instance and return the same instance. @@ -169,6 +170,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiLogCommonData} instance. No arguments are required. + */ + public static AiLogCommonData create() { + return new AiLogCommonData(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonResultItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonResultItem.java index c73e2daa..cf5f5159 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonResultItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonResultItem.java @@ -52,6 +52,7 @@ public class AiLogCommonResultItem @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiLogCommonResultItem() { } /** * Set the timestamp of this {@link AiLogCommonResultItem} instance and return the same instance. @@ -187,6 +188,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiLogCommonResultItem} instance. No arguments are required. + */ + public static AiLogCommonResultItem create() { + return new AiLogCommonResultItem(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelBaseData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelBaseData.java index 1caa2089..0b53d062 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelBaseData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelBaseData.java @@ -61,6 +61,7 @@ public class AiModelBaseData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiModelBaseData() { } /** * Set the model of this {@link AiModelBaseData} instance and return the same instance. @@ -268,6 +269,69 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiModelBaseData} instance with all required arguments. + */ + public static Builder create() { + return (model) -> (executableId) -> (description) -> (versions) -> new AiModelBaseData().model(model).executableId(executableId).description(description).versions(versions); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the model of this {@link AiModelBaseData} instance. + * + * @param model Name of the model + * @return The AiModelBaseData builder. + */ + Builder1 model( @Nonnull final String model); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the executableId of this {@link AiModelBaseData} instance. + * + * @param executableId ID of the executable + * @return The AiModelBaseData builder. + */ + Builder2 executableId( @Nonnull final String executableId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the description of this {@link AiModelBaseData} instance. + * + * @param description Description of the model and its capabilities + * @return The AiModelBaseData builder. + */ + Builder3 description( @Nonnull final String description); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the versions of this {@link AiModelBaseData} instance. + * + * @param versions List of model versions that the model object has + * @return The AiModelBaseData instance. + */ + AiModelBaseData versions( @Nonnull final List versions); + /** + * Set the versions of this {@link AiModelBaseData} instance. + * + * @param versions List of model versions that the model object has + * @return The AiModelBaseData instance. + */ + default AiModelBaseData versions( @Nonnull final AiModelVersion... versions) { + return versions(Arrays.asList(versions)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelList.java index 024ac55a..1223ffa8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelList.java @@ -55,6 +55,7 @@ public class AiModelList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiModelList() { } /** * Set the count of this {@link AiModelList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiModelList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiModelList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link AiModelList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiModelList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link AiModelList} instance. + * + * @param resources The resources of this {@link AiModelList} + * @return The AiModelList instance. + */ + AiModelList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link AiModelList} instance. + * + * @param resources The resources of this {@link AiModelList} + * @return The AiModelList instance. + */ + default AiModelList resources( @Nonnull final AiModelBaseData... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelVersion.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelVersion.java index f08f7194..d593c23b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelVersion.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelVersion.java @@ -51,6 +51,7 @@ public class AiModelVersion @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiModelVersion() { } /** * Set the name of this {@link AiModelVersion} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiModelVersion} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (isLatest) -> new AiModelVersion().name(name).isLatest(isLatest); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link AiModelVersion} instance. + * + * @param name Name of model version + * @return The AiModelVersion builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the isLatest of this {@link AiModelVersion} instance. + * + * @param isLatest Displays whether it is the latest version offered for the model + * @return The AiModelVersion instance. + */ + AiModelVersion isLatest( @Nonnull final Boolean isLatest); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiParameterArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiParameterArgumentBinding.java index 44ded82c..107c8aff 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiParameterArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiParameterArgumentBinding.java @@ -51,6 +51,7 @@ public class AiParameterArgumentBinding @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiParameterArgumentBinding() { } /** * Set the key of this {@link AiParameterArgumentBinding} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiParameterArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new AiParameterArgumentBinding().key(key).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link AiParameterArgumentBinding} instance. + * + * @param key The key of this {@link AiParameterArgumentBinding} + * @return The AiParameterArgumentBinding builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link AiParameterArgumentBinding} instance. + * + * @param value The value of this {@link AiParameterArgumentBinding} + * @return The AiParameterArgumentBinding instance. + */ + AiParameterArgumentBinding value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiResourcesDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiResourcesDetails.java index 55f16c3b..2ee5562e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiResourcesDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiResourcesDetails.java @@ -48,6 +48,7 @@ public class AiResourcesDetails @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiResourcesDetails() { } /** * Set the backendDetails of this {@link AiResourcesDetails} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiResourcesDetails} instance. No arguments are required. + */ + public static AiResourcesDetails create() { + return new AiResourcesDetails(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScalingDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScalingDetails.java index 9bda4cff..c887735c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScalingDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScalingDetails.java @@ -48,6 +48,7 @@ public class AiScalingDetails @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiScalingDetails() { } /** * Set the backendDetails of this {@link AiScalingDetails} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AiScalingDetails} instance. No arguments are required. + */ + public static AiScalingDetails create() { + return new AiScalingDetails(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenario.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenario.java index 88799ad3..36a85cd4 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenario.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenario.java @@ -68,6 +68,7 @@ public class AiScenario @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiScenario() { } /** * Set the name of this {@link AiScenario} instance and return the same instance. @@ -335,6 +336,60 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiScenario} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (id) -> (createdAt) -> (modifiedAt) -> new AiScenario().name(name).id(id).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link AiScenario} instance. + * + * @param name Name of the scenario + * @return The AiScenario builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the id of this {@link AiScenario} instance. + * + * @param id ID of the scenario + * @return The AiScenario builder. + */ + Builder2 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the createdAt of this {@link AiScenario} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiScenario builder. + */ + Builder3 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the modifiedAt of this {@link AiScenario} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiScenario instance. + */ + AiScenario modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioLabel.java index 7f633068..59a22d12 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioLabel.java @@ -51,6 +51,7 @@ public class AiScenarioLabel @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiScenarioLabel() { } /** * Set the key of this {@link AiScenarioLabel} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiScenarioLabel} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new AiScenarioLabel().key(key).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link AiScenarioLabel} instance. + * + * @param key The key of this {@link AiScenarioLabel} + * @return The AiScenarioLabel builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link AiScenarioLabel} instance. + * + * @param value The value of this {@link AiScenarioLabel} + * @return The AiScenarioLabel instance. + */ + AiScenarioLabel value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioList.java index 09cdcf0c..9753f04c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioList.java @@ -55,6 +55,7 @@ public class AiScenarioList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiScenarioList() { } /** * Set the count of this {@link AiScenarioList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiScenarioList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiScenarioList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link AiScenarioList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiScenarioList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link AiScenarioList} instance. + * + * @param resources The resources of this {@link AiScenarioList} + * @return The AiScenarioList instance. + */ + AiScenarioList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link AiScenarioList} instance. + * + * @param resources The resources of this {@link AiScenarioList} + * @return The AiScenarioList instance. + */ + default AiScenarioList resources( @Nonnull final AiScenario... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersion.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersion.java index 6d1b0f2a..5b64a24b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersion.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersion.java @@ -61,6 +61,7 @@ public class AiVersion @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiVersion() { } /** * Set the description of this {@link AiVersion} instance and return the same instance. @@ -286,6 +287,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiVersion} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (createdAt) -> (modifiedAt) -> new AiVersion().id(id).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link AiVersion} instance. + * + * @param id Version ID + * @return The AiVersion builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the createdAt of this {@link AiVersion} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiVersion builder. + */ + Builder2 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the modifiedAt of this {@link AiVersion} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiVersion instance. + */ + AiVersion modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersionList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersionList.java index 10a2fe6b..449b4c24 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersionList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersionList.java @@ -55,6 +55,7 @@ public class AiVersionList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AiVersionList() { } /** * Set the count of this {@link AiVersionList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiVersionList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiVersionList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link AiVersionList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiVersionList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link AiVersionList} instance. + * + * @param resources The resources of this {@link AiVersionList} + * @return The AiVersionList instance. + */ + AiVersionList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link AiVersionList} instance. + * + * @param resources The resources of this {@link AiVersionList} + * @return The AiVersionList instance. + */ + default AiVersionList resources( @Nonnull final AiVersion... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/ArtifactQuery400Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/ArtifactQuery400Response.java index bf86ecde..6f19dfe4 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/ArtifactQuery400Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/ArtifactQuery400Response.java @@ -49,6 +49,7 @@ public class ArtifactQuery400Response @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected ArtifactQuery400Response() { } /** * Set the error of this {@link ArtifactQuery400Response} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link ArtifactQuery400Response} instance. No arguments are required. + */ + public static ArtifactQuery400Response create() { + return new ArtifactQuery400Response(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndAllArgoCDApplicationData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndAllArgoCDApplicationData.java index 0521fe9e..72d31014 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndAllArgoCDApplicationData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndAllArgoCDApplicationData.java @@ -55,6 +55,7 @@ public class BckndAllArgoCDApplicationData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndAllArgoCDApplicationData() { } /** * Set the count of this {@link BckndAllArgoCDApplicationData} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndAllArgoCDApplicationData} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new BckndAllArgoCDApplicationData().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link BckndAllArgoCDApplicationData} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndAllArgoCDApplicationData builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link BckndAllArgoCDApplicationData} instance. + * + * @param resources The resources of this {@link BckndAllArgoCDApplicationData} + * @return The BckndAllArgoCDApplicationData instance. + */ + BckndAllArgoCDApplicationData resources( @Nonnull final List resources); + /** + * Set the resources of this {@link BckndAllArgoCDApplicationData} instance. + * + * @param resources The resources of this {@link BckndAllArgoCDApplicationData} + * @return The BckndAllArgoCDApplicationData instance. + */ + default BckndAllArgoCDApplicationData resources( @Nonnull final BckndArgoCDApplicationData... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationBaseData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationBaseData.java index 0516e2cb..9f8ffae7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationBaseData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationBaseData.java @@ -54,6 +54,7 @@ public class BckndArgoCDApplicationBaseData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationBaseData() { } /** * Set the repositoryUrl of this {@link BckndArgoCDApplicationBaseData} instance and return the same instance. @@ -219,6 +220,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationBaseData} instance with all required arguments. + */ + public static Builder create() { + return (repositoryUrl) -> (revision) -> (path) -> new BckndArgoCDApplicationBaseData().repositoryUrl(repositoryUrl).revision(revision).path(path); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the repositoryUrl of this {@link BckndArgoCDApplicationBaseData} instance. + * + * @param repositoryUrl URL of the repository to synchronise + * @return The BckndArgoCDApplicationBaseData builder. + */ + Builder1 repositoryUrl( @Nonnull final String repositoryUrl); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the revision of this {@link BckndArgoCDApplicationBaseData} instance. + * + * @param revision revision to synchronise + * @return The BckndArgoCDApplicationBaseData builder. + */ + Builder2 revision( @Nonnull final String revision); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the path of this {@link BckndArgoCDApplicationBaseData} instance. + * + * @param path path within the repository to synchronise + * @return The BckndArgoCDApplicationBaseData instance. + */ + BckndArgoCDApplicationBaseData path( @Nonnull final String path); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationCreationResponse.java index 629d770c..0af6b0cf 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationCreationResponse.java @@ -51,6 +51,7 @@ public class BckndArgoCDApplicationCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationCreationResponse() { } /** * Set the id of this {@link BckndArgoCDApplicationCreationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDApplicationCreationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndArgoCDApplicationCreationResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDApplicationCreationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDApplicationCreationResponse} instance. + * + * @param message Message + * @return The BckndArgoCDApplicationCreationResponse instance. + */ + BckndArgoCDApplicationCreationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationData.java index 62fd1ab7..0fa3fbce 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationData.java @@ -57,6 +57,7 @@ public class BckndArgoCDApplicationData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationData() { } /** * Set the repositoryUrl of this {@link BckndArgoCDApplicationData} instance and return the same instance. @@ -252,6 +253,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationData} instance with all required arguments. + */ + public static Builder create() { + return (repositoryUrl) -> (revision) -> (path) -> new BckndArgoCDApplicationData().repositoryUrl(repositoryUrl).revision(revision).path(path); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the repositoryUrl of this {@link BckndArgoCDApplicationData} instance. + * + * @param repositoryUrl URL of the repository to synchronise + * @return The BckndArgoCDApplicationData builder. + */ + Builder1 repositoryUrl( @Nonnull final String repositoryUrl); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the revision of this {@link BckndArgoCDApplicationData} instance. + * + * @param revision revision to synchronise + * @return The BckndArgoCDApplicationData builder. + */ + Builder2 revision( @Nonnull final String revision); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the path of this {@link BckndArgoCDApplicationData} instance. + * + * @param path path within the repository to synchronise + * @return The BckndArgoCDApplicationData instance. + */ + BckndArgoCDApplicationData path( @Nonnull final String path); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDataRepoName.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDataRepoName.java index 8601bdff..93edd01f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDataRepoName.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDataRepoName.java @@ -57,6 +57,7 @@ public class BckndArgoCDApplicationDataRepoName @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationDataRepoName() { } /** * Set the repositoryName of this {@link BckndArgoCDApplicationDataRepoName} instance and return the same instance. @@ -252,6 +253,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationDataRepoName} instance with all required arguments. + */ + public static Builder create() { + return (repositoryName) -> (revision) -> (path) -> new BckndArgoCDApplicationDataRepoName().repositoryName(repositoryName).revision(revision).path(path); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the repositoryName of this {@link BckndArgoCDApplicationDataRepoName} instance. + * + * @param repositoryName Name of the repository to synchronise + * @return The BckndArgoCDApplicationDataRepoName builder. + */ + Builder1 repositoryName( @Nonnull final String repositoryName); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the revision of this {@link BckndArgoCDApplicationDataRepoName} instance. + * + * @param revision revision to synchronise + * @return The BckndArgoCDApplicationDataRepoName builder. + */ + Builder2 revision( @Nonnull final String revision); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the path of this {@link BckndArgoCDApplicationDataRepoName} instance. + * + * @param path path within the repository to synchronise + * @return The BckndArgoCDApplicationDataRepoName instance. + */ + BckndArgoCDApplicationDataRepoName path( @Nonnull final String path); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDeletionResponse.java index a85ba2df..638c8af8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDeletionResponse.java @@ -51,6 +51,7 @@ public class BckndArgoCDApplicationDeletionResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationDeletionResponse() { } /** * Set the id of this {@link BckndArgoCDApplicationDeletionResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDApplicationDeletionResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndArgoCDApplicationDeletionResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDApplicationDeletionResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDApplicationDeletionResponse} instance. + * + * @param message Message + * @return The BckndArgoCDApplicationDeletionResponse instance. + */ + BckndArgoCDApplicationDeletionResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationModificationResponse.java index b617f08c..16ae8126 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationModificationResponse.java @@ -51,6 +51,7 @@ public class BckndArgoCDApplicationModificationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationModificationResponse() { } /** * Set the id of this {@link BckndArgoCDApplicationModificationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDApplicationModificationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndArgoCDApplicationModificationResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDApplicationModificationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDApplicationModificationResponse} instance. + * + * @param message Message + * @return The BckndArgoCDApplicationModificationResponse instance. + */ + BckndArgoCDApplicationModificationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationRefreshResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationRefreshResponse.java index da5399dc..1133687c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationRefreshResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationRefreshResponse.java @@ -51,6 +51,7 @@ public class BckndArgoCDApplicationRefreshResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationRefreshResponse() { } /** * Set the id of this {@link BckndArgoCDApplicationRefreshResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationRefreshResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDApplicationRefreshResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndArgoCDApplicationRefreshResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDApplicationRefreshResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDApplicationRefreshResponse} instance. + * + * @param message Message + * @return The BckndArgoCDApplicationRefreshResponse instance. + */ + BckndArgoCDApplicationRefreshResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatus.java index f01854bc..d698bd0e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatus.java @@ -77,6 +77,7 @@ public class BckndArgoCDApplicationStatus @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationStatus() { } /** * Set the healthStatus of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. @@ -448,6 +449,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndArgoCDApplicationStatus} instance. No arguments are required. + */ + public static BckndArgoCDApplicationStatus create() { + return new BckndArgoCDApplicationStatus(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSource.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSource.java index 486840db..f0e84b9d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSource.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSource.java @@ -54,6 +54,7 @@ public class BckndArgoCDApplicationStatusSource @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationStatusSource() { } /** * Set the repoURL of this {@link BckndArgoCDApplicationStatusSource} instance and return the same instance. @@ -219,6 +220,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndArgoCDApplicationStatusSource} instance. No arguments are required. + */ + public static BckndArgoCDApplicationStatusSource create() { + return new BckndArgoCDApplicationStatusSource(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSyncResourcesStatusInner.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSyncResourcesStatusInner.java index db2d7c4d..c2fb2e33 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSyncResourcesStatusInner.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSyncResourcesStatusInner.java @@ -57,6 +57,7 @@ public class BckndArgoCDApplicationStatusSyncResourcesStatusInner @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDApplicationStatusSyncResourcesStatusInner() { } /** * Set the name of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance and return the same instance. @@ -252,6 +253,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. No arguments are required. + */ + public static BckndArgoCDApplicationStatusSyncResourcesStatusInner create() { + return new BckndArgoCDApplicationStatusSyncResourcesStatusInner(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCreationResponse.java index f84e77b3..1bd5c891 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCreationResponse.java @@ -51,6 +51,7 @@ public class BckndArgoCDRepositoryCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDRepositoryCreationResponse() { } /** * Set the id of this {@link BckndArgoCDRepositoryCreationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDRepositoryCreationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndArgoCDRepositoryCreationResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDRepositoryCreationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDRepositoryCreationResponse} instance. + * + * @param message Message + * @return The BckndArgoCDRepositoryCreationResponse instance. + */ + BckndArgoCDRepositoryCreationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCredentials.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCredentials.java index 6af0ecb3..a5094d4a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCredentials.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCredentials.java @@ -51,6 +51,7 @@ public class BckndArgoCDRepositoryCredentials @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDRepositoryCredentials() { } /** * Set the username of this {@link BckndArgoCDRepositoryCredentials} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryCredentials} instance with all required arguments. + */ + public static Builder create() { + return (username) -> (password) -> new BckndArgoCDRepositoryCredentials().username(username).password(password); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the username of this {@link BckndArgoCDRepositoryCredentials} instance. + * + * @param username Username for read-access to the repository + * @return The BckndArgoCDRepositoryCredentials builder. + */ + Builder1 username( @Nonnull final String username); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the password of this {@link BckndArgoCDRepositoryCredentials} instance. + * + * @param password Password for read-access to the repository + * @return The BckndArgoCDRepositoryCredentials instance. + */ + BckndArgoCDRepositoryCredentials password( @Nonnull final String password); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryData.java index 148b634c..8c01cb94 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryData.java @@ -57,6 +57,7 @@ public class BckndArgoCDRepositoryData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDRepositoryData() { } /** * Set the name of this {@link BckndArgoCDRepositoryData} instance and return the same instance. @@ -252,6 +253,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryData} instance with all required arguments. + */ + public static Builder create() { + return (url) -> (username) -> (password) -> new BckndArgoCDRepositoryData().url(url).username(username).password(password); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the url of this {@link BckndArgoCDRepositoryData} instance. + * + * @param url URL of the repository to synchronise + * @return The BckndArgoCDRepositoryData builder. + */ + Builder1 url( @Nonnull final String url); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the username of this {@link BckndArgoCDRepositoryData} instance. + * + * @param username Username for read-access to the repository + * @return The BckndArgoCDRepositoryData builder. + */ + Builder2 username( @Nonnull final String username); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the password of this {@link BckndArgoCDRepositoryData} instance. + * + * @param password Password for read-access to the repository + * @return The BckndArgoCDRepositoryData instance. + */ + BckndArgoCDRepositoryData password( @Nonnull final String password); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDataResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDataResponse.java index e89f9f92..d396dbbc 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDataResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDataResponse.java @@ -55,6 +55,7 @@ public class BckndArgoCDRepositoryDataResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDRepositoryDataResponse() { } /** * Set the count of this {@link BckndArgoCDRepositoryDataResponse} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryDataResponse} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new BckndArgoCDRepositoryDataResponse().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link BckndArgoCDRepositoryDataResponse} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndArgoCDRepositoryDataResponse builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link BckndArgoCDRepositoryDataResponse} instance. + * + * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} + * @return The BckndArgoCDRepositoryDataResponse instance. + */ + BckndArgoCDRepositoryDataResponse resources( @Nonnull final List resources); + /** + * Set the resources of this {@link BckndArgoCDRepositoryDataResponse} instance. + * + * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} + * @return The BckndArgoCDRepositoryDataResponse instance. + */ + default BckndArgoCDRepositoryDataResponse resources( @Nonnull final BckndArgoCDRepositoryDetails... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDeletionResponse.java index f95230c2..05f9768b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDeletionResponse.java @@ -51,6 +51,7 @@ public class BckndArgoCDRepositoryDeletionResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDRepositoryDeletionResponse() { } /** * Set the id of this {@link BckndArgoCDRepositoryDeletionResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDRepositoryDeletionResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndArgoCDRepositoryDeletionResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDRepositoryDeletionResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDRepositoryDeletionResponse} instance. + * + * @param message Message + * @return The BckndArgoCDRepositoryDeletionResponse instance. + */ + BckndArgoCDRepositoryDeletionResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDetails.java index 8d4d800f..630eaeaa 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDetails.java @@ -113,6 +113,7 @@ public enum StatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDRepositoryDetails() { } /** * Set the name of this {@link BckndArgoCDRepositoryDetails} instance and return the same instance. @@ -278,6 +279,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndArgoCDRepositoryDetails} instance. No arguments are required. + */ + public static BckndArgoCDRepositoryDetails create() { + return new BckndArgoCDRepositoryDetails(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryModificationResponse.java index 9c721a18..25d7ec5c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryModificationResponse.java @@ -51,6 +51,7 @@ public class BckndArgoCDRepositoryModificationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndArgoCDRepositoryModificationResponse() { } /** * Set the id of this {@link BckndArgoCDRepositoryModificationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDRepositoryModificationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndArgoCDRepositoryModificationResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDRepositoryModificationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDRepositoryModificationResponse} instance. + * + * @param message Message + * @return The BckndArgoCDRepositoryModificationResponse instance. + */ + BckndArgoCDRepositoryModificationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponse.java index 3f8efa1d..8c2f0017 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponse.java @@ -53,6 +53,7 @@ public class BckndCommonResourceQuotaResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndCommonResourceQuotaResponse() { } /** * Set the usage of this {@link BckndCommonResourceQuotaResponse} instance and return the same instance. @@ -188,6 +189,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndCommonResourceQuotaResponse} instance with all required arguments. + */ + public static Builder create() { + return (quota) -> new BckndCommonResourceQuotaResponse().quota(quota); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the quota of this {@link BckndCommonResourceQuotaResponse} instance. + * + * @param quota The quota of this {@link BckndCommonResourceQuotaResponse} + * @return The BckndCommonResourceQuotaResponse instance. + */ + BckndCommonResourceQuotaResponse quota( @Nonnull final BckndCommonResourceQuotaResponseQuota quota); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseQuota.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseQuota.java index 7e4cc058..e8ea6ae7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseQuota.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseQuota.java @@ -48,6 +48,7 @@ public class BckndCommonResourceQuotaResponseQuota @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndCommonResourceQuotaResponseQuota() { } /** * Set the maxCount of this {@link BckndCommonResourceQuotaResponseQuota} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndCommonResourceQuotaResponseQuota} instance. No arguments are required. + */ + public static BckndCommonResourceQuotaResponseQuota create() { + return new BckndCommonResourceQuotaResponseQuota(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseUsage.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseUsage.java index 5c7838c8..c002ba9e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseUsage.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseUsage.java @@ -48,6 +48,7 @@ public class BckndCommonResourceQuotaResponseUsage @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndCommonResourceQuotaResponseUsage() { } /** * Set the count of this {@link BckndCommonResourceQuotaResponseUsage} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndCommonResourceQuotaResponseUsage} instance. No arguments are required. + */ + public static BckndCommonResourceQuotaResponseUsage create() { + return new BckndCommonResourceQuotaResponseUsage(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuota.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuota.java index 4734a25e..3be034a7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuota.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuota.java @@ -51,6 +51,7 @@ public class BckndDeploymentQuota @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndDeploymentQuota() { } /** * Set the maxCount of this {@link BckndDeploymentQuota} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndDeploymentQuota} instance. No arguments are required. + */ + public static BckndDeploymentQuota create() { + return new BckndDeploymentQuota(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuotaItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuotaItem.java index a8f4a3f8..f745da46 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuotaItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuotaItem.java @@ -52,6 +52,7 @@ public class BckndDeploymentQuotaItem @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndDeploymentQuotaItem() { } /** * Set the resourcePlanType of this {@link BckndDeploymentQuotaItem} instance and return the same instance. @@ -187,6 +188,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndDeploymentQuotaItem} instance. No arguments are required. + */ + public static BckndDeploymentQuotaItem create() { + return new BckndDeploymentQuotaItem(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentResourceQuotaResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentResourceQuotaResponse.java index 1741871a..19ec13a8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentResourceQuotaResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentResourceQuotaResponse.java @@ -56,6 +56,7 @@ public class BckndDeploymentResourceQuotaResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndDeploymentResourceQuotaResponse() { } /** * Set the usage of this {@link BckndDeploymentResourceQuotaResponse} instance and return the same instance. @@ -203,6 +204,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndDeploymentResourceQuotaResponse} instance with all required arguments. + */ + public static Builder create() { + return (quotas) -> new BckndDeploymentResourceQuotaResponse().quotas(quotas); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the quotas of this {@link BckndDeploymentResourceQuotaResponse} instance. + * + * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} + * @return The BckndDeploymentResourceQuotaResponse instance. + */ + BckndDeploymentResourceQuotaResponse quotas( @Nonnull final List quotas); + /** + * Set the quotas of this {@link BckndDeploymentResourceQuotaResponse} instance. + * + * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} + * @return The BckndDeploymentResourceQuotaResponse instance. + */ + default BckndDeploymentResourceQuotaResponse quotas( @Nonnull final BckndDeploymentQuotaItem... quotas) { + return quotas(Arrays.asList(quotas)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentUsage.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentUsage.java index a96197e7..c92cb180 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentUsage.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentUsage.java @@ -55,6 +55,7 @@ public class BckndDeploymentUsage @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndDeploymentUsage() { } /** * Set the count of this {@link BckndDeploymentUsage} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndDeploymentUsage} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (items) -> new BckndDeploymentUsage().count(count).items(items); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link BckndDeploymentUsage} instance. + * + * @param count The count of this {@link BckndDeploymentUsage} + * @return The BckndDeploymentUsage builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the items of this {@link BckndDeploymentUsage} instance. + * + * @param items The items of this {@link BckndDeploymentUsage} + * @return The BckndDeploymentUsage instance. + */ + BckndDeploymentUsage items( @Nonnull final List items); + /** + * Set the items of this {@link BckndDeploymentUsage} instance. + * + * @param items The items of this {@link BckndDeploymentUsage} + * @return The BckndDeploymentUsage instance. + */ + default BckndDeploymentUsage items( @Nonnull final BckndUsageResourcePlanItem... items) { + return items(Arrays.asList(items)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndError.java index e97fe3b3..6190e022 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndError.java @@ -60,6 +60,7 @@ public class BckndError @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndError() { } /** * Set the code of this {@link BckndError} instance and return the same instance. @@ -285,6 +286,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndError} instance with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new BckndError().code(code).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the code of this {@link BckndError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The BckndError builder. + */ + Builder1 code( @Nonnull final String code); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndError} instance. + * + * @param message Plaintext error description + * @return The BckndError instance. + */ + BckndError message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndErrorResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndErrorResponse.java index f37d6bc5..4606859a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndErrorResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndErrorResponse.java @@ -49,6 +49,7 @@ public class BckndErrorResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndErrorResponse() { } /** * Set the error of this {@link BckndErrorResponse} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndErrorResponse} instance. No arguments are required. + */ + public static BckndErrorResponse create() { + return new BckndErrorResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndEvent.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndEvent.java index d612742f..8b442454 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndEvent.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndEvent.java @@ -174,6 +174,7 @@ public enum StateEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndEvent() { } /** * Set the tenantId of this {@link BckndEvent} instance and return the same instance. @@ -399,6 +400,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndEvent} instance. No arguments are required. + */ + public static BckndEvent create() { + return new BckndEvent(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponse.java index cbc2a11f..526be51b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponse.java @@ -53,6 +53,7 @@ public class BckndExecutableResourceQuotaResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndExecutableResourceQuotaResponse() { } /** * Set the usage of this {@link BckndExecutableResourceQuotaResponse} instance and return the same instance. @@ -188,6 +189,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndExecutableResourceQuotaResponse} instance with all required arguments. + */ + public static Builder create() { + return (quota) -> new BckndExecutableResourceQuotaResponse().quota(quota); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the quota of this {@link BckndExecutableResourceQuotaResponse} instance. + * + * @param quota The quota of this {@link BckndExecutableResourceQuotaResponse} + * @return The BckndExecutableResourceQuotaResponse instance. + */ + BckndExecutableResourceQuotaResponse quota( @Nonnull final BckndExecutableResourceQuotaResponseQuota quota); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseQuota.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseQuota.java index 80f2be80..e24a935f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseQuota.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseQuota.java @@ -51,6 +51,7 @@ public class BckndExecutableResourceQuotaResponseQuota @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndExecutableResourceQuotaResponseQuota() { } /** * Set the servingTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndExecutableResourceQuotaResponseQuota} instance. No arguments are required. + */ + public static BckndExecutableResourceQuotaResponseQuota create() { + return new BckndExecutableResourceQuotaResponseQuota(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseUsage.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseUsage.java index 965796b0..67fbbba8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseUsage.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseUsage.java @@ -51,6 +51,7 @@ public class BckndExecutableResourceQuotaResponseUsage @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndExecutableResourceQuotaResponseUsage() { } /** * Set the servingTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndExecutableResourceQuotaResponseUsage} instance. No arguments are required. + */ + public static BckndExecutableResourceQuotaResponseUsage create() { + return new BckndExecutableResourceQuotaResponseUsage(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExtendedService.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExtendedService.java index 2bd5a9cd..e4b42952 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExtendedService.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExtendedService.java @@ -139,6 +139,7 @@ public enum StatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndExtendedService() { } /** * Set the name of this {@link BckndExtendedService} instance and return the same instance. @@ -466,6 +467,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndExtendedService} instance. No arguments are required. + */ + public static BckndExtendedService create() { + return new BckndExtendedService(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDataResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDataResponse.java index 8f67320a..2307c961 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDataResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDataResponse.java @@ -51,6 +51,7 @@ public class BckndGenericSecretDataResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndGenericSecretDataResponse() { } /** * Set the message of this {@link BckndGenericSecretDataResponse} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndGenericSecretDataResponse} instance. No arguments are required. + */ + public static BckndGenericSecretDataResponse create() { + return new BckndGenericSecretDataResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDetails.java index b23fbbb6..70d20d04 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDetails.java @@ -51,6 +51,7 @@ public class BckndGenericSecretDetails @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndGenericSecretDetails() { } /** * Set the name of this {@link BckndGenericSecretDetails} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndGenericSecretDetails} instance. No arguments are required. + */ + public static BckndGenericSecretDetails create() { + return new BckndGenericSecretDetails(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPatchBody.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPatchBody.java index 712cb937..d2d412a2 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPatchBody.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPatchBody.java @@ -50,6 +50,7 @@ public class BckndGenericSecretPatchBody @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndGenericSecretPatchBody() { } /** * Set the data of this {@link BckndGenericSecretPatchBody} instance and return the same instance. @@ -167,6 +168,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndGenericSecretPatchBody} instance with all required arguments. + */ + public static Builder create() { + return (data) -> new BckndGenericSecretPatchBody().data(data); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the data of this {@link BckndGenericSecretPatchBody} instance. + * + * @param data Base64 encoded secret data + * @return The BckndGenericSecretPatchBody instance. + */ + BckndGenericSecretPatchBody data( @Nonnull final Map data); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPostBody.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPostBody.java index 5f2572fc..ba5cccdd 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPostBody.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPostBody.java @@ -53,6 +53,7 @@ public class BckndGenericSecretPostBody @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndGenericSecretPostBody() { } /** * Set the name of this {@link BckndGenericSecretPostBody} instance and return the same instance. @@ -200,6 +201,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndGenericSecretPostBody} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (data) -> new BckndGenericSecretPostBody().name(name).data(data); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link BckndGenericSecretPostBody} instance. + * + * @param name The name of the secret + * @return The BckndGenericSecretPostBody builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the data of this {@link BckndGenericSecretPostBody} instance. + * + * @param data Base64 encoded secret data + * @return The BckndGenericSecretPostBody instance. + */ + BckndGenericSecretPostBody data( @Nonnull final Map data); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroup.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroup.java index 68fbbe66..9552803a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroup.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroup.java @@ -134,6 +134,7 @@ public enum StatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndInternalResourceGroup() { } /** * Set the resourceGroupId of this {@link BckndInternalResourceGroup} instance and return the same instance. @@ -473,6 +474,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndInternalResourceGroup} instance with all required arguments. + */ + public static Builder create() { + return (resourceGroupId) -> (createdAt) -> (status) -> new BckndInternalResourceGroup().resourceGroupId(resourceGroupId).createdAt(createdAt).status(status); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the resourceGroupId of this {@link BckndInternalResourceGroup} instance. + * + * @param resourceGroupId resource group id + * @return The BckndInternalResourceGroup builder. + */ + Builder1 resourceGroupId( @Nonnull final String resourceGroupId); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the createdAt of this {@link BckndInternalResourceGroup} instance. + * + * @param createdAt Timestamp of resource group creation + * @return The BckndInternalResourceGroup builder. + */ + Builder2 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the status of this {@link BckndInternalResourceGroup} instance. + * + * @param status aggregated status of the onboarding process + * @return The BckndInternalResourceGroup instance. + */ + BckndInternalResourceGroup status( @Nonnull final StatusEnum status); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupAnnotation.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupAnnotation.java index e6ead666..6f0050d7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupAnnotation.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupAnnotation.java @@ -51,6 +51,7 @@ public class BckndInternalResourceGroupAnnotation @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndInternalResourceGroupAnnotation() { } /** * Set the key of this {@link BckndInternalResourceGroupAnnotation} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndInternalResourceGroupAnnotation} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new BckndInternalResourceGroupAnnotation().key(key).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link BckndInternalResourceGroupAnnotation} instance. + * + * @param key The key of this {@link BckndInternalResourceGroupAnnotation} + * @return The BckndInternalResourceGroupAnnotation builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link BckndInternalResourceGroupAnnotation} instance. + * + * @param value The value of this {@link BckndInternalResourceGroupAnnotation} + * @return The BckndInternalResourceGroupAnnotation instance. + */ + BckndInternalResourceGroupAnnotation value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupLabel.java index ffb6afbd..8bef7ad6 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupLabel.java @@ -51,6 +51,7 @@ public class BckndInternalResourceGroupLabel @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndInternalResourceGroupLabel() { } /** * Set the key of this {@link BckndInternalResourceGroupLabel} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndInternalResourceGroupLabel} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new BckndInternalResourceGroupLabel().key(key).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link BckndInternalResourceGroupLabel} instance. + * + * @param key The key of this {@link BckndInternalResourceGroupLabel} + * @return The BckndInternalResourceGroupLabel builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link BckndInternalResourceGroupLabel} instance. + * + * @param value The value of this {@link BckndInternalResourceGroupLabel} + * @return The BckndInternalResourceGroupLabel instance. + */ + BckndInternalResourceGroupLabel value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndListGenericSecretsResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndListGenericSecretsResponse.java index c04778d6..13a1ea29 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndListGenericSecretsResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndListGenericSecretsResponse.java @@ -55,6 +55,7 @@ public class BckndListGenericSecretsResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndListGenericSecretsResponse() { } /** * Set the count of this {@link BckndListGenericSecretsResponse} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndListGenericSecretsResponse} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new BckndListGenericSecretsResponse().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link BckndListGenericSecretsResponse} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndListGenericSecretsResponse builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link BckndListGenericSecretsResponse} instance. + * + * @param resources The resources of this {@link BckndListGenericSecretsResponse} + * @return The BckndListGenericSecretsResponse instance. + */ + BckndListGenericSecretsResponse resources( @Nonnull final List resources); + /** + * Set the resources of this {@link BckndListGenericSecretsResponse} instance. + * + * @param resources The resources of this {@link BckndListGenericSecretsResponse} + * @return The BckndListGenericSecretsResponse instance. + */ + default BckndListGenericSecretsResponse resources( @Nonnull final BckndGenericSecretDetails... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResourcePlansValue.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResourcePlansValue.java index e54931b9..3d29e134 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResourcePlansValue.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResourcePlansValue.java @@ -51,6 +51,7 @@ public class BckndResourceGetResourcePlansValue @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourceGetResourcePlansValue() { } /** * Set the provisioned of this {@link BckndResourceGetResourcePlansValue} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGetResourcePlansValue} instance with all required arguments. + */ + public static Builder create() { + return (provisioned) -> (requested) -> new BckndResourceGetResourcePlansValue().provisioned(provisioned).requested(requested); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the provisioned of this {@link BckndResourceGetResourcePlansValue} instance. + * + * @param provisioned The provisioned of this {@link BckndResourceGetResourcePlansValue} + * @return The BckndResourceGetResourcePlansValue builder. + */ + Builder1 provisioned( @Nonnull final Integer provisioned); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the requested of this {@link BckndResourceGetResourcePlansValue} instance. + * + * @param requested The requested of this {@link BckndResourceGetResourcePlansValue} + * @return The BckndResourceGetResourcePlansValue instance. + */ + BckndResourceGetResourcePlansValue requested( @Nonnull final Integer requested); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResponse.java index f8faac2d..267b5d1b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResponse.java @@ -51,6 +51,7 @@ public class BckndResourceGetResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourceGetResponse() { } /** * Set the resourcePlans of this {@link BckndResourceGetResponse} instance and return the same instance. @@ -168,6 +169,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGetResponse} instance with all required arguments. + */ + public static Builder create() { + return (resourcePlans) -> new BckndResourceGetResponse().resourcePlans(resourcePlans); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the resourcePlans of this {@link BckndResourceGetResponse} instance. + * + * @param resourcePlans The resourcePlans of this {@link BckndResourceGetResponse} + * @return The BckndResourceGetResponse instance. + */ + BckndResourceGetResponse resourcePlans( @Nonnull final Map resourcePlans); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroup.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroup.java index c918795b..7630279f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroup.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroup.java @@ -130,6 +130,7 @@ public enum StatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourceGroup() { } /** * Set the resourceGroupId of this {@link BckndResourceGroup} instance and return the same instance. @@ -427,6 +428,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroup} instance with all required arguments. + */ + public static Builder create() { + return (resourceGroupId) -> (createdAt) -> (status) -> new BckndResourceGroup().resourceGroupId(resourceGroupId).createdAt(createdAt).status(status); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the resourceGroupId of this {@link BckndResourceGroup} instance. + * + * @param resourceGroupId resource group id + * @return The BckndResourceGroup builder. + */ + Builder1 resourceGroupId( @Nonnull final String resourceGroupId); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the createdAt of this {@link BckndResourceGroup} instance. + * + * @param createdAt Timestamp of resource group creation + * @return The BckndResourceGroup builder. + */ + Builder2 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the status of this {@link BckndResourceGroup} instance. + * + * @param status aggregated status of the onboarding process + * @return The BckndResourceGroup instance. + */ + BckndResourceGroup status( @Nonnull final StatusEnum status); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupBase.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupBase.java index cda79f22..5625ec8a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupBase.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupBase.java @@ -54,6 +54,7 @@ public class BckndResourceGroupBase @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourceGroupBase() { } /** * Set the resourceGroupId of this {@link BckndResourceGroupBase} instance and return the same instance. @@ -219,6 +220,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndResourceGroupBase} instance. No arguments are required. + */ + public static BckndResourceGroupBase create() { + return new BckndResourceGroupBase(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupDeletionResponse.java index c1aad70d..80f636b1 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupDeletionResponse.java @@ -51,6 +51,7 @@ public class BckndResourceGroupDeletionResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourceGroupDeletionResponse() { } /** * Set the id of this {@link BckndResourceGroupDeletionResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroupDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndResourceGroupDeletionResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndResourceGroupDeletionResponse} instance. + * + * @param id Generic ID + * @return The BckndResourceGroupDeletionResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndResourceGroupDeletionResponse} instance. + * + * @param message Message + * @return The BckndResourceGroupDeletionResponse instance. + */ + BckndResourceGroupDeletionResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupLabel.java index dd748c4a..477d002c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupLabel.java @@ -51,6 +51,7 @@ public class BckndResourceGroupLabel @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourceGroupLabel() { } /** * Set the key of this {@link BckndResourceGroupLabel} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroupLabel} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new BckndResourceGroupLabel().key(key).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link BckndResourceGroupLabel} instance. + * + * @param key The key of this {@link BckndResourceGroupLabel} + * @return The BckndResourceGroupLabel builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link BckndResourceGroupLabel} instance. + * + * @param value The value of this {@link BckndResourceGroupLabel} + * @return The BckndResourceGroupLabel instance. + */ + BckndResourceGroupLabel value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupList.java index 41b2e4a3..b2b26cf1 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupList.java @@ -55,6 +55,7 @@ public class BckndResourceGroupList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourceGroupList() { } /** * Set the count of this {@link BckndResourceGroupList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroupList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new BckndResourceGroupList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link BckndResourceGroupList} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndResourceGroupList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link BckndResourceGroupList} instance. + * + * @param resources The resources of this {@link BckndResourceGroupList} + * @return The BckndResourceGroupList instance. + */ + BckndResourceGroupList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link BckndResourceGroupList} instance. + * + * @param resources The resources of this {@link BckndResourceGroupList} + * @return The BckndResourceGroupList instance. + */ + default BckndResourceGroupList resources( @Nonnull final BckndResourceGroup... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupPatchRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupPatchRequest.java index 6f76ae5f..6223031d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupPatchRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupPatchRequest.java @@ -52,6 +52,7 @@ public class BckndResourceGroupPatchRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourceGroupPatchRequest() { } /** * Set the labels of this {@link BckndResourceGroupPatchRequest} instance and return the same instance. @@ -169,6 +170,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndResourceGroupPatchRequest} instance. No arguments are required. + */ + public static BckndResourceGroupPatchRequest create() { + return new BckndResourceGroupPatchRequest(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupsPostRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupsPostRequest.java index 8b180fcf..1a6f5e39 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupsPostRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupsPostRequest.java @@ -55,6 +55,7 @@ public class BckndResourceGroupsPostRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourceGroupsPostRequest() { } /** * Set the resourceGroupId of this {@link BckndResourceGroupsPostRequest} instance and return the same instance. @@ -202,6 +203,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndResourceGroupsPostRequest} instance. No arguments are required. + */ + public static BckndResourceGroupsPostRequest create() { + return new BckndResourceGroupsPostRequest(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchBody.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchBody.java index 7e1c5400..64f255f5 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchBody.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchBody.java @@ -52,6 +52,7 @@ public class BckndResourcePatchBody @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourcePatchBody() { } /** * Set the resourcePlans of this {@link BckndResourcePatchBody} instance and return the same instance. @@ -169,6 +170,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourcePatchBody} instance with all required arguments. + */ + public static Builder create() { + return (resourcePlans) -> new BckndResourcePatchBody().resourcePlans(resourcePlans); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the resourcePlans of this {@link BckndResourcePatchBody} instance. + * + * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} + * @return The BckndResourcePatchBody instance. + */ + BckndResourcePatchBody resourcePlans( @Nonnull final List resourcePlans); + /** + * Set the resourcePlans of this {@link BckndResourcePatchBody} instance. + * + * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} + * @return The BckndResourcePatchBody instance. + */ + default BckndResourcePatchBody resourcePlans( @Nonnull final BckndResourcePatchNodes... resourcePlans) { + return resourcePlans(Arrays.asList(resourcePlans)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchNodes.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchNodes.java index 663a1e18..feed6a3c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchNodes.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchNodes.java @@ -51,6 +51,7 @@ public class BckndResourcePatchNodes @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourcePatchNodes() { } /** * Set the name of this {@link BckndResourcePatchNodes} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourcePatchNodes} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (request) -> new BckndResourcePatchNodes().name(name).request(request); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link BckndResourcePatchNodes} instance. + * + * @param name The name of this {@link BckndResourcePatchNodes} + * @return The BckndResourcePatchNodes builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the request of this {@link BckndResourcePatchNodes} instance. + * + * @param request The request of this {@link BckndResourcePatchNodes} + * @return The BckndResourcePatchNodes instance. + */ + BckndResourcePatchNodes request( @Nonnull final Integer request); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchResponse.java index 602fa82c..12170f2e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchResponse.java @@ -48,6 +48,7 @@ public class BckndResourcePatchResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndResourcePatchResponse() { } /** * Set the message of this {@link BckndResourcePatchResponse} instance and return the same instance. @@ -153,6 +154,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourcePatchResponse} instance with all required arguments. + */ + public static Builder create() { + return (message) -> new BckndResourcePatchResponse().message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the message of this {@link BckndResourcePatchResponse} instance. + * + * @param message The message of this {@link BckndResourcePatchResponse} + * @return The BckndResourcePatchResponse instance. + */ + BckndResourcePatchResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndService.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndService.java index 573ee9e1..5e06aad3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndService.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndService.java @@ -124,6 +124,7 @@ public enum StatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndService() { } /** * Set the name of this {@link BckndService} instance and return the same instance. @@ -349,6 +350,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndService} instance. No arguments are required. + */ + public static BckndService create() { + return new BckndService(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceBrokerSecret.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceBrokerSecret.java index 485801ea..f836cc29 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceBrokerSecret.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceBrokerSecret.java @@ -54,6 +54,7 @@ public class BckndServiceBrokerSecret @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceBrokerSecret() { } /** * Set the name of this {@link BckndServiceBrokerSecret} instance and return the same instance. @@ -219,6 +220,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceBrokerSecret} instance. No arguments are required. + */ + public static BckndServiceBrokerSecret create() { + return new BckndServiceBrokerSecret(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilities.java index b1ab4dcd..99a6f107 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilities.java @@ -53,6 +53,7 @@ public class BckndServiceCapabilities @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceCapabilities() { } /** * Set the logs of this {@link BckndServiceCapabilities} instance and return the same instance. @@ -188,6 +189,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceCapabilities} instance. No arguments are required. + */ + public static BckndServiceCapabilities create() { + return new BckndServiceCapabilities(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesBasic.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesBasic.java index a456d49f..e8637e23 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesBasic.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesBasic.java @@ -57,6 +57,7 @@ public class BckndServiceCapabilitiesBasic @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceCapabilitiesBasic() { } /** * Set the staticDeployments of this {@link BckndServiceCapabilitiesBasic} instance and return the same instance. @@ -252,6 +253,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceCapabilitiesBasic} instance. No arguments are required. + */ + public static BckndServiceCapabilitiesBasic create() { + return new BckndServiceCapabilitiesBasic(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesLogs.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesLogs.java index f2d653d8..e4d3f369 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesLogs.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesLogs.java @@ -51,6 +51,7 @@ public class BckndServiceCapabilitiesLogs @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceCapabilitiesLogs() { } /** * Set the deployments of this {@link BckndServiceCapabilitiesLogs} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceCapabilitiesLogs} instance. No arguments are required. + */ + public static BckndServiceCapabilitiesLogs create() { + return new BckndServiceCapabilitiesLogs(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceList.java index f07da16d..d0db336a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceList.java @@ -55,6 +55,7 @@ public class BckndServiceList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceList() { } /** * Set the count of this {@link BckndServiceList} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndServiceList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new BckndServiceList().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link BckndServiceList} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndServiceList builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link BckndServiceList} instance. + * + * @param resources The resources of this {@link BckndServiceList} + * @return The BckndServiceList instance. + */ + BckndServiceList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link BckndServiceList} instance. + * + * @param resources The resources of this {@link BckndServiceList} + * @return The BckndServiceList instance. + */ + default BckndServiceList resources( @Nonnull final BckndService... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItem.java index ba09f3cb..363c14b3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItem.java @@ -53,6 +53,7 @@ public class BckndServiceServiceCatalogItem @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceServiceCatalogItem() { } /** * Set the extendCatalog of this {@link BckndServiceServiceCatalogItem} instance and return the same instance. @@ -188,6 +189,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceServiceCatalogItem} instance. No arguments are required. + */ + public static BckndServiceServiceCatalogItem create() { + return new BckndServiceServiceCatalogItem(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCatalog.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCatalog.java index 4b6e5f66..15041a68 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCatalog.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCatalog.java @@ -64,6 +64,7 @@ public class BckndServiceServiceCatalogItemExtendCatalog @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceServiceCatalogItemExtendCatalog() { } /** * Set the bindable of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and return the same instance. @@ -301,6 +302,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceServiceCatalogItemExtendCatalog} instance. No arguments are required. + */ + public static BckndServiceServiceCatalogItemExtendCatalog create() { + return new BckndServiceServiceCatalogItemExtendCatalog(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentials.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentials.java index e9966d59..229e8a5d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentials.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentials.java @@ -49,6 +49,7 @@ public class BckndServiceServiceCatalogItemExtendCredentials @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceServiceCatalogItemExtendCredentials() { } /** * Set the shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceServiceCatalogItemExtendCredentials} instance. No arguments are required. + */ + public static BckndServiceServiceCatalogItemExtendCredentials create() { + return new BckndServiceServiceCatalogItemExtendCredentials(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsShared.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsShared.java index 75b7ff58..d95130ab 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsShared.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsShared.java @@ -49,6 +49,7 @@ public class BckndServiceServiceCatalogItemExtendCredentialsShared @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceServiceCatalogItemExtendCredentialsShared() { } /** * Set the serviceUrls of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceServiceCatalogItemExtendCredentialsShared} instance. No arguments are required. + */ + public static BckndServiceServiceCatalogItemExtendCredentialsShared create() { + return new BckndServiceServiceCatalogItemExtendCredentialsShared(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.java index f028b0f9..dccf3b17 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.java @@ -48,6 +48,7 @@ public class BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls() { } /** * Set the AI_API_URL of this {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. No arguments are required. + */ + public static BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls create() { + return new BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItem.java index 0a2d4bed..00fb47a9 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItem.java @@ -61,6 +61,7 @@ public class BckndServiceServicePlanItem @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceServicePlanItem() { } /** * Set the description of this {@link BckndServiceServicePlanItem} instance and return the same instance. @@ -286,6 +287,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceServicePlanItem} instance. No arguments are required. + */ + public static BckndServiceServicePlanItem create() { + return new BckndServiceServicePlanItem(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItemMetadata.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItemMetadata.java index 62562a88..d45b5d21 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItemMetadata.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItemMetadata.java @@ -110,6 +110,7 @@ public enum SupportedPlatformsEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndServiceServicePlanItemMetadata() { } /** * Set the supportedPlatforms of this {@link BckndServiceServicePlanItemMetadata} instance and return the same instance. @@ -227,6 +228,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndServiceServicePlanItemMetadata} instance. No arguments are required. + */ + public static BckndServiceServicePlanItemMetadata create() { + return new BckndServiceServicePlanItemMetadata(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndTenant.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndTenant.java index 9cf5aa04..f2ac2422 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndTenant.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndTenant.java @@ -57,6 +57,7 @@ public class BckndTenant @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndTenant() { } /** * Set the tenantId of this {@link BckndTenant} instance and return the same instance. @@ -252,6 +253,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndTenant} instance. No arguments are required. + */ + public static BckndTenant create() { + return new BckndTenant(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndUsageResourcePlanItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndUsageResourcePlanItem.java index 8b740240..67d54142 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndUsageResourcePlanItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndUsageResourcePlanItem.java @@ -54,6 +54,7 @@ public class BckndUsageResourcePlanItem @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndUsageResourcePlanItem() { } /** * Set the id of this {@link BckndUsageResourcePlanItem} instance and return the same instance. @@ -219,6 +220,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndUsageResourcePlanItem} instance with all required arguments. + */ + public static Builder create() { + return (id) -> new BckndUsageResourcePlanItem().id(id); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndUsageResourcePlanItem} instance. + * + * @param id The id of this {@link BckndUsageResourcePlanItem} + * @return The BckndUsageResourcePlanItem instance. + */ + BckndUsageResourcePlanItem id( @Nonnull final String id); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretCreationResponse.java index 7430a1c9..5755c95f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretCreationResponse.java @@ -48,6 +48,7 @@ public class BcknddockerRegistrySecretCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BcknddockerRegistrySecretCreationResponse() { } /** * Set the message of this {@link BcknddockerRegistrySecretCreationResponse} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BcknddockerRegistrySecretCreationResponse} instance. No arguments are required. + */ + public static BcknddockerRegistrySecretCreationResponse create() { + return new BcknddockerRegistrySecretCreationResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretDeletionResponse.java index 21251bec..6419d144 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretDeletionResponse.java @@ -51,6 +51,7 @@ public class BcknddockerRegistrySecretDeletionResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BcknddockerRegistrySecretDeletionResponse() { } /** * Set the id of this {@link BcknddockerRegistrySecretDeletionResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BcknddockerRegistrySecretDeletionResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BcknddockerRegistrySecretDeletionResponse} instance. + * + * @param id Generic ID + * @return The BcknddockerRegistrySecretDeletionResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BcknddockerRegistrySecretDeletionResponse} instance. + * + * @param message Message + * @return The BcknddockerRegistrySecretDeletionResponse instance. + */ + BcknddockerRegistrySecretDeletionResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretModificationResponse.java index c0c328a3..f4b3187c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretModificationResponse.java @@ -51,6 +51,7 @@ public class BcknddockerRegistrySecretModificationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BcknddockerRegistrySecretModificationResponse() { } /** * Set the id of this {@link BcknddockerRegistrySecretModificationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BcknddockerRegistrySecretModificationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BcknddockerRegistrySecretModificationResponse} instance. + * + * @param id Generic ID + * @return The BcknddockerRegistrySecretModificationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BcknddockerRegistrySecretModificationResponse} instance. + * + * @param message Message + * @return The BcknddockerRegistrySecretModificationResponse instance. + */ + BcknddockerRegistrySecretModificationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatus.java index 480d0b94..43582b27 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatus.java @@ -48,6 +48,7 @@ public class BcknddockerRegistrySecretStatus @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BcknddockerRegistrySecretStatus() { } /** * Set the name of this {@link BcknddockerRegistrySecretStatus} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BcknddockerRegistrySecretStatus} instance. No arguments are required. + */ + public static BcknddockerRegistrySecretStatus create() { + return new BcknddockerRegistrySecretStatus(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatusResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatusResponse.java index 5303f358..471b0775 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatusResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatusResponse.java @@ -55,6 +55,7 @@ public class BcknddockerRegistrySecretStatusResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BcknddockerRegistrySecretStatusResponse() { } /** * Set the count of this {@link BcknddockerRegistrySecretStatusResponse} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretStatusResponse} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new BcknddockerRegistrySecretStatusResponse().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link BcknddockerRegistrySecretStatusResponse} instance. + * + * @param count Number of the resource instances in the list + * @return The BcknddockerRegistrySecretStatusResponse builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link BcknddockerRegistrySecretStatusResponse} instance. + * + * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} + * @return The BcknddockerRegistrySecretStatusResponse instance. + */ + BcknddockerRegistrySecretStatusResponse resources( @Nonnull final List resources); + /** + * Set the resources of this {@link BcknddockerRegistrySecretStatusResponse} instance. + * + * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} + * @return The BcknddockerRegistrySecretStatusResponse instance. + */ + default BcknddockerRegistrySecretStatusResponse resources( @Nonnull final BcknddockerRegistrySecretStatus... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequest.java index 76963474..691039b3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequest.java @@ -49,6 +49,7 @@ public class BcknddockerRegistrySecretWithSensitiveDataRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BcknddockerRegistrySecretWithSensitiveDataRequest() { } /** * Set the data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance and return the same instance. @@ -154,6 +155,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance with all required arguments. + */ + public static Builder create() { + return (data) -> new BcknddockerRegistrySecretWithSensitiveDataRequest().data(data); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance. + * + * @param data The data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} + * @return The BcknddockerRegistrySecretWithSensitiveDataRequest instance. + */ + BcknddockerRegistrySecretWithSensitiveDataRequest data( @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequestData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequestData.java index ac23e903..4b62bcb0 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequestData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequestData.java @@ -48,6 +48,7 @@ public class BcknddockerRegistrySecretWithSensitiveDataRequestData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BcknddockerRegistrySecretWithSensitiveDataRequestData() { } /** * Set the dockerconfigjson of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance and return the same instance. @@ -153,6 +154,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance with all required arguments. + */ + public static Builder create() { + return (dockerconfigjson) -> new BcknddockerRegistrySecretWithSensitiveDataRequestData().dockerconfigjson(dockerconfigjson); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the dockerconfigjson of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. + * + * @param dockerconfigjson .dockerconfigjson data + * @return The BcknddockerRegistrySecretWithSensitiveDataRequestData instance. + */ + BcknddockerRegistrySecretWithSensitiveDataRequestData dockerconfigjson( @Nonnull final String dockerconfigjson); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretCreationResponse.java index d27b6822..4a274c97 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretCreationResponse.java @@ -48,6 +48,7 @@ public class BckndobjectStoreSecretCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndobjectStoreSecretCreationResponse() { } /** * Set the message of this {@link BckndobjectStoreSecretCreationResponse} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndobjectStoreSecretCreationResponse} instance. No arguments are required. + */ + public static BckndobjectStoreSecretCreationResponse create() { + return new BckndobjectStoreSecretCreationResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretDeletionResponse.java index a2ea55da..11cf0622 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretDeletionResponse.java @@ -51,6 +51,7 @@ public class BckndobjectStoreSecretDeletionResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndobjectStoreSecretDeletionResponse() { } /** * Set the id of this {@link BckndobjectStoreSecretDeletionResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndobjectStoreSecretDeletionResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndobjectStoreSecretDeletionResponse} instance. + * + * @param id Generic ID + * @return The BckndobjectStoreSecretDeletionResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndobjectStoreSecretDeletionResponse} instance. + * + * @param message Message + * @return The BckndobjectStoreSecretDeletionResponse instance. + */ + BckndobjectStoreSecretDeletionResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretModificationResponse.java index c75edee3..c1919c25 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretModificationResponse.java @@ -51,6 +51,7 @@ public class BckndobjectStoreSecretModificationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndobjectStoreSecretModificationResponse() { } /** * Set the id of this {@link BckndobjectStoreSecretModificationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndobjectStoreSecretModificationResponse().id(id).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link BckndobjectStoreSecretModificationResponse} instance. + * + * @param id Generic ID + * @return The BckndobjectStoreSecretModificationResponse builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link BckndobjectStoreSecretModificationResponse} instance. + * + * @param message Message + * @return The BckndobjectStoreSecretModificationResponse instance. + */ + BckndobjectStoreSecretModificationResponse message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatus.java index f9bf8d2b..f8b06d2e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatus.java @@ -52,6 +52,7 @@ public class BckndobjectStoreSecretStatus @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndobjectStoreSecretStatus() { } /** * Set the metadata of this {@link BckndobjectStoreSecretStatus} instance and return the same instance. @@ -187,6 +188,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndobjectStoreSecretStatus} instance. No arguments are required. + */ + public static BckndobjectStoreSecretStatus create() { + return new BckndobjectStoreSecretStatus(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusMetadata.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusMetadata.java index b4668393..8d3cb4e0 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusMetadata.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusMetadata.java @@ -90,6 +90,7 @@ public class BckndobjectStoreSecretStatusMetadata @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndobjectStoreSecretStatusMetadata() { } /** * Set the servingKubeflowOrgS3Usehttps of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. @@ -615,6 +616,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link BckndobjectStoreSecretStatusMetadata} instance. No arguments are required. + */ + public static BckndobjectStoreSecretStatusMetadata create() { + return new BckndobjectStoreSecretStatusMetadata(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusResponse.java index 07cbd15a..28647acc 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusResponse.java @@ -55,6 +55,7 @@ public class BckndobjectStoreSecretStatusResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndobjectStoreSecretStatusResponse() { } /** * Set the count of this {@link BckndobjectStoreSecretStatusResponse} instance and return the same instance. @@ -202,6 +203,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretStatusResponse} instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new BckndobjectStoreSecretStatusResponse().count(count).resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the count of this {@link BckndobjectStoreSecretStatusResponse} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndobjectStoreSecretStatusResponse builder. + */ + Builder1 count( @Nonnull final Integer count); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the resources of this {@link BckndobjectStoreSecretStatusResponse} instance. + * + * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} + * @return The BckndobjectStoreSecretStatusResponse instance. + */ + BckndobjectStoreSecretStatusResponse resources( @Nonnull final List resources); + /** + * Set the resources of this {@link BckndobjectStoreSecretStatusResponse} instance. + * + * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} + * @return The BckndobjectStoreSecretStatusResponse instance. + */ + default BckndobjectStoreSecretStatusResponse resources( @Nonnull final BckndobjectStoreSecretStatus... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequest.java index 0ada2c76..d8cd2fc7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequest.java @@ -72,6 +72,7 @@ public class BckndobjectStoreSecretWithSensitiveDataRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndobjectStoreSecretWithSensitiveDataRequest() { } /** * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. @@ -417,6 +418,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (type) -> (data) -> new BckndobjectStoreSecretWithSensitiveDataRequest().name(name).type(type).data(data); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. + * + * @param name Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. + * @return The BckndobjectStoreSecretWithSensitiveDataRequest builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. + * + * @param type Storage type e.g. S3, GCS,... + * @return The BckndobjectStoreSecretWithSensitiveDataRequest builder. + */ + Builder2 type( @Nonnull final String type); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. + * + * @param data key:value pairs of data + * @return The BckndobjectStoreSecretWithSensitiveDataRequest instance. + */ + BckndobjectStoreSecretWithSensitiveDataRequest data( @Nonnull final Object data); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall.java index 9d7ee31c..4e1d3bd1 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall.java @@ -72,6 +72,7 @@ public class BckndobjectStoreSecretWithSensitiveDataRequestForPostCall @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected BckndobjectStoreSecretWithSensitiveDataRequestForPostCall() { } /** * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. @@ -417,6 +418,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (type) -> (data) -> new BckndobjectStoreSecretWithSensitiveDataRequestForPostCall().name(name).type(type).data(data); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * + * @param name Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. + * @return The BckndobjectStoreSecretWithSensitiveDataRequestForPostCall builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * + * @param type Storage type e.g. S3, GCS,... + * @return The BckndobjectStoreSecretWithSensitiveDataRequestForPostCall builder. + */ + Builder2 type( @Nonnull final String type); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * + * @param data key:value pairs of data + * @return The BckndobjectStoreSecretWithSensitiveDataRequestForPostCall instance. + */ + BckndobjectStoreSecretWithSensitiveDataRequestForPostCall data( @Nonnull final Object data); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetError.java index c325b981..7f1e7c01 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetError.java @@ -64,6 +64,7 @@ public class DSetError @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected DSetError() { } /** * Set the code of this {@link DSetError} instance and return the same instance. @@ -301,6 +302,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link DSetError} instance with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new DSetError().code(code).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the code of this {@link DSetError} instance. + * + * @param code The code of this {@link DSetError} + * @return The DSetError builder. + */ + Builder1 code( @Nonnull final String code); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link DSetError} instance. + * + * @param message The message of this {@link DSetError} + * @return The DSetError instance. + */ + DSetError message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetErrorDetailsInner.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetErrorDetailsInner.java index 7dc3cc48..17075988 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetErrorDetailsInner.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetErrorDetailsInner.java @@ -51,6 +51,7 @@ public class DSetErrorDetailsInner @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected DSetErrorDetailsInner() { } /** * Set the code of this {@link DSetErrorDetailsInner} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link DSetErrorDetailsInner} instance with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new DSetErrorDetailsInner().code(code).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the code of this {@link DSetErrorDetailsInner} instance. + * + * @param code The code of this {@link DSetErrorDetailsInner} + * @return The DSetErrorDetailsInner builder. + */ + Builder1 code( @Nonnull final String code); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link DSetErrorDetailsInner} instance. + * + * @param message The message of this {@link DSetErrorDetailsInner} + * @return The DSetErrorDetailsInner instance. + */ + DSetErrorDetailsInner message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetFileCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetFileCreationResponse.java index 0fbc8e7e..0a359a4f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetFileCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetFileCreationResponse.java @@ -51,6 +51,7 @@ public class DSetFileCreationResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected DSetFileCreationResponse() { } /** * Set the message of this {@link DSetFileCreationResponse} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link DSetFileCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (message) -> (url) -> new DSetFileCreationResponse().message(message).url(url); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the message of this {@link DSetFileCreationResponse} instance. + * + * @param message File creation response message + * @return The DSetFileCreationResponse builder. + */ + Builder1 message( @Nonnull final String message); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the url of this {@link DSetFileCreationResponse} instance. + * + * @param url The url of this {@link DSetFileCreationResponse} + * @return The DSetFileCreationResponse instance. + */ + DSetFileCreationResponse url( @Nonnull final String url); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/FileDownload400Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/FileDownload400Response.java index 52bd52cf..b7ef21cb 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/FileDownload400Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/FileDownload400Response.java @@ -49,6 +49,7 @@ public class FileDownload400Response @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected FileDownload400Response() { } /** * Set the error of this {@link FileDownload400Response} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link FileDownload400Response} instance. No arguments are required. + */ + public static FileDownload400Response create() { + return new FileDownload400Response(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiApiError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiApiError.java index 1f7d652a..dbcb14a7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiApiError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiApiError.java @@ -60,6 +60,7 @@ public class KpiApiError @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected KpiApiError() { } /** * Set the code of this {@link KpiApiError} instance and return the same instance. @@ -285,6 +286,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link KpiApiError} instance with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new KpiApiError().code(code).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the code of this {@link KpiApiError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The KpiApiError builder. + */ + Builder1 code( @Nonnull final String code); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link KpiApiError} instance. + * + * @param message Plaintext error description + * @return The KpiApiError instance. + */ + KpiApiError message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiGet400Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiGet400Response.java index a01669cf..4e920c61 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiGet400Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiGet400Response.java @@ -49,6 +49,7 @@ public class KpiGet400Response @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected KpiGet400Response() { } /** * Set the error of this {@link KpiGet400Response} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link KpiGet400Response} instance. No arguments are required. + */ + public static KpiGet400Response create() { + return new KpiGet400Response(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultRowItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultRowItem.java index ad703cb2..6c295c79 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultRowItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultRowItem.java @@ -40,6 +40,7 @@ public class KpiResultRowItem @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected KpiResultRowItem() { } /** * Get the names of the unrecognizable properties of the {@link KpiResultRowItem}. @@ -115,6 +116,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link KpiResultRowItem} instance. No arguments are required. + */ + public static KpiResultRowItem create() { + return new KpiResultRowItem(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultSet.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultSet.java index 91b64ae9..7ea69b14 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultSet.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultSet.java @@ -59,6 +59,7 @@ public class KpiResultSet @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected KpiResultSet() { } /** * Get header * @return header The header of this {@link KpiResultSet} instance. @@ -185,6 +186,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link KpiResultSet} instance. No arguments are required. + */ + public static KpiResultSet create() { + return new KpiResultSet(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4ApplicationsCreateRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4ApplicationsCreateRequest.java index 77203f8b..eda80b3e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4ApplicationsCreateRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4ApplicationsCreateRequest.java @@ -62,6 +62,7 @@ public class KubesubmitV4ApplicationsCreateRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected KubesubmitV4ApplicationsCreateRequest() { } /** * Set the repositoryUrl of this {@link KubesubmitV4ApplicationsCreateRequest} instance and return the same instance. @@ -287,6 +288,60 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link KubesubmitV4ApplicationsCreateRequest} instance with all required arguments. + */ + public static Builder create() { + return (repositoryUrl) -> (revision) -> (path) -> (repositoryName) -> new KubesubmitV4ApplicationsCreateRequest().repositoryUrl(repositoryUrl).revision(revision).path(path).repositoryName(repositoryName); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the repositoryUrl of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + * + * @param repositoryUrl URL of the repository to synchronise + * @return The KubesubmitV4ApplicationsCreateRequest builder. + */ + Builder1 repositoryUrl( @Nonnull final String repositoryUrl); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the revision of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + * + * @param revision revision to synchronise + * @return The KubesubmitV4ApplicationsCreateRequest builder. + */ + Builder2 revision( @Nonnull final String revision); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the path of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + * + * @param path path within the repository to synchronise + * @return The KubesubmitV4ApplicationsCreateRequest builder. + */ + Builder3 path( @Nonnull final String path); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the repositoryName of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + * + * @param repositoryName Name of the repository to synchronise + * @return The KubesubmitV4ApplicationsCreateRequest instance. + */ + KubesubmitV4ApplicationsCreateRequest repositoryName( @Nonnull final String repositoryName); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4DockerRegistrySecretsCreateRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4DockerRegistrySecretsCreateRequest.java index 7a222c25..c5f3bf2f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4DockerRegistrySecretsCreateRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4DockerRegistrySecretsCreateRequest.java @@ -52,6 +52,7 @@ public class KubesubmitV4DockerRegistrySecretsCreateRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected KubesubmitV4DockerRegistrySecretsCreateRequest() { } /** * Set the data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance and return the same instance. @@ -187,6 +188,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance with all required arguments. + */ + public static Builder create() { + return (data) -> (name) -> new KubesubmitV4DockerRegistrySecretsCreateRequest().data(data).name(name); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. + * + * @param data The data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} + * @return The KubesubmitV4DockerRegistrySecretsCreateRequest builder. + */ + Builder1 data( @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the name of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. + * + * @param name Name of the docker Registry store for the secret. + * @return The KubesubmitV4DockerRegistrySecretsCreateRequest instance. + */ + KubesubmitV4DockerRegistrySecretsCreateRequest name( @Nonnull final String name); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAPIVersion.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAPIVersion.java index 7ef194e1..7f3210aa 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAPIVersion.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAPIVersion.java @@ -54,6 +54,7 @@ public class MetaAPIVersion @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaAPIVersion() { } /** * Set the versionId of this {@link MetaAPIVersion} instance and return the same instance. @@ -219,6 +220,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaAPIVersion} instance. No arguments are required. + */ + public static MetaAPIVersion create() { + return new MetaAPIVersion(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApi.java index 57cdfff4..31d4df84 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApi.java @@ -56,6 +56,7 @@ public class MetaAiApi @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaAiApi() { } /** * Set the version of this {@link MetaAiApi} instance and return the same instance. @@ -221,6 +222,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaAiApi} instance with all required arguments. + */ + public static Builder create() { + return (version) -> new MetaAiApi().version(version); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the version of this {@link MetaAiApi} instance. + * + * @param version The version of this {@link MetaAiApi} + * @return The MetaAiApi instance. + */ + MetaAiApi version( @Nonnull final String version); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilities.java index 615ae625..c0865c1e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilities.java @@ -74,6 +74,7 @@ public class MetaAiApiCapabilities @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaAiApiCapabilities() { } /** * Set the multitenant of this {@link MetaAiApiCapabilities} instance and return the same instance. @@ -419,6 +420,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaAiApiCapabilities} instance. No arguments are required. + */ + public static MetaAiApiCapabilities create() { + return new MetaAiApiCapabilities(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesBulkUpdates.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesBulkUpdates.java index ffc56095..fd263437 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesBulkUpdates.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesBulkUpdates.java @@ -51,6 +51,7 @@ public class MetaAiApiCapabilitiesBulkUpdates @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaAiApiCapabilitiesBulkUpdates() { } /** * Set the executions of this {@link MetaAiApiCapabilitiesBulkUpdates} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaAiApiCapabilitiesBulkUpdates} instance. No arguments are required. + */ + public static MetaAiApiCapabilitiesBulkUpdates create() { + return new MetaAiApiCapabilitiesBulkUpdates(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesLogs.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesLogs.java index e8ca1016..24e43d2e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesLogs.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesLogs.java @@ -51,6 +51,7 @@ public class MetaAiApiCapabilitiesLogs @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaAiApiCapabilitiesLogs() { } /** * Set the executions of this {@link MetaAiApiCapabilitiesLogs} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaAiApiCapabilitiesLogs} instance. No arguments are required. + */ + public static MetaAiApiCapabilitiesLogs create() { + return new MetaAiApiCapabilitiesLogs(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimits.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimits.java index 9b391134..849db26a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimits.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimits.java @@ -57,6 +57,7 @@ public class MetaAiApiLimits @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaAiApiLimits() { } /** * Set the executions of this {@link MetaAiApiLimits} instance and return the same instance. @@ -222,6 +223,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaAiApiLimits} instance. No arguments are required. + */ + public static MetaAiApiLimits create() { + return new MetaAiApiLimits(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsDeployments.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsDeployments.java index 55b461de..151d2379 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsDeployments.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsDeployments.java @@ -48,6 +48,7 @@ public class MetaAiApiLimitsDeployments @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaAiApiLimitsDeployments() { } /** * Set the maxRunningCount of this {@link MetaAiApiLimitsDeployments} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaAiApiLimitsDeployments} instance. No arguments are required. + */ + public static MetaAiApiLimitsDeployments create() { + return new MetaAiApiLimitsDeployments(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsExecutions.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsExecutions.java index 77090278..057e2fdd 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsExecutions.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsExecutions.java @@ -48,6 +48,7 @@ public class MetaAiApiLimitsExecutions @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaAiApiLimitsExecutions() { } /** * Set the maxRunningCount of this {@link MetaAiApiLimitsExecutions} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaAiApiLimitsExecutions} instance. No arguments are required. + */ + public static MetaAiApiLimitsExecutions create() { + return new MetaAiApiLimitsExecutions(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsTimeToLiveDeployments.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsTimeToLiveDeployments.java index 8520e2ec..ff7c8769 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsTimeToLiveDeployments.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsTimeToLiveDeployments.java @@ -51,6 +51,7 @@ public class MetaAiApiLimitsTimeToLiveDeployments @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaAiApiLimitsTimeToLiveDeployments() { } /** * Set the minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaAiApiLimitsTimeToLiveDeployments} instance. No arguments are required. + */ + public static MetaAiApiLimitsTimeToLiveDeployments create() { + return new MetaAiApiLimitsTimeToLiveDeployments(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaApiError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaApiError.java index 60591aa6..90444690 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaApiError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaApiError.java @@ -60,6 +60,7 @@ public class MetaApiError @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaApiError() { } /** * Set the code of this {@link MetaApiError} instance and return the same instance. @@ -285,6 +286,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaApiError} instance with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new MetaApiError().code(code).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the code of this {@link MetaApiError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The MetaApiError builder. + */ + Builder1 code( @Nonnull final String code); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link MetaApiError} instance. + * + * @param message Plaintext error description + * @return The MetaApiError instance. + */ + MetaApiError message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaCapabilities.java index 51ea4ad2..0cecedd3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaCapabilities.java @@ -62,6 +62,7 @@ public class MetaCapabilities @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaCapabilities() { } /** * Set the runtimeIdentifier of this {@link MetaCapabilities} instance and return the same instance. @@ -287,6 +288,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaCapabilities} instance with all required arguments. + */ + public static Builder create() { + return (aiApi) -> new MetaCapabilities().aiApi(aiApi); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the aiApi of this {@link MetaCapabilities} instance. + * + * @param aiApi The aiApi of this {@link MetaCapabilities} + * @return The MetaCapabilities instance. + */ + MetaCapabilities aiApi( @Nonnull final MetaAiApi aiApi); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensions.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensions.java index 8a1717ab..4436e841 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensions.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensions.java @@ -60,6 +60,7 @@ public class MetaExtensions @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaExtensions() { } /** * Set the analytics of this {@link MetaExtensions} instance and return the same instance. @@ -255,6 +256,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaExtensions} instance. No arguments are required. + */ + public static MetaExtensions create() { + return new MetaExtensions(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsAnalytics.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsAnalytics.java index 4976611e..14888b5b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsAnalytics.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsAnalytics.java @@ -48,6 +48,7 @@ public class MetaExtensionsAnalytics @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaExtensionsAnalytics() { } /** * Set the version of this {@link MetaExtensionsAnalytics} instance and return the same instance. @@ -153,6 +154,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaExtensionsAnalytics} instance with all required arguments. + */ + public static Builder create() { + return (version) -> new MetaExtensionsAnalytics().version(version); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the version of this {@link MetaExtensionsAnalytics} instance. + * + * @param version The version of this {@link MetaExtensionsAnalytics} + * @return The MetaExtensionsAnalytics instance. + */ + MetaExtensionsAnalytics version( @Nonnull final String version); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDataset.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDataset.java index 8d87659c..66477cb2 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDataset.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDataset.java @@ -56,6 +56,7 @@ public class MetaExtensionsDataset @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaExtensionsDataset() { } /** * Set the version of this {@link MetaExtensionsDataset} instance and return the same instance. @@ -221,6 +222,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaExtensionsDataset} instance with all required arguments. + */ + public static Builder create() { + return (version) -> new MetaExtensionsDataset().version(version); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the version of this {@link MetaExtensionsDataset} instance. + * + * @param version The version of this {@link MetaExtensionsDataset} + * @return The MetaExtensionsDataset instance. + */ + MetaExtensionsDataset version( @Nonnull final String version); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetCapabilities.java index b22b18c0..02bac765 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetCapabilities.java @@ -54,6 +54,7 @@ public class MetaExtensionsDatasetCapabilities @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaExtensionsDatasetCapabilities() { } /** * Set the upload of this {@link MetaExtensionsDatasetCapabilities} instance and return the same instance. @@ -219,6 +220,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaExtensionsDatasetCapabilities} instance. No arguments are required. + */ + public static MetaExtensionsDatasetCapabilities create() { + return new MetaExtensionsDatasetCapabilities(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetLimits.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetLimits.java index 36830788..bbc506bd 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetLimits.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetLimits.java @@ -57,6 +57,7 @@ public class MetaExtensionsDatasetLimits @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaExtensionsDatasetLimits() { } /** * Set the maxUploadFileSize of this {@link MetaExtensionsDatasetLimits} instance and return the same instance. @@ -234,6 +235,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaExtensionsDatasetLimits} instance. No arguments are required. + */ + public static MetaExtensionsDatasetLimits create() { + return new MetaExtensionsDatasetLimits(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetrics.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetrics.java index b94f8475..aebe458f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetrics.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetrics.java @@ -52,6 +52,7 @@ public class MetaExtensionsMetrics @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaExtensionsMetrics() { } /** * Set the version of this {@link MetaExtensionsMetrics} instance and return the same instance. @@ -187,6 +188,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaExtensionsMetrics} instance with all required arguments. + */ + public static Builder create() { + return (version) -> new MetaExtensionsMetrics().version(version); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the version of this {@link MetaExtensionsMetrics} instance. + * + * @param version The version of this {@link MetaExtensionsMetrics} + * @return The MetaExtensionsMetrics instance. + */ + MetaExtensionsMetrics version( @Nonnull final String version); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetricsCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetricsCapabilities.java index 294d09c4..d6c1909f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetricsCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetricsCapabilities.java @@ -48,6 +48,7 @@ public class MetaExtensionsMetricsCapabilities @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaExtensionsMetricsCapabilities() { } /** * Set the extendedResults of this {@link MetaExtensionsMetricsCapabilities} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaExtensionsMetricsCapabilities} instance. No arguments are required. + */ + public static MetaExtensionsMetricsCapabilities create() { + return new MetaExtensionsMetricsCapabilities(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaGet404Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaGet404Response.java index c83749b0..3bb7730c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaGet404Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaGet404Response.java @@ -49,6 +49,7 @@ public class MetaGet404Response @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetaGet404Response() { } /** * Set the error of this {@link MetaGet404Response} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetaGet404Response} instance. No arguments are required. + */ + public static MetaGet404Response create() { + return new MetaGet404Response(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetricsFind400Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetricsFind400Response.java index b49ce614..92bafd23 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetricsFind400Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetricsFind400Response.java @@ -49,6 +49,7 @@ public class MetricsFind400Response @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MetricsFind400Response() { } /** * Set the error of this {@link MetricsFind400Response} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MetricsFind400Response} instance. No arguments are required. + */ + public static MetricsFind400Response create() { + return new MetricsFind400Response(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifact.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifact.java index 32026a36..1696cf37 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifact.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifact.java @@ -135,6 +135,7 @@ public enum KindEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAArtifact() { } /** * Set the name of this {@link RTAArtifact} instance and return the same instance. @@ -432,6 +433,72 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAArtifact} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (executionId) -> (url) -> (kind) -> (createdAt) -> new RTAArtifact().name(name).executionId(executionId).url(url).kind(kind).createdAt(createdAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link RTAArtifact} instance. + * + * @param name Name of the artifact; this is used for dependent pipelines to resolve an artifact + * @return The RTAArtifact builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the executionId of this {@link RTAArtifact} instance. + * + * @param executionId ID of the execution + * @return The RTAArtifact builder. + */ + Builder2 executionId( @Nonnull final String executionId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the url of this {@link RTAArtifact} instance. + * + * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. + * @return The RTAArtifact builder. + */ + Builder3 url( @Nonnull final String url); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the kind of this {@link RTAArtifact} instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The RTAArtifact builder. + */ + Builder4 kind( @Nonnull final KindEnum kind); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the createdAt of this {@link RTAArtifact} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTAArtifact instance. + */ + RTAArtifact createdAt( @Nonnull final OffsetDateTime createdAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifactLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifactLabel.java index 026af9b0..41bf4d41 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifactLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifactLabel.java @@ -51,6 +51,7 @@ public class RTAArtifactLabel @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAArtifactLabel() { } /** * Set the key of this {@link RTAArtifactLabel} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAArtifactLabel} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new RTAArtifactLabel().key(key).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link RTAArtifactLabel} instance. + * + * @param key The key of this {@link RTAArtifactLabel} + * @return The RTAArtifactLabel builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link RTAArtifactLabel} instance. + * + * @param value The value of this {@link RTAArtifactLabel} + * @return The RTAArtifactLabel instance. + */ + RTAArtifactLabel value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTABackendDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTABackendDetails.java index 26477aa4..977667f7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTABackendDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTABackendDetails.java @@ -48,6 +48,7 @@ public class RTABackendDetails @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTABackendDetails() { } /** * Set the backendDetails of this {@link RTABackendDetails} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link RTABackendDetails} instance. No arguments are required. + */ + public static RTABackendDetails create() { + return new RTABackendDetails(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeployment.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeployment.java index fa2960c3..304682d2 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeployment.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeployment.java @@ -220,6 +220,7 @@ public enum LastOperationEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTADeployment() { } /** * Set the scenarioId of this {@link RTADeployment} instance and return the same instance. @@ -655,6 +656,60 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTADeployment} instance with all required arguments. + */ + public static Builder create() { + return (scenarioId) -> (executableId) -> (createdAt) -> (modifiedAt) -> new RTADeployment().scenarioId(scenarioId).executableId(executableId).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the scenarioId of this {@link RTADeployment} instance. + * + * @param scenarioId ID of the scenario + * @return The RTADeployment builder. + */ + Builder1 scenarioId( @Nonnull final String scenarioId); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the executableId of this {@link RTADeployment} instance. + * + * @param executableId ID of the executable + * @return The RTADeployment builder. + */ + Builder2 executableId( @Nonnull final String executableId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the createdAt of this {@link RTADeployment} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTADeployment builder. + */ + Builder3 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the modifiedAt of this {@link RTADeployment} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The RTADeployment instance. + */ + RTADeployment modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeploymentDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeploymentDetails.java index 6330549b..6f128555 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeploymentDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeploymentDetails.java @@ -52,6 +52,7 @@ public class RTADeploymentDetails @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTADeploymentDetails() { } /** * Set the scaling of this {@link RTADeploymentDetails} instance and return the same instance. @@ -187,6 +188,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link RTADeploymentDetails} instance. No arguments are required. + */ + public static RTADeploymentDetails create() { + return new RTADeploymentDetails(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAError.java index 2a9f1c5c..1873f600 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAError.java @@ -60,6 +60,7 @@ public class RTAError @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAError() { } /** * Set the code of this {@link RTAError} instance and return the same instance. @@ -285,6 +286,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAError} instance with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new RTAError().code(code).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the code of this {@link RTAError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The RTAError builder. + */ + Builder1 code( @Nonnull final String code); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link RTAError} instance. + * + * @param message Plaintext error description + * @return The RTAError instance. + */ + RTAError message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAErrorResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAErrorResponse.java index 68d02e4d..c76f0a8e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAErrorResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAErrorResponse.java @@ -49,6 +49,7 @@ public class RTAErrorResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAErrorResponse() { } /** * Set the error of this {@link RTAErrorResponse} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link RTAErrorResponse} instance. No arguments are required. + */ + public static RTAErrorResponse create() { + return new RTAErrorResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutable.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutable.java index 220fbde4..8c727cfd 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutable.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutable.java @@ -85,6 +85,7 @@ public class RTAExecutable @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAExecutable() { } /** * Set the id of this {@link RTAExecutable} instance and return the same instance. @@ -538,6 +539,84 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutable} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (name) -> (scenarioId) -> (deployable) -> (createdAt) -> (modifiedAt) -> new RTAExecutable().id(id).name(name).scenarioId(scenarioId).deployable(deployable).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link RTAExecutable} instance. + * + * @param id ID of the executable + * @return The RTAExecutable builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the name of this {@link RTAExecutable} instance. + * + * @param name Name of the executable + * @return The RTAExecutable builder. + */ + Builder2 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the scenarioId of this {@link RTAExecutable} instance. + * + * @param scenarioId ID of the scenario + * @return The RTAExecutable builder. + */ + Builder3 scenarioId( @Nonnull final String scenarioId); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the deployable of this {@link RTAExecutable} instance. + * + * @param deployable Whether this pipeline is deployable + * @return The RTAExecutable builder. + */ + Builder4 deployable( @Nonnull final Boolean deployable); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the createdAt of this {@link RTAExecutable} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTAExecutable builder. + */ + Builder5 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder5 { + /** + * Set the modifiedAt of this {@link RTAExecutable} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The RTAExecutable instance. + */ + RTAExecutable modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArgumentBinding.java index bd2f3c81..4a4f2272 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArgumentBinding.java @@ -51,6 +51,7 @@ public class RTAExecutableArgumentBinding @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAExecutableArgumentBinding() { } /** * Set the key of this {@link RTAExecutableArgumentBinding} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutableArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new RTAExecutableArgumentBinding().key(key).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link RTAExecutableArgumentBinding} instance. + * + * @param key The key of this {@link RTAExecutableArgumentBinding} + * @return The RTAExecutableArgumentBinding builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link RTAExecutableArgumentBinding} instance. + * + * @param value The value of this {@link RTAExecutableArgumentBinding} + * @return The RTAExecutableArgumentBinding instance. + */ + RTAExecutableArgumentBinding value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArtifact.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArtifact.java index e87d094f..f3f9c643 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArtifact.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArtifact.java @@ -61,6 +61,7 @@ public class RTAExecutableArtifact @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAExecutableArtifact() { } /** * Set the name of this {@link RTAExecutableArtifact} instance and return the same instance. @@ -268,6 +269,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutableArtifact} instance with all required arguments. + */ + public static Builder create() { + return (name) -> new RTAExecutableArtifact().name(name); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link RTAExecutableArtifact} instance. + * + * @param name Name of the signature argument + * @return The RTAExecutableArtifact instance. + */ + RTAExecutableArtifact name( @Nonnull final String name); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableParameter.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableParameter.java index e828c3d6..a8d23622 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableParameter.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableParameter.java @@ -106,6 +106,7 @@ public enum TypeEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAExecutableParameter() { } /** * Set the name of this {@link RTAExecutableParameter} instance and return the same instance. @@ -301,6 +302,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutableParameter} instance with all required arguments. + */ + public static Builder create() { + return (name) -> new RTAExecutableParameter().name(name); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link RTAExecutableParameter} instance. + * + * @param name Name of the signature argument + * @return The RTAExecutableParameter instance. + */ + RTAExecutableParameter name( @Nonnull final String name); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecution.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecution.java index dd732397..0df3ddf3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecution.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecution.java @@ -155,6 +155,7 @@ public enum StatusEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAExecution() { } /** * Set the scenarioId of this {@link RTAExecution} instance and return the same instance. @@ -530,6 +531,60 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecution} instance with all required arguments. + */ + public static Builder create() { + return (scenarioId) -> (executableId) -> (createdAt) -> (modifiedAt) -> new RTAExecution().scenarioId(scenarioId).executableId(executableId).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the scenarioId of this {@link RTAExecution} instance. + * + * @param scenarioId ID of the scenario + * @return The RTAExecution builder. + */ + Builder1 scenarioId( @Nonnull final String scenarioId); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the executableId of this {@link RTAExecution} instance. + * + * @param executableId ID of the executable + * @return The RTAExecution builder. + */ + Builder2 executableId( @Nonnull final String executableId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the createdAt of this {@link RTAExecution} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTAExecution builder. + */ + Builder3 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the modifiedAt of this {@link RTAExecution} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The RTAExecution instance. + */ + RTAExecution modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAInputArtifactArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAInputArtifactArgumentBinding.java index 3e8af052..5db7b8ec 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAInputArtifactArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAInputArtifactArgumentBinding.java @@ -54,6 +54,7 @@ public class RTAInputArtifactArgumentBinding @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAInputArtifactArgumentBinding() { } /** * Set the name of this {@link RTAInputArtifactArgumentBinding} instance and return the same instance. @@ -219,6 +220,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAInputArtifactArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (url) -> new RTAInputArtifactArgumentBinding().name(name).url(url); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link RTAInputArtifactArgumentBinding} instance. + * + * @param name The name of this {@link RTAInputArtifactArgumentBinding} + * @return The RTAInputArtifactArgumentBinding builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the url of this {@link RTAInputArtifactArgumentBinding} instance. + * + * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. + * @return The RTAInputArtifactArgumentBinding instance. + */ + RTAInputArtifactArgumentBinding url( @Nonnull final String url); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALabel.java index 61eec650..ba47e965 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALabel.java @@ -51,6 +51,7 @@ public class RTALabel @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTALabel() { } /** * Set the key of this {@link RTALabel} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTALabel} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new RTALabel().key(key).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the key of this {@link RTALabel} instance. + * + * @param key The key of this {@link RTALabel} + * @return The RTALabel builder. + */ + Builder1 key( @Nonnull final String key); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link RTALabel} instance. + * + * @param value The value of this {@link RTALabel} + * @return The RTALabel instance. + */ + RTALabel value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonData.java index ca3ff67d..dc8f1ce7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonData.java @@ -52,6 +52,7 @@ public class RTALogCommonData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTALogCommonData() { } /** * Set the result of this {@link RTALogCommonData} instance and return the same instance. @@ -169,6 +170,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link RTALogCommonData} instance. No arguments are required. + */ + public static RTALogCommonData create() { + return new RTALogCommonData(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResponse.java index db75dca7..5dc7d62c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResponse.java @@ -49,6 +49,7 @@ public class RTALogCommonResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTALogCommonResponse() { } /** * Set the data of this {@link RTALogCommonResponse} instance and return the same instance. @@ -154,6 +155,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link RTALogCommonResponse} instance. No arguments are required. + */ + public static RTALogCommonResponse create() { + return new RTALogCommonResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResultItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResultItem.java index 099c96af..9027bda9 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResultItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResultItem.java @@ -52,6 +52,7 @@ public class RTALogCommonResultItem @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTALogCommonResultItem() { } /** * Set the timestamp of this {@link RTALogCommonResultItem} instance and return the same instance. @@ -187,6 +188,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link RTALogCommonResultItem} instance. No arguments are required. + */ + public static RTALogCommonResultItem create() { + return new RTALogCommonResultItem(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelBaseData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelBaseData.java index ea38f893..d97a5c72 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelBaseData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelBaseData.java @@ -61,6 +61,7 @@ public class RTAModelBaseData @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAModelBaseData() { } /** * Set the model of this {@link RTAModelBaseData} instance and return the same instance. @@ -268,6 +269,69 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAModelBaseData} instance with all required arguments. + */ + public static Builder create() { + return (model) -> (executableId) -> (description) -> (versions) -> new RTAModelBaseData().model(model).executableId(executableId).description(description).versions(versions); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the model of this {@link RTAModelBaseData} instance. + * + * @param model Name of the model + * @return The RTAModelBaseData builder. + */ + Builder1 model( @Nonnull final String model); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the executableId of this {@link RTAModelBaseData} instance. + * + * @param executableId ID of the executable + * @return The RTAModelBaseData builder. + */ + Builder2 executableId( @Nonnull final String executableId); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the description of this {@link RTAModelBaseData} instance. + * + * @param description Description of the model and its capabilities + * @return The RTAModelBaseData builder. + */ + Builder3 description( @Nonnull final String description); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the versions of this {@link RTAModelBaseData} instance. + * + * @param versions List of model versions that the model object has + * @return The RTAModelBaseData instance. + */ + RTAModelBaseData versions( @Nonnull final List versions); + /** + * Set the versions of this {@link RTAModelBaseData} instance. + * + * @param versions List of model versions that the model object has + * @return The RTAModelBaseData instance. + */ + default RTAModelBaseData versions( @Nonnull final RTAModelVersion... versions) { + return versions(Arrays.asList(versions)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelVersion.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelVersion.java index b87b5a26..9aaa388a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelVersion.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelVersion.java @@ -51,6 +51,7 @@ public class RTAModelVersion @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAModelVersion() { } /** * Set the name of this {@link RTAModelVersion} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAModelVersion} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (isLatest) -> new RTAModelVersion().name(name).isLatest(isLatest); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link RTAModelVersion} instance. + * + * @param name Name of model version + * @return The RTAModelVersion builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the isLatest of this {@link RTAModelVersion} instance. + * + * @param isLatest Displays whether it is the latest version offered for the model + * @return The RTAModelVersion instance. + */ + RTAModelVersion isLatest( @Nonnull final Boolean isLatest); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAOutputArtifactArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAOutputArtifactArgumentBinding.java index d03ac89a..bc36b64f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAOutputArtifactArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAOutputArtifactArgumentBinding.java @@ -51,6 +51,7 @@ public class RTAOutputArtifactArgumentBinding @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAOutputArtifactArgumentBinding() { } /** * Set the name of this {@link RTAOutputArtifactArgumentBinding} instance and return the same instance. @@ -186,6 +187,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAOutputArtifactArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (name) -> new RTAOutputArtifactArgumentBinding().name(name); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link RTAOutputArtifactArgumentBinding} instance. + * + * @param name The name of this {@link RTAOutputArtifactArgumentBinding} + * @return The RTAOutputArtifactArgumentBinding instance. + */ + RTAOutputArtifactArgumentBinding name( @Nonnull final String name); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAScenario.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAScenario.java index a53f2995..c5caf211 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAScenario.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAScenario.java @@ -68,6 +68,7 @@ public class RTAScenario @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected RTAScenario() { } /** * Set the id of this {@link RTAScenario} instance and return the same instance. @@ -335,6 +336,60 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAScenario} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (name) -> (createdAt) -> (modifiedAt) -> new RTAScenario().id(id).name(name).createdAt(createdAt).modifiedAt(modifiedAt); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link RTAScenario} instance. + * + * @param id ID of the scenario + * @return The RTAScenario builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the name of this {@link RTAScenario} instance. + * + * @param name Name of the scenario + * @return The RTAScenario builder. + */ + Builder2 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the createdAt of this {@link RTAScenario} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTAScenario builder. + */ + Builder3 createdAt( @Nonnull final OffsetDateTime createdAt); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the modifiedAt of this {@link RTAScenario} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The RTAScenario instance. + */ + RTAScenario modifiedAt( @Nonnull final OffsetDateTime modifiedAt); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckApiError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckApiError.java index af9bd02b..63cacf0b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckApiError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckApiError.java @@ -64,6 +64,7 @@ public class TrckApiError @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckApiError() { } /** * Set the code of this {@link TrckApiError} instance and return the same instance. @@ -301,6 +302,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckApiError} instance with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new TrckApiError().code(code).message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the code of this {@link TrckApiError} instance. + * + * @param code Descriptive error code (not http status code). + * @return The TrckApiError builder. + */ + Builder1 code( @Nonnull final String code); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link TrckApiError} instance. + * + * @param message plaintext error description + * @return The TrckApiError instance. + */ + TrckApiError message( @Nonnull final String message); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckCustomInfoObject.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckCustomInfoObject.java index 724655b0..f962bf5b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckCustomInfoObject.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckCustomInfoObject.java @@ -52,6 +52,7 @@ public class TrckCustomInfoObject @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckCustomInfoObject() { } /** * Set the name of this {@link TrckCustomInfoObject} instance and return the same instance. @@ -187,6 +188,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckCustomInfoObject} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (value) -> new TrckCustomInfoObject().name(name).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link TrckCustomInfoObject} instance. + * + * @param name The name of this {@link TrckCustomInfoObject} + * @return The TrckCustomInfoObject builder. + */ + Builder1 name( @Nonnull final TrckTagName name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link TrckCustomInfoObject} instance. + * + * @param value Message + * @return The TrckCustomInfoObject instance. + */ + TrckCustomInfoObject value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDeleteMetricsResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDeleteMetricsResponse.java index 38f47bdc..bf10a353 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDeleteMetricsResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDeleteMetricsResponse.java @@ -52,6 +52,7 @@ public class TrckDeleteMetricsResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckDeleteMetricsResponse() { } /** * Set the id of this {@link TrckDeleteMetricsResponse} instance and return the same instance. @@ -187,6 +188,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link TrckDeleteMetricsResponse} instance. No arguments are required. + */ + public static TrckDeleteMetricsResponse create() { + return new TrckDeleteMetricsResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDetailsErrorResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDetailsErrorResponse.java index a89cc856..e4fbd568 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDetailsErrorResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDetailsErrorResponse.java @@ -51,6 +51,7 @@ public class TrckDetailsErrorResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckDetailsErrorResponse() { } /** * Set the code of this {@link TrckDetailsErrorResponse} instance and return the same instance. @@ -186,6 +187,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link TrckDetailsErrorResponse} instance. No arguments are required. + */ + public static TrckDetailsErrorResponse create() { + return new TrckDetailsErrorResponse(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckExecutionId.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckExecutionId.java index 172310f8..a6f4429f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckExecutionId.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckExecutionId.java @@ -40,6 +40,7 @@ public class TrckExecutionId @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckExecutionId() { } /** * Get the names of the unrecognizable properties of the {@link TrckExecutionId}. @@ -115,6 +116,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link TrckExecutionId} instance. No arguments are required. + */ + public static TrckExecutionId create() { + return new TrckExecutionId(); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetric.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetric.java index 381361c3..675a71bf 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetric.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetric.java @@ -66,6 +66,7 @@ public class TrckGetMetric @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckGetMetric() { } /** * Set the name of this {@link TrckGetMetric} instance and return the same instance. @@ -306,6 +307,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckGetMetric} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (value) -> (timestamp) -> new TrckGetMetric().name(name).value(value).timestamp(timestamp); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link TrckGetMetric} instance. + * + * @param name Name of the metric + * @return The TrckGetMetric builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link TrckGetMetric} instance. + * + * @param value Numeric Value of the metric + * @return The TrckGetMetric builder. + */ + Builder2 value( @Nonnull final BigDecimal value); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the timestamp of this {@link TrckGetMetric} instance. + * + * @param timestamp Time when the metric was created or logged in RFC3339 format + * @return The TrckGetMetric instance. + */ + TrckGetMetric timestamp( @Nonnull final OffsetDateTime timestamp); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResource.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResource.java index c251890f..699cc884 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResource.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResource.java @@ -64,6 +64,7 @@ public class TrckGetMetricResource @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckGetMetricResource() { } /** * Set the executionId of this {@link TrckGetMetricResource} instance and return the same instance. @@ -295,6 +296,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckGetMetricResource} instance with all required arguments. + */ + public static Builder create() { + return (executionId) -> new TrckGetMetricResource().executionId(executionId); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the executionId of this {@link TrckGetMetricResource} instance. + * + * @param executionId The executionId of this {@link TrckGetMetricResource} + * @return The TrckGetMetricResource instance. + */ + TrckGetMetricResource executionId( @Nonnull final TrckExecutionId executionId); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResourceList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResourceList.java index 5ea71e7e..b5d19e55 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResourceList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResourceList.java @@ -55,6 +55,7 @@ public class TrckGetMetricResourceList @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckGetMetricResourceList() { } /** * Set the count of this {@link TrckGetMetricResourceList} instance and return the same instance. @@ -202,6 +203,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckGetMetricResourceList} instance with all required arguments. + */ + public static Builder create() { + return (resources) -> new TrckGetMetricResourceList().resources(resources); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the resources of this {@link TrckGetMetricResourceList} instance. + * + * @param resources The resources of this {@link TrckGetMetricResourceList} + * @return The TrckGetMetricResourceList instance. + */ + TrckGetMetricResourceList resources( @Nonnull final List resources); + /** + * Set the resources of this {@link TrckGetMetricResourceList} instance. + * + * @param resources The resources of this {@link TrckGetMetricResourceList} + * @return The TrckGetMetricResourceList instance. + */ + default TrckGetMetricResourceList resources( @Nonnull final TrckGetMetricResource... resources) { + return resources(Arrays.asList(resources)); + } + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckLabel.java index 2ec20846..669740d7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckLabel.java @@ -51,6 +51,7 @@ public class TrckLabel @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckLabel() { } /** * Set the name of this {@link TrckLabel} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckLabel} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (value) -> new TrckLabel().name(name).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link TrckLabel} instance. + * + * @param name Label name to label one or more metrics. \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact with the metrics + * @return The TrckLabel builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link TrckLabel} instance. + * + * @param value Metric Label Value + * @return The TrckLabel instance. + */ + TrckLabel value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetric.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetric.java index b0799442..247331c9 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetric.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetric.java @@ -66,6 +66,7 @@ public class TrckMetric @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckMetric() { } /** * Set the name of this {@link TrckMetric} instance and return the same instance. @@ -306,6 +307,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckMetric} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (value) -> new TrckMetric().name(name).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link TrckMetric} instance. + * + * @param name Name of the metric + * @return The TrckMetric builder. + */ + Builder1 name( @Nonnull final String name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link TrckMetric} instance. + * + * @param value Numeric Value of the metric + * @return The TrckMetric instance. + */ + TrckMetric value( @Nonnull final BigDecimal value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetricResource.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetricResource.java index ecca704b..ed61ac36 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetricResource.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetricResource.java @@ -64,6 +64,7 @@ public class TrckMetricResource @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckMetricResource() { } /** * Set the executionId of this {@link TrckMetricResource} instance and return the same instance. @@ -295,6 +296,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckMetricResource} instance with all required arguments. + */ + public static Builder create() { + return (executionId) -> new TrckMetricResource().executionId(executionId); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the executionId of this {@link TrckMetricResource} instance. + * + * @param executionId The executionId of this {@link TrckMetricResource} + * @return The TrckMetricResource instance. + */ + TrckMetricResource executionId( @Nonnull final TrckExecutionId executionId); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTag.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTag.java index 55011240..ca3baab1 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTag.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTag.java @@ -52,6 +52,7 @@ public class TrckTag @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckTag() { } /** * Set the name of this {@link TrckTag} instance and return the same instance. @@ -187,6 +188,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckTag} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (value) -> new TrckTag().name(name).value(value); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the name of this {@link TrckTag} instance. + * + * @param name The name of this {@link TrckTag} + * @return The TrckTag builder. + */ + Builder1 name( @Nonnull final TrckTagName name); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the value of this {@link TrckTag} instance. + * + * @param value tag value + * @return The TrckTag instance. + */ + TrckTag value( @Nonnull final String value); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTagName.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTagName.java index 348edcb4..c58dc96d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTagName.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTagName.java @@ -41,6 +41,7 @@ public class TrckTagName @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TrckTagName() { } /** * Get the names of the unrecognizable properties of the {@link TrckTagName}. @@ -116,6 +117,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link TrckTagName} instance. No arguments are required. + */ + public static TrckTagName create() { + return new TrckTagName(); + } } diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java index f1e34989..26e52531 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java @@ -82,12 +82,12 @@ void testPostArtifact() { """))); AiArtifactPostData artifactPostData = - new AiArtifactPostData() - .description("dataset for aicore training") - .kind(AiArtifactPostData.KindEnum.DATASET) - .name("default") - .scenarioId("foundation-models") - .url("ai://default/spam/data"); + AiArtifactPostData.create() + .name("default") + .kind(AiArtifactPostData.KindEnum.DATASET) + .url("ai://default/spam/data") + .scenarioId("foundation-models") + .description("dataset for aicore training"); final AiArtifactCreationResponse artifact = new ArtifactApi(getClient(destination)).artifactCreate("default", artifactPostData); assertThat(artifact).isNotNull(); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java index 9a37fddd..1a0ceafc 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java @@ -93,15 +93,14 @@ void testPostConfiguration() { """))); AiConfigurationBaseData configurationBaseData = - new AiConfigurationBaseData() + AiConfigurationBaseData.create() .name("i538344_exec_config") .executableId("aicore-nvidia") .scenarioId("foundation-models") - .inputArtifactBindings( - List.of( - new AiArtifactArgumentBinding() - .artifactId("744b0136-ed4b-49b1-bd10-08c236ed5ce7") - .key("spam-data"))); + .addInputArtifactBindingsItem( + AiArtifactArgumentBinding.create() + .key("spam-data") + .artifactId("744b0136-ed4b-49b1-bd10-08c236ed5ce7")); final AiConfigurationCreationResponse configuration = new ConfigurationApi(getClient(destination)).configurationCreate("default", configurationBaseData); assertThat(configuration).isNotNull(); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java index 26efa14f..b3506acc 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java @@ -119,7 +119,7 @@ void testPostAiDeployment() { """))); AiDeploymentCreationRequest deploymentCreationRequest = - new AiDeploymentCreationRequest().configurationId("7652a231-ba9b-4fcc-b473-2c355cb21b61"); + AiDeploymentCreationRequest.create().configurationId("7652a231-ba9b-4fcc-b473-2c355cb21b61"); final AiDeploymentCreationResponse deployment = new DeploymentApi(getClient(destination)).deploymentCreate("default", deploymentCreationRequest); assertThat(deployment).isNotNull(); @@ -146,7 +146,7 @@ void testPatchAiDeployment() { """))); AiDeploymentModificationRequest configModification = - new AiDeploymentModificationRequest().targetStatus(AiDeploymentTargetStatus.STOPPED); + AiDeploymentModificationRequest.create().targetStatus(AiDeploymentTargetStatus.STOPPED); AiDeploymentModificationResponse deployment = new DeploymentApi(getClient(destination)) .deploymentModify("default", "d19b998f347341aa", configModification); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java index b0410a71..c2e6600d 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java @@ -107,7 +107,7 @@ void testPostExecution() { """))); AiEnactmentCreationRequest enactmentCreationRequest = - new AiEnactmentCreationRequest().configurationId("e0a9eb2e-9ea1-43bf-aff5-7660db166676"); + AiEnactmentCreationRequest.create().configurationId("e0a9eb2e-9ea1-43bf-aff5-7660db166676"); final AiExecutionCreationResponse execution = new ExecutionApi(getClient(destination)).executionCreate("default", enactmentCreationRequest); assertThat(execution).isNotNull(); diff --git a/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/DeploymentController.java b/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/DeploymentController.java index 899f1a72..a77c3998 100644 --- a/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/DeploymentController.java +++ b/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/DeploymentController.java @@ -40,7 +40,7 @@ public AiDeploymentDeletionResponse createAndDeleteDeploymentByConfigId( @Nonnull @PathVariable("id") final String configId) { final var deployment = API.deploymentCreate( - "default", new AiDeploymentCreationRequest().configurationId(configId)); + "default", AiDeploymentCreationRequest.create().configurationId(configId)); // shortly after creation, the deployment will be status UNKNOWN. // We can directly DELETE it, without going through STOPPED @@ -70,7 +70,7 @@ public List stopByConfigId( API.deploymentModify( "default", deployment.getId(), - new AiDeploymentModificationRequest() + AiDeploymentModificationRequest.create() .targetStatus(AiDeploymentTargetStatus.STOPPED))) .toList(); } diff --git a/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java b/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java index cb29fbf0..6f829f23 100644 --- a/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java +++ b/e2e-test-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java @@ -37,17 +37,18 @@ class OrchestrationController { static final String MODEL = "gpt-35-turbo"; private static final LLMModuleConfig LLM_CONFIG = - new LLMModuleConfig().modelName(MODEL).modelParams(Map.of()); + LLMModuleConfig.create().modelName(MODEL).modelParams(Map.of()); private static final Function TEMPLATE_CONFIG = (TemplatingModuleConfig templatingModuleConfig) -> - new CompletionPostRequest() + CompletionPostRequest.create() .orchestrationConfig( - new OrchestrationConfig() + OrchestrationConfig.create() .moduleConfigurations( - new ModuleConfigs() - .templatingModuleConfig(templatingModuleConfig) - .llmModuleConfig(LLM_CONFIG))); + ModuleConfigs.create() + .llmModuleConfig(LLM_CONFIG) + .templatingModuleConfig(templatingModuleConfig))) + .inputParams(Map.of()); /** * Creates a config from a filter threshold. The config includes a template and has input and @@ -60,35 +61,35 @@ class OrchestrationController { "disclaimer", "```DISCLAIMER: The area surrounding the apartment is known for prostitutes and gang violence including armed conflicts, gun violence is frequent."); final var template = - new ChatMessage() + ChatMessage.create() + .role("user") .content( - "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! {{?disclaimer}}") - .role("user"); - final var templatingConfig = new TemplatingModuleConfig().template(List.of(template)); + "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! {{?disclaimer}}"); + final var templatingConfig = TemplatingModuleConfig.create().template(template); final var filter = - new Filter() + Filter.create() .type(ProviderType.AZURE_CONTENT_SAFETY) .config( - new FilterConfig() + FilterConfig.create() .hate(filterThreshold) .selfHarm(filterThreshold) .sexual(filterThreshold) .violence(filterThreshold)); final var filteringConfig = - new FilteringModuleConfig() - .input(new FilteringConfig().filters(List.of(filter))) - .output(new FilteringConfig().filters(List.of(filter))); + FilteringModuleConfig.create() + .input(FilteringConfig.create().filters(List.of(filter))) + .output(FilteringConfig.create().filters(List.of(filter))); - return new CompletionPostRequest() + return CompletionPostRequest.create() .orchestrationConfig( - new OrchestrationConfig() + OrchestrationConfig.create() .moduleConfigurations( - new ModuleConfigs() + ModuleConfigs.create() + .llmModuleConfig(LLM_CONFIG) .templatingModuleConfig(templatingConfig) - .filteringModuleConfig(filteringConfig) - .llmModuleConfig(LLM_CONFIG))) + .filteringModuleConfig(filteringConfig))) .inputParams(inputParams); }; @@ -101,13 +102,13 @@ class OrchestrationController { @Nullable public CompletionPostResponse template() { - final var template = new ChatMessage().content("{{?input}}").role("user"); + final var template = ChatMessage.create().role("user").content("{{?input}}"); final var inputParams = Map.of("input", "Reply with 'Orchestration Service is working!' in German"); final var config = TEMPLATE_CONFIG - .apply(new TemplatingModuleConfig().template(List.of(template))) + .apply(TemplatingModuleConfig.create().template(template)) .inputParams(inputParams); return API.orchestrationV1EndpointsCreate(config); @@ -140,13 +141,14 @@ public CompletionPostResponse filter(@Nonnull @PathVariable("threshold") final S public CompletionPostResponse messagesHistory() { final List messagesHistory = List.of( - new ChatMessage().content("What is the capital of France?").role("user"), - new ChatMessage().content("The capital of France is Paris.").role("assistant")); - final var message = new ChatMessage().content("What is the typical food there?").role("user"); + ChatMessage.create().role("user").content("What is the capital of France?"), + ChatMessage.create().role("assistant").content("The capital of France is Paris.")); + final var message = + ChatMessage.create().role("user").content("What is the typical food there?"); final var config = TEMPLATE_CONFIG - .apply(new TemplatingModuleConfig().template(List.of(message))) + .apply(TemplatingModuleConfig.create().template(message)) .messagesHistory(messagesHistory); return API.orchestrationV1EndpointsCreate(config); diff --git a/orchestration/pom.xml b/orchestration/pom.xml index b79ac1c9..4c076b3b 100644 --- a/orchestration/pom.xml +++ b/orchestration/pom.xml @@ -86,6 +86,11 @@ ${project.basedir}/src/main/resources/spec/orchestration.yaml com.sap.ai.sdk.orchestration.client com.sap.ai.sdk.orchestration.client.model + + create + + protected + diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafety.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafety.java index 942270c3..fc01d1ea 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafety.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafety.java @@ -58,6 +58,7 @@ public class AzureContentSafety @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected AzureContentSafety() { } /** * Set the hate of this {@link AzureContentSafety} instance and return the same instance. @@ -253,6 +254,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link AzureContentSafety} instance. No arguments are required. + */ + public static AzureContentSafety create() { + return new AzureContentSafety(); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatMessage.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatMessage.java index a97c7d23..8ce9acbc 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatMessage.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatMessage.java @@ -51,6 +51,7 @@ public class ChatMessage @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected ChatMessage() { } /** * Set the role of this {@link ChatMessage} instance and return the same instance. @@ -186,6 +187,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link ChatMessage} instance with all required arguments. + */ + public static Builder create() { + return (role) -> (content) -> new ChatMessage().role(role).content(content); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the role of this {@link ChatMessage} instance. + * + * @param role The role of this {@link ChatMessage} + * @return The ChatMessage builder. + */ + Builder1 role( @Nonnull final String role); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the content of this {@link ChatMessage} instance. + * + * @param content The content of this {@link ChatMessage} + * @return The ChatMessage instance. + */ + ChatMessage content( @Nonnull final String content); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostRequest.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostRequest.java index 2caf6041..1273a5af 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostRequest.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostRequest.java @@ -61,6 +61,7 @@ public class CompletionPostRequest @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected CompletionPostRequest() { } /** * Set the orchestrationConfig of this {@link CompletionPostRequest} instance and return the same instance. @@ -250,6 +251,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link CompletionPostRequest} instance with all required arguments. + */ + public static Builder create() { + return (orchestrationConfig) -> (inputParams) -> new CompletionPostRequest().orchestrationConfig(orchestrationConfig).inputParams(inputParams); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the orchestrationConfig of this {@link CompletionPostRequest} instance. + * + * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} + * @return The CompletionPostRequest builder. + */ + Builder1 orchestrationConfig( @Nonnull final OrchestrationConfig orchestrationConfig); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the inputParams of this {@link CompletionPostRequest} instance. + * + * @param inputParams The inputParams of this {@link CompletionPostRequest} + * @return The CompletionPostRequest instance. + */ + CompletionPostRequest inputParams( @Nonnull final Map inputParams); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponse.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponse.java index c407eaa6..ecc27e46 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponse.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponse.java @@ -56,6 +56,7 @@ public class CompletionPostResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected CompletionPostResponse() { } /** * Set the requestId of this {@link CompletionPostResponse} instance and return the same instance. @@ -221,6 +222,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link CompletionPostResponse} instance with all required arguments. + */ + public static Builder create() { + return (requestId) -> (moduleResults) -> (orchestrationResult) -> new CompletionPostResponse().requestId(requestId).moduleResults(moduleResults).orchestrationResult(orchestrationResult); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the requestId of this {@link CompletionPostResponse} instance. + * + * @param requestId ID of the request + * @return The CompletionPostResponse builder. + */ + Builder1 requestId( @Nonnull final String requestId); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the moduleResults of this {@link CompletionPostResponse} instance. + * + * @param moduleResults The moduleResults of this {@link CompletionPostResponse} + * @return The CompletionPostResponse builder. + */ + Builder2 moduleResults( @Nonnull final ModuleResults moduleResults); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the orchestrationResult of this {@link CompletionPostResponse} instance. + * + * @param orchestrationResult The orchestrationResult of this {@link CompletionPostResponse} + * @return The CompletionPostResponse instance. + */ + CompletionPostResponse orchestrationResult( @Nonnull final LLMModuleResult orchestrationResult); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ErrorResponse.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ErrorResponse.java index b77b7b53..df9b991e 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ErrorResponse.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ErrorResponse.java @@ -61,6 +61,7 @@ public class ErrorResponse @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected ErrorResponse() { } /** * Set the requestId of this {@link ErrorResponse} instance and return the same instance. @@ -286,6 +287,60 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link ErrorResponse} instance with all required arguments. + */ + public static Builder create() { + return (requestId) -> (code) -> (message) -> (location) -> new ErrorResponse().requestId(requestId).code(code).message(message).location(location); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the requestId of this {@link ErrorResponse} instance. + * + * @param requestId The requestId of this {@link ErrorResponse} + * @return The ErrorResponse builder. + */ + Builder1 requestId( @Nonnull final String requestId); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the code of this {@link ErrorResponse} instance. + * + * @param code The code of this {@link ErrorResponse} + * @return The ErrorResponse builder. + */ + Builder2 code( @Nonnull final Integer code); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the message of this {@link ErrorResponse} instance. + * + * @param message The message of this {@link ErrorResponse} + * @return The ErrorResponse builder. + */ + Builder3 message( @Nonnull final String message); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the location of this {@link ErrorResponse} instance. + * + * @param location Where the error occurred + * @return The ErrorResponse instance. + */ + ErrorResponse location( @Nonnull final String location); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Filter.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Filter.java index 2173c730..5d6fb821 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Filter.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Filter.java @@ -53,6 +53,7 @@ public class Filter @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected Filter() { } /** * Set the type of this {@link Filter} instance and return the same instance. @@ -188,6 +189,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link Filter} instance with all required arguments. + */ + public static Builder create() { + return (type) -> new Filter().type(type); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the type of this {@link Filter} instance. + * + * @param type The type of this {@link Filter} + * @return The Filter instance. + */ + Filter type( @Nonnull final ProviderType type); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilterConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilterConfig.java index c8502ef7..eca6c241 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilterConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilterConfig.java @@ -59,6 +59,7 @@ public class FilterConfig @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected FilterConfig() { } /** * Set the hate of this {@link FilterConfig} instance and return the same instance. @@ -254,6 +255,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link FilterConfig} instance. No arguments are required. + */ + public static FilterConfig create() { + return new FilterConfig(); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringConfig.java index ee7b93ec..a9587704 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringConfig.java @@ -52,6 +52,7 @@ public class FilteringConfig @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected FilteringConfig() { } /** * Set the filters of this {@link FilteringConfig} instance and return the same instance. @@ -169,6 +170,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link FilteringConfig} instance with all required arguments. + */ + public static Builder create() { + return (filters) -> new FilteringConfig().filters(filters); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the filters of this {@link FilteringConfig} instance. + * + * @param filters Filters to be used + * @return The FilteringConfig instance. + */ + FilteringConfig filters( @Nonnull final List filters); + /** + * Set the filters of this {@link FilteringConfig} instance. + * + * @param filters Filters to be used + * @return The FilteringConfig instance. + */ + default FilteringConfig filters( @Nonnull final Filter... filters) { + return filters(Arrays.asList(filters)); + } + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringModuleConfig.java index 10201fbe..1f5b7a17 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringModuleConfig.java @@ -52,6 +52,7 @@ public class FilteringModuleConfig @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected FilteringModuleConfig() { } /** * Set the input of this {@link FilteringModuleConfig} instance and return the same instance. @@ -187,6 +188,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link FilteringModuleConfig} instance. No arguments are required. + */ + public static FilteringModuleConfig create() { + return new FilteringModuleConfig(); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GenericModuleResult.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GenericModuleResult.java index 3438002e..3192dfaa 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GenericModuleResult.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GenericModuleResult.java @@ -51,6 +51,7 @@ public class GenericModuleResult @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected GenericModuleResult() { } /** * Set the message of this {@link GenericModuleResult} instance and return the same instance. @@ -186,6 +187,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link GenericModuleResult} instance with all required arguments. + */ + public static Builder create() { + return (message) -> new GenericModuleResult().message(message); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the message of this {@link GenericModuleResult} instance. + * + * @param message Some message created from the module + * @return The GenericModuleResult instance. + */ + GenericModuleResult message( @Nonnull final String message); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilter.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilter.java index 75281af1..c40a1932 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilter.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilter.java @@ -123,6 +123,7 @@ public enum DataRepositoryTypeEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected GroundingFilter() { } /** * Set the id of this {@link GroundingFilter} instance and return the same instance. @@ -456,6 +457,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link GroundingFilter} instance. No arguments are required. + */ + public static GroundingFilter create() { + return new GroundingFilter(); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java index 781c6ae5..d03bf977 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java @@ -101,6 +101,7 @@ public enum GroundingServiceEnum { @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected GroundingModuleConfig() { } /** * Set the groundingService of this {@link GroundingModuleConfig} instance and return the same instance. @@ -236,6 +237,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link GroundingModuleConfig} instance with all required arguments. + */ + public static Builder create() { + return (groundingService) -> new GroundingModuleConfig().groundingService(groundingService); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the groundingService of this {@link GroundingModuleConfig} instance. + * + * @param groundingService The groundingService of this {@link GroundingModuleConfig} + * @return The GroundingModuleConfig instance. + */ + GroundingModuleConfig groundingService( @Nonnull final GroundingServiceEnum groundingService); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigGroundingServiceConfiguration.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigGroundingServiceConfiguration.java index f53ed147..8e93100a 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigGroundingServiceConfiguration.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigGroundingServiceConfiguration.java @@ -61,6 +61,7 @@ public class GroundingModuleConfigGroundingServiceConfiguration @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected GroundingModuleConfigGroundingServiceConfiguration() { } /** * Set the secretName of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance and return the same instance. @@ -280,6 +281,57 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link GroundingModuleConfigGroundingServiceConfiguration} instance with all required arguments. + */ + public static Builder create() { + return (secretName) -> (groundingInputParameters) -> (groundingOutputParameter) -> new GroundingModuleConfigGroundingServiceConfiguration().secretName(secretName).groundingInputParameters(groundingInputParameters).groundingOutputParameter(groundingOutputParameter); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the secretName of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. + * + * @param secretName Secret name of the generic secret within Gen AI Hub containing document grounding service credentials + * @return The GroundingModuleConfigGroundingServiceConfiguration builder. + */ + Builder1 secretName( @Nonnull final String secretName); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the groundingInputParameters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. + * + * @param groundingInputParameters Contains the input parameters used for grounding input questions + * @return The GroundingModuleConfigGroundingServiceConfiguration builder. + */ + Builder2 groundingInputParameters( @Nonnull final List groundingInputParameters); + /** + * Set the groundingInputParameters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. + * + * @param groundingInputParameters Contains the input parameters used for grounding input questions + * @return The GroundingModuleConfigGroundingServiceConfiguration builder. + */ + default Builder2 groundingInputParameters( @Nonnull final String... groundingInputParameters) { + return groundingInputParameters(Arrays.asList(groundingInputParameters)); + } + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the groundingOutputParameter of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. + * + * @param groundingOutputParameter Parameter name used for grounding output + * @return The GroundingModuleConfigGroundingServiceConfiguration instance. + */ + GroundingModuleConfigGroundingServiceConfiguration groundingOutputParameter( @Nonnull final String groundingOutputParameter); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMChoice.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMChoice.java index 70c172d0..30793ba5 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMChoice.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMChoice.java @@ -62,6 +62,7 @@ public class LLMChoice @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected LLMChoice() { } /** * Set the index of this {@link LLMChoice} instance and return the same instance. @@ -269,6 +270,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link LLMChoice} instance with all required arguments. + */ + public static Builder create() { + return (index) -> (message) -> (finishReason) -> new LLMChoice().index(index).message(message).finishReason(finishReason); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the index of this {@link LLMChoice} instance. + * + * @param index Index of the choice + * @return The LLMChoice builder. + */ + Builder1 index( @Nonnull final Integer index); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the message of this {@link LLMChoice} instance. + * + * @param message The message of this {@link LLMChoice} + * @return The LLMChoice builder. + */ + Builder2 message( @Nonnull final ChatMessage message); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the finishReason of this {@link LLMChoice} instance. + * + * @param finishReason Reason for stopping the model + * @return The LLMChoice instance. + */ + LLMChoice finishReason( @Nonnull final String finishReason); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java index 25ffdb76..9c762e00 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java @@ -54,6 +54,7 @@ public class LLMModuleConfig @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected LLMModuleConfig() { } /** * Set the modelName of this {@link LLMModuleConfig} instance and return the same instance. @@ -219,6 +220,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link LLMModuleConfig} instance with all required arguments. + */ + public static Builder create() { + return (modelName) -> (modelParams) -> new LLMModuleConfig().modelName(modelName).modelParams(modelParams); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the modelName of this {@link LLMModuleConfig} instance. + * + * @param modelName Model name as in LLM Access configuration + * @return The LLMModuleConfig builder. + */ + Builder1 modelName( @Nonnull final String modelName); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the modelParams of this {@link LLMModuleConfig} instance. + * + * @param modelParams Model parameters + * @return The LLMModuleConfig instance. + */ + LLMModuleConfig modelParams( @Nonnull final Object modelParams); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java index 741073e7..325caa15 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java @@ -71,6 +71,7 @@ public class LLMModuleResult @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected LLMModuleResult() { } /** * Set the id of this {@link LLMModuleResult} instance and return the same instance. @@ -368,6 +369,93 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link LLMModuleResult} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (_object) -> (created) -> (model) -> (choices) -> (usage) -> new LLMModuleResult().id(id)._object(_object).created(created).model(model).choices(choices).usage(usage); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the id of this {@link LLMModuleResult} instance. + * + * @param id ID of the response + * @return The LLMModuleResult builder. + */ + Builder1 id( @Nonnull final String id); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the _object of this {@link LLMModuleResult} instance. + * + * @param _object Object type + * @return The LLMModuleResult builder. + */ + Builder2 _object( @Nonnull final String _object); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the created of this {@link LLMModuleResult} instance. + * + * @param created Unix timestamp + * @return The LLMModuleResult builder. + */ + Builder3 created( @Nonnull final Integer created); + } + /** + * Builder helper class. + */ + public interface Builder3 { + /** + * Set the model of this {@link LLMModuleResult} instance. + * + * @param model Model name + * @return The LLMModuleResult builder. + */ + Builder4 model( @Nonnull final String model); + } + /** + * Builder helper class. + */ + public interface Builder4 { + /** + * Set the choices of this {@link LLMModuleResult} instance. + * + * @param choices Choices + * @return The LLMModuleResult builder. + */ + Builder5 choices( @Nonnull final List choices); + /** + * Set the choices of this {@link LLMModuleResult} instance. + * + * @param choices Choices + * @return The LLMModuleResult builder. + */ + default Builder5 choices( @Nonnull final LLMChoice... choices) { + return choices(Arrays.asList(choices)); + } + } + /** + * Builder helper class. + */ + public interface Builder5 { + /** + * Set the usage of this {@link LLMModuleResult} instance. + * + * @param usage The usage of this {@link LLMModuleResult} + * @return The LLMModuleResult instance. + */ + LLMModuleResult usage( @Nonnull final TokenUsage usage); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Masking.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Masking.java index 4aaadfbc..ca61a53c 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Masking.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Masking.java @@ -56,6 +56,7 @@ public class Masking @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected Masking() { } /** * Set the type of this {@link Masking} instance and return the same instance. @@ -203,6 +204,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link Masking} instance with all required arguments. + */ + public static Builder create() { + return (type) -> (entities) -> new Masking().type(type).entities(entities); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the type of this {@link Masking} instance. + * + * @param type The type of this {@link Masking} + * @return The Masking builder. + */ + Builder1 type( @Nonnull final MaskingProviderType type); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the entities of this {@link Masking} instance. + * + * @param entities List of entities to be masked + * @return The Masking instance. + */ + Masking entities( @Nonnull final List entities); + /** + * Set the entities of this {@link Masking} instance. + * + * @param entities List of entities to be masked + * @return The Masking instance. + */ + default Masking entities( @Nonnull final MaskingEntitiesInner... entities) { + return entities(Arrays.asList(entities)); + } + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingEntitiesInner.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingEntitiesInner.java index 1bc8edd4..c06e1118 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingEntitiesInner.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingEntitiesInner.java @@ -43,6 +43,7 @@ public class MaskingEntitiesInner @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MaskingEntitiesInner() { } /** * Get the names of the unrecognizable properties of the {@link MaskingEntitiesInner}. @@ -118,6 +119,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link MaskingEntitiesInner} instance. No arguments are required. + */ + public static MaskingEntitiesInner create() { + return new MaskingEntitiesInner(); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingModuleConfig.java index ec18f35d..f0cd6d40 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingModuleConfig.java @@ -56,6 +56,7 @@ public class MaskingModuleConfig @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected MaskingModuleConfig() { } /** * Set the masking of this {@link MaskingModuleConfig} instance and return the same instance. @@ -203,6 +204,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MaskingModuleConfig} instance with all required arguments. + */ + public static Builder create() { + return (masking) -> new MaskingModuleConfig().masking(masking); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the masking of this {@link MaskingModuleConfig} instance. + * + * @param masking Masking services to be used + * @return The MaskingModuleConfig instance. + */ + MaskingModuleConfig masking( @Nonnull final List masking); + /** + * Set the masking of this {@link MaskingModuleConfig} instance. + * + * @param masking Masking services to be used + * @return The MaskingModuleConfig instance. + */ + default MaskingModuleConfig masking( @Nonnull final Masking... masking) { + return masking(Arrays.asList(masking)); + } + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleConfigs.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleConfigs.java index d748212d..e3a27288 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleConfigs.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleConfigs.java @@ -65,6 +65,7 @@ public class ModuleConfigs @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected ModuleConfigs() { } /** * Set the llmModuleConfig of this {@link ModuleConfigs} instance and return the same instance. @@ -290,6 +291,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link ModuleConfigs} instance with all required arguments. + */ + public static Builder create() { + return (llmModuleConfig) -> (templatingModuleConfig) -> new ModuleConfigs().llmModuleConfig(llmModuleConfig).templatingModuleConfig(templatingModuleConfig); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the llmModuleConfig of this {@link ModuleConfigs} instance. + * + * @param llmModuleConfig The llmModuleConfig of this {@link ModuleConfigs} + * @return The ModuleConfigs builder. + */ + Builder1 llmModuleConfig( @Nonnull final LLMModuleConfig llmModuleConfig); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the templatingModuleConfig of this {@link ModuleConfigs} instance. + * + * @param templatingModuleConfig The templatingModuleConfig of this {@link ModuleConfigs} + * @return The ModuleConfigs instance. + */ + ModuleConfigs templatingModuleConfig( @Nonnull final TemplatingModuleConfig templatingModuleConfig); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResults.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResults.java index 83862d03..77608b81 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResults.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResults.java @@ -72,6 +72,7 @@ public class ModuleResults @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected ModuleResults() { } /** * Set the grounding of this {@link ModuleResults} instance and return the same instance. @@ -369,6 +370,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link ModuleResults} instance. No arguments are required. + */ + public static ModuleResults create() { + return new ModuleResults(); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationConfig.java index f2d48fae..b1e2ac84 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationConfig.java @@ -49,6 +49,7 @@ public class OrchestrationConfig @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected OrchestrationConfig() { } /** * Set the moduleConfigurations of this {@link OrchestrationConfig} instance and return the same instance. @@ -154,6 +155,24 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link OrchestrationConfig} instance with all required arguments. + */ + public static Builder create() { + return (moduleConfigurations) -> new OrchestrationConfig().moduleConfigurations(moduleConfigurations); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the moduleConfigurations of this {@link OrchestrationConfig} instance. + * + * @param moduleConfigurations The moduleConfigurations of this {@link OrchestrationConfig} + * @return The OrchestrationConfig instance. + */ + OrchestrationConfig moduleConfigurations( @Nonnull final ModuleConfigs moduleConfigurations); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java index 5564d359..5d61d58a 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java @@ -48,6 +48,7 @@ public class OrchestrationV1EndpointsHealthz503Response @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected OrchestrationV1EndpointsHealthz503Response() { } /** * Set the status of this {@link OrchestrationV1EndpointsHealthz503Response} instance and return the same instance. @@ -153,6 +154,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link OrchestrationV1EndpointsHealthz503Response} instance. No arguments are required. + */ + public static OrchestrationV1EndpointsHealthz503Response create() { + return new OrchestrationV1EndpointsHealthz503Response(); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplatingModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplatingModuleConfig.java index 1bad5ed3..869d0122 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplatingModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplatingModuleConfig.java @@ -55,6 +55,7 @@ public class TemplatingModuleConfig @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TemplatingModuleConfig() { } /** * Set the template of this {@link TemplatingModuleConfig} instance and return the same instance. @@ -202,6 +203,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TemplatingModuleConfig} instance with all required arguments. + */ + public static Builder create() { + return (template) -> new TemplatingModuleConfig().template(template); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the template of this {@link TemplatingModuleConfig} instance. + * + * @param template A chat message array to be formatted with values from input_params. Both role and content can be templated. If messages_history is provided, the templated messages will be appended. + * @return The TemplatingModuleConfig instance. + */ + TemplatingModuleConfig template( @Nonnull final List template); + /** + * Set the template of this {@link TemplatingModuleConfig} instance. + * + * @param template A chat message array to be formatted with values from input_params. Both role and content can be templated. If messages_history is provided, the templated messages will be appended. + * @return The TemplatingModuleConfig instance. + */ + default TemplatingModuleConfig template( @Nonnull final ChatMessage... template) { + return template(Arrays.asList(template)); + } + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java index 3d34316b..8ba19b58 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java @@ -54,6 +54,7 @@ public class TokenUsage @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected TokenUsage() { } /** * Set the completionTokens of this {@link TokenUsage} instance and return the same instance. @@ -219,6 +220,48 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TokenUsage} instance with all required arguments. + */ + public static Builder create() { + return (completionTokens) -> (promptTokens) -> (totalTokens) -> new TokenUsage().completionTokens(completionTokens).promptTokens(promptTokens).totalTokens(totalTokens); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the completionTokens of this {@link TokenUsage} instance. + * + * @param completionTokens Number of tokens used in the input + * @return The TokenUsage builder. + */ + Builder1 completionTokens( @Nonnull final Integer completionTokens); + } + /** + * Builder helper class. + */ + public interface Builder1 { + /** + * Set the promptTokens of this {@link TokenUsage} instance. + * + * @param promptTokens Number of tokens used in the output + * @return The TokenUsage builder. + */ + Builder2 promptTokens( @Nonnull final Integer promptTokens); + } + /** + * Builder helper class. + */ + public interface Builder2 { + /** + * Set the totalTokens of this {@link TokenUsage} instance. + * + * @param totalTokens Total number of tokens used + * @return The TokenUsage instance. + */ + TokenUsage totalTokens( @Nonnull final Integer totalTokens); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfig.java index 9d881bae..1a80626f 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfig.java @@ -52,6 +52,7 @@ public class UnmaskingConfig @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected UnmaskingConfig() { } /** * Set the entities of this {@link UnmaskingConfig} instance and return the same instance. @@ -169,6 +170,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link UnmaskingConfig} instance with all required arguments. + */ + public static Builder create() { + return (entities) -> new UnmaskingConfig().entities(entities); + } + /** + * Builder helper class. + */ + public interface Builder { + /** + * Set the entities of this {@link UnmaskingConfig} instance. + * + * @param entities List of entities to be unmasked + * @return The UnmaskingConfig instance. + */ + UnmaskingConfig entities( @Nonnull final List entities); + /** + * Set the entities of this {@link UnmaskingConfig} instance. + * + * @param entities List of entities to be unmasked + * @return The UnmaskingConfig instance. + */ + default UnmaskingConfig entities( @Nonnull final UnmaskingConfigEntitiesInner... entities) { + return entities(Arrays.asList(entities)); + } + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfigEntitiesInner.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfigEntitiesInner.java index 505d59f5..a4cc2e53 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfigEntitiesInner.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfigEntitiesInner.java @@ -43,6 +43,7 @@ public class UnmaskingConfigEntitiesInner @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); + protected UnmaskingConfigEntitiesInner() { } /** * Get the names of the unrecognizable properties of the {@link UnmaskingConfigEntitiesInner}. @@ -118,6 +119,12 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a new {@link UnmaskingConfigEntitiesInner} instance. No arguments are required. + */ + public static UnmaskingConfigEntitiesInner create() { + return new UnmaskingConfigEntitiesInner(); + } } diff --git a/orchestration/src/test/java/com/sap/ai/sdk/orchestration/client/OrchestrationUnitTest.java b/orchestration/src/test/java/com/sap/ai/sdk/orchestration/client/OrchestrationUnitTest.java index 88e4ef81..f9003f1b 100644 --- a/orchestration/src/test/java/com/sap/ai/sdk/orchestration/client/OrchestrationUnitTest.java +++ b/orchestration/src/test/java/com/sap/ai/sdk/orchestration/client/OrchestrationUnitTest.java @@ -47,7 +47,7 @@ public class OrchestrationUnitTest { private OrchestrationCompletionApi client; private static final LLMModuleConfig LLM_CONFIG = - new LLMModuleConfig() + LLMModuleConfig.create() .modelName("gpt-35-turbo-16k") .modelParams( Map.of( @@ -58,13 +58,14 @@ public class OrchestrationUnitTest { private static final Function TEMPLATE_CONFIG = (TemplatingModuleConfig templatingModuleConfig) -> - new CompletionPostRequest() + CompletionPostRequest.create() .orchestrationConfig( - new OrchestrationConfig() + OrchestrationConfig.create() .moduleConfigurations( - new ModuleConfigs() - .templatingModuleConfig(templatingModuleConfig) - .llmModuleConfig(LLM_CONFIG))); + ModuleConfigs.create() + .llmModuleConfig(LLM_CONFIG) + .templatingModuleConfig(templatingModuleConfig))) + .inputParams(Map.of()); /** * Creates a config from a filter threshold. The config includes a template and has input and @@ -77,35 +78,35 @@ public class OrchestrationUnitTest { "disclaimer", "```DISCLAIMER: The area surrounding the apartment is known for prostitutes and gang violence including armed conflicts, gun violence is frequent."); final var template = - new ChatMessage() + ChatMessage.create() + .role("user") .content( - "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! {{?disclaimer}}") - .role("user"); - final var templatingConfig = new TemplatingModuleConfig().template(List.of(template)); + "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! {{?disclaimer}}"); + final var templatingConfig = TemplatingModuleConfig.create().template(template); final var filter = - new Filter() + Filter.create() .type(ProviderType.AZURE_CONTENT_SAFETY) .config( - new FilterConfig() + FilterConfig.create() .hate(filterThreshold) .selfHarm(filterThreshold) .sexual(filterThreshold) .violence(filterThreshold)); final var filteringConfig = - new FilteringModuleConfig() - .input(new FilteringConfig().filters(List.of(filter))) - .output(new FilteringConfig().filters(List.of(filter))); + FilteringModuleConfig.create() + .input(FilteringConfig.create().filters(filter)) + .output(FilteringConfig.create().filters(filter)); - return new CompletionPostRequest() + return CompletionPostRequest.create() .orchestrationConfig( - new OrchestrationConfig() + OrchestrationConfig.create() .moduleConfigurations( - new ModuleConfigs() + ModuleConfigs.create() + .llmModuleConfig(LLM_CONFIG) .templatingModuleConfig(templatingConfig) - .filteringModuleConfig(filteringConfig) - .llmModuleConfig(LLM_CONFIG))) + .filteringModuleConfig(filteringConfig))) .inputParams(inputParams); }; @@ -117,7 +118,7 @@ void setup(WireMockRuntimeInfo server) { } @Test - void template() throws IOException { + void testTemplating() throws IOException { final String response = new String( getClass() @@ -126,13 +127,13 @@ void template() throws IOException { .readAllBytes()); stubFor(post(urlPathEqualTo("/completion")).willReturn(okJson(response))); - final var template = new ChatMessage().content("{{?input}}").role("user"); + final var template = ChatMessage.create().role("user").content("{{?input}}"); final var inputParams = Map.of("input", "Reply with 'Orchestration Service is working!' in German"); final var config = TEMPLATE_CONFIG - .apply(new TemplatingModuleConfig().template(List.of(template))) + .apply(TemplatingModuleConfig.create().template(template)) .inputParams(inputParams); final var result = client.orchestrationV1EndpointsCreate(config); @@ -183,7 +184,7 @@ void template() throws IOException { } @Test - void templateBadRequest() { + void testTemplatingBadRequest() { stubFor( post(urlPathEqualTo("/completion")) .willReturn( @@ -199,13 +200,13 @@ void templateBadRequest() { """, SC_BAD_REQUEST))); - final var template = new ChatMessage().content("{{?input}}").role("user"); + final var template = ChatMessage.create().role("user").content("{{?input}}"); // input params are omitted on purpose to trigger an error Map inputParams = Map.of(); final var config = TEMPLATE_CONFIG - .apply(new TemplatingModuleConfig().template(List.of(template))) + .apply(TemplatingModuleConfig.create().template(template)) .inputParams(inputParams); assertThatThrownBy(() -> client.orchestrationV1EndpointsCreate(config)) @@ -215,7 +216,7 @@ void templateBadRequest() { } @Test - void looseFilter() throws IOException { + void testFilteringLoose() throws IOException { final String response = new String( getClass() @@ -240,10 +241,10 @@ void looseFilter() throws IOException { } @Test - void strictFilter() { + void testFilteringStrict() { final String response = """ - {"request_id": "bf6d6792-7adf-4d3c-9368-a73615af8c5a", "code": 400, "message": "Content filtered due to Safety violations. Please modify the prompt and try again.", "location": "Input Filter", "module_results": {"templating": [{"role": "user", "content": "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! ```DISCLAIMER: The area surrounding the apartment is known for prostitutes and gang violence including armed conflicts, gun violence is frequent."}], "input_filtering": {"message": "Content filtered due to Safety violations. Please modify the prompt and try again.", "data": {"original_service_response": {"Hate": 0, "SelfHarm": 0, "Sexual": 0, "Violence": 2}, "checked_text": "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! ```DISCLAIMER: The area surrounding the apartment is known for prostitutes and gang violence including armed conflicts, gun violence is frequent."}}}}"""; + {"request_id": "bf6d6792-7adf-4d3c-9368-a73615af8c5a", "code": 400, "message": "Content filtered due to Safety violations. Please modify the prompt and try again.", "location": "Input Filter", "module_results": {"templating": [{"role": "user", "content": "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! ```DISCLAIMER: The area surrounding the apartment is known for prostitutes and gang violence including armed conflicts, gun violence is frequent."}], "input_filtering": {"message": "Content filtered due to Safety violations. Please modify the prompt and try again.", "data": {"original_service_response": {"Hate": 0, "SelfHarm": 0, "Sexual": 0, "Violence": 2}, "checked_text": "Create a rental posting for subletting my apartment in the downtown area. Keep it short. Make sure to add the following disclaimer to the end. Do not change it! ```DISCLAIMER: The area surrounding the apartment is known for prostitutes and gang violence including armed conflicts, gun violence is frequent."}}}}"""; stubFor(post(urlPathEqualTo("/completion")).willReturn(jsonResponse(response, SC_BAD_REQUEST))); final var config = FILTERING_CONFIG.apply(NUMBER_0); @@ -254,7 +255,7 @@ void strictFilter() { } @Test - void messagesHistory() throws IOException { + void testMessagesHistory() throws IOException { final String response = new String( getClass() @@ -266,13 +267,14 @@ void messagesHistory() throws IOException { final List messagesHistory = List.of( - new ChatMessage().content("What is the capital of France?").role("user"), - new ChatMessage().content("The capital of France is Paris.").role("assistant")); - final var message = new ChatMessage().content("What is the typical food there?").role("user"); + ChatMessage.create().role("user").content("What is the capital of France?"), + ChatMessage.create().role("assistant").content("The capital of France is Paris.")); + final var message = + ChatMessage.create().role("user").content("What is the typical food there?"); final var config = TEMPLATE_CONFIG - .apply(new TemplatingModuleConfig().template(List.of(message))) + .apply(TemplatingModuleConfig.create().template(message)) .messagesHistory(messagesHistory); final var result = client.orchestrationV1EndpointsCreate(config);