com.huaweicloud.sdk.cse.v1.model.EngineExternalEntrypoint Maven / Gradle / Ivy
package com.huaweicloud.sdk.cse.v1.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
/**
* EngineExternalEntrypoint
*/
public class EngineExternalEntrypoint {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "externalAddress")
private String externalAddress;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "publicAddress")
private String publicAddress;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "serviceEndpoint")
private Map serviceEndpoint = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "publicServiceEndpoint")
private Map publicServiceEndpoint = null;
public EngineExternalEntrypoint withExternalAddress(String externalAddress) {
this.externalAddress = externalAddress;
return this;
}
/**
* 微服务引擎暴露的IP地址。
* @return externalAddress
*/
public String getExternalAddress() {
return externalAddress;
}
public void setExternalAddress(String externalAddress) {
this.externalAddress = externalAddress;
}
public EngineExternalEntrypoint withPublicAddress(String publicAddress) {
this.publicAddress = publicAddress;
return this;
}
/**
* 微服务引擎的公网地址。
* @return publicAddress
*/
public String getPublicAddress() {
return publicAddress;
}
public void setPublicAddress(String publicAddress) {
this.publicAddress = publicAddress;
}
public EngineExternalEntrypoint withServiceEndpoint(Map serviceEndpoint) {
this.serviceEndpoint = serviceEndpoint;
return this;
}
public EngineExternalEntrypoint putServiceEndpointItem(String key, EntrypointItem serviceEndpointItem) {
if (this.serviceEndpoint == null) {
this.serviceEndpoint = new HashMap<>();
}
this.serviceEndpoint.put(key, serviceEndpointItem);
return this;
}
public EngineExternalEntrypoint withServiceEndpoint(Consumer