All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.apig20240327.models.CreateHttpApiRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.apig20240327.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * 
 * {@link CreateHttpApiRequest} extends {@link RequestModel}
 *
 * 

CreateHttpApiRequest

*/ public class CreateHttpApiRequest extends Request { @com.aliyun.core.annotation.Host @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("aiProtocols") private java.util.List < String > aiProtocols; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("basePath") private String basePath; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("deployConfigs") private java.util.List < HttpApiDeployConfig > deployConfigs; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("description") private String description; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("ingressConfig") private IngressConfig ingressConfig; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("name") @com.aliyun.core.annotation.Validation(required = true) private String name; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("protocols") private java.util.List < String > protocols; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("resourceGroupId") private String resourceGroupId; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("type") private String type; @com.aliyun.core.annotation.Body @com.aliyun.core.annotation.NameInMap("versionConfig") private HttpApiVersionConfig versionConfig; private CreateHttpApiRequest(Builder builder) { super(builder); this.regionId = builder.regionId; this.aiProtocols = builder.aiProtocols; this.basePath = builder.basePath; this.deployConfigs = builder.deployConfigs; this.description = builder.description; this.ingressConfig = builder.ingressConfig; this.name = builder.name; this.protocols = builder.protocols; this.resourceGroupId = builder.resourceGroupId; this.type = builder.type; this.versionConfig = builder.versionConfig; } public static Builder builder() { return new Builder(); } public static CreateHttpApiRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return aiProtocols */ public java.util.List < String > getAiProtocols() { return this.aiProtocols; } /** * @return basePath */ public String getBasePath() { return this.basePath; } /** * @return deployConfigs */ public java.util.List < HttpApiDeployConfig > getDeployConfigs() { return this.deployConfigs; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ingressConfig */ public IngressConfig getIngressConfig() { return this.ingressConfig; } /** * @return name */ public String getName() { return this.name; } /** * @return protocols */ public java.util.List < String > getProtocols() { return this.protocols; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return type */ public String getType() { return this.type; } /** * @return versionConfig */ public HttpApiVersionConfig getVersionConfig() { return this.versionConfig; } public static final class Builder extends Request.Builder { private String regionId; private java.util.List < String > aiProtocols; private String basePath; private java.util.List < HttpApiDeployConfig > deployConfigs; private String description; private IngressConfig ingressConfig; private String name; private java.util.List < String > protocols; private String resourceGroupId; private String type; private HttpApiVersionConfig versionConfig; private Builder() { super(); } private Builder(CreateHttpApiRequest request) { super(request); this.regionId = request.regionId; this.aiProtocols = request.aiProtocols; this.basePath = request.basePath; this.deployConfigs = request.deployConfigs; this.description = request.description; this.ingressConfig = request.ingressConfig; this.name = request.name; this.protocols = request.protocols; this.resourceGroupId = request.resourceGroupId; this.type = request.type; this.versionConfig = request.versionConfig; } /** * RegionId. */ public Builder regionId(String regionId) { this.putHostParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * aiProtocols. */ public Builder aiProtocols(java.util.List < String > aiProtocols) { this.putBodyParameter("aiProtocols", aiProtocols); this.aiProtocols = aiProtocols; return this; } /** *

Base path of the API, which must start with a "/".

* * example: *

/v1

*/ public Builder basePath(String basePath) { this.putBodyParameter("basePath", basePath); this.basePath = basePath; return this; } /** * deployConfigs. */ public Builder deployConfigs(java.util.List < HttpApiDeployConfig > deployConfigs) { this.putBodyParameter("deployConfigs", deployConfigs); this.deployConfigs = deployConfigs; return this; } /** *

Description of the API.

* * example: *

测试专用API。

*/ public Builder description(String description) { this.putBodyParameter("description", description); this.description = description; return this; } /** *

Configuration information for the HTTP Ingress API.

*/ public Builder ingressConfig(IngressConfig ingressConfig) { this.putBodyParameter("ingressConfig", ingressConfig); this.ingressConfig = ingressConfig; return this; } /** *

Name of the API.

*

This parameter is required.

* * example: *

test-api

*/ public Builder name(String name) { this.putBodyParameter("name", name); this.name = name; return this; } /** *

List of API access protocols.

*/ public Builder protocols(java.util.List < String > protocols) { this.putBodyParameter("protocols", protocols); this.protocols = protocols; return this; } /** * resourceGroupId. */ public Builder resourceGroupId(String resourceGroupId) { this.putBodyParameter("resourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** *

Type of the HTTP API.

*
    *
  • Http
  • *
  • Rest
  • *
  • WebSocket
  • *
  • HttpIngress
  • *
* * example: *

Http

*/ public Builder type(String type) { this.putBodyParameter("type", type); this.type = type; return this; } /** *

Versioning configuration for the API.

*/ public Builder versionConfig(HttpApiVersionConfig versionConfig) { this.putBodyParameter("versionConfig", versionConfig); this.versionConfig = versionConfig; return this; } @Override public CreateHttpApiRequest build() { return new CreateHttpApiRequest(this); } } /** * * {@link CreateHttpApiRequest} extends {@link TeaModel} * *

CreateHttpApiRequest

*/ public static class IngressConfig extends TeaModel { @com.aliyun.core.annotation.NameInMap("environmentId") private String environmentId; @com.aliyun.core.annotation.NameInMap("ingressClass") private String ingressClass; @com.aliyun.core.annotation.NameInMap("overrideIngressIp") private Boolean overrideIngressIp; @com.aliyun.core.annotation.NameInMap("sourceId") private String sourceId; @com.aliyun.core.annotation.NameInMap("watchNamespace") private String watchNamespace; private IngressConfig(Builder builder) { this.environmentId = builder.environmentId; this.ingressClass = builder.ingressClass; this.overrideIngressIp = builder.overrideIngressIp; this.sourceId = builder.sourceId; this.watchNamespace = builder.watchNamespace; } public static Builder builder() { return new Builder(); } public static IngressConfig create() { return builder().build(); } /** * @return environmentId */ public String getEnvironmentId() { return this.environmentId; } /** * @return ingressClass */ public String getIngressClass() { return this.ingressClass; } /** * @return overrideIngressIp */ public Boolean getOverrideIngressIp() { return this.overrideIngressIp; } /** * @return sourceId */ public String getSourceId() { return this.sourceId; } /** * @return watchNamespace */ public String getWatchNamespace() { return this.watchNamespace; } public static final class Builder { private String environmentId; private String ingressClass; private Boolean overrideIngressIp; private String sourceId; private String watchNamespace; /** *

Environment ID.

* * example: *

env-cq146allhtgk***

*/ public Builder environmentId(String environmentId) { this.environmentId = environmentId; return this; } /** *

Ingress Class being listened to.

* * example: *

mse

*/ public Builder ingressClass(String ingressClass) { this.ingressClass = ingressClass; return this; } /** *

Whether to update the address in the Ingress Status.

* * example: *

false

*/ public Builder overrideIngressIp(Boolean overrideIngressIp) { this.overrideIngressIp = overrideIngressIp; return this; } /** *

Source ID.

* * example: *

src-crdddallhtgtr***

*/ public Builder sourceId(String sourceId) { this.sourceId = sourceId; return this; } /** *

Namespace being watched.

* * example: *

default

*/ public Builder watchNamespace(String watchNamespace) { this.watchNamespace = watchNamespace; return this; } public IngressConfig build() { return new IngressConfig(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy