com.aliyun.apig20240327.models.CreateHttpApiRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apig20240327 Show documentation
Show all versions of apig20240327 Show documentation
Alibaba Cloud APIG (20240327) SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.apig20240327.models;
import com.aliyun.tea.*;
public class CreateHttpApiRequest extends TeaModel {
@NameInMap("aiProtocols")
public java.util.List aiProtocols;
/**
* Base path of the API, which must start with a \"/\".
*
* example:
* /v1
*/
@NameInMap("basePath")
public String basePath;
@NameInMap("deployConfigs")
public java.util.List deployConfigs;
/**
* Description of the API.
*
* example:
* 测试专用API。
*/
@NameInMap("description")
public String description;
/**
* Configuration information for the HTTP Ingress API.
*/
@NameInMap("ingressConfig")
public CreateHttpApiRequestIngressConfig ingressConfig;
/**
* Name of the API.
* This parameter is required.
*
* example:
* test-api
*/
@NameInMap("name")
public String name;
/**
* List of API access protocols.
*/
@NameInMap("protocols")
public java.util.List protocols;
@NameInMap("resourceGroupId")
public String resourceGroupId;
/**
* Type of the HTTP API.
*
* - Http
* - Rest
* - WebSocket
* - HttpIngress
*
*
* example:
* Http
*/
@NameInMap("type")
public String type;
/**
* Versioning configuration for the API.
*/
@NameInMap("versionConfig")
public HttpApiVersionConfig versionConfig;
public static CreateHttpApiRequest build(java.util.Map map) throws Exception {
CreateHttpApiRequest self = new CreateHttpApiRequest();
return TeaModel.build(map, self);
}
public CreateHttpApiRequest setAiProtocols(java.util.List aiProtocols) {
this.aiProtocols = aiProtocols;
return this;
}
public java.util.List getAiProtocols() {
return this.aiProtocols;
}
public CreateHttpApiRequest setBasePath(String basePath) {
this.basePath = basePath;
return this;
}
public String getBasePath() {
return this.basePath;
}
public CreateHttpApiRequest setDeployConfigs(java.util.List deployConfigs) {
this.deployConfigs = deployConfigs;
return this;
}
public java.util.List getDeployConfigs() {
return this.deployConfigs;
}
public CreateHttpApiRequest setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public CreateHttpApiRequest setIngressConfig(CreateHttpApiRequestIngressConfig ingressConfig) {
this.ingressConfig = ingressConfig;
return this;
}
public CreateHttpApiRequestIngressConfig getIngressConfig() {
return this.ingressConfig;
}
public CreateHttpApiRequest setName(String name) {
this.name = name;
return this;
}
public String getName() {
return this.name;
}
public CreateHttpApiRequest setProtocols(java.util.List protocols) {
this.protocols = protocols;
return this;
}
public java.util.List getProtocols() {
return this.protocols;
}
public CreateHttpApiRequest setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public String getResourceGroupId() {
return this.resourceGroupId;
}
public CreateHttpApiRequest setType(String type) {
this.type = type;
return this;
}
public String getType() {
return this.type;
}
public CreateHttpApiRequest setVersionConfig(HttpApiVersionConfig versionConfig) {
this.versionConfig = versionConfig;
return this;
}
public HttpApiVersionConfig getVersionConfig() {
return this.versionConfig;
}
public static class CreateHttpApiRequestIngressConfig extends TeaModel {
/**
* Environment ID.
*
* example:
* env-cq146allhtgk***
*/
@NameInMap("environmentId")
public String environmentId;
/**
* Ingress Class being listened to.
*
* example:
* mse
*/
@NameInMap("ingressClass")
public String ingressClass;
/**
* Whether to update the address in the Ingress Status.
*
* example:
* false
*/
@NameInMap("overrideIngressIp")
public Boolean overrideIngressIp;
/**
* Source ID.
*
* example:
* src-crdddallhtgtr***
*/
@NameInMap("sourceId")
public String sourceId;
/**
* Namespace being watched.
*
* example:
* default
*/
@NameInMap("watchNamespace")
public String watchNamespace;
public static CreateHttpApiRequestIngressConfig build(java.util.Map map) throws Exception {
CreateHttpApiRequestIngressConfig self = new CreateHttpApiRequestIngressConfig();
return TeaModel.build(map, self);
}
public CreateHttpApiRequestIngressConfig setEnvironmentId(String environmentId) {
this.environmentId = environmentId;
return this;
}
public String getEnvironmentId() {
return this.environmentId;
}
public CreateHttpApiRequestIngressConfig setIngressClass(String ingressClass) {
this.ingressClass = ingressClass;
return this;
}
public String getIngressClass() {
return this.ingressClass;
}
public CreateHttpApiRequestIngressConfig setOverrideIngressIp(Boolean overrideIngressIp) {
this.overrideIngressIp = overrideIngressIp;
return this;
}
public Boolean getOverrideIngressIp() {
return this.overrideIngressIp;
}
public CreateHttpApiRequestIngressConfig setSourceId(String sourceId) {
this.sourceId = sourceId;
return this;
}
public String getSourceId() {
return this.sourceId;
}
public CreateHttpApiRequestIngressConfig setWatchNamespace(String watchNamespace) {
this.watchNamespace = watchNamespace;
return this;
}
public String getWatchNamespace() {
return this.watchNamespace;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy