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

com.aliyun.sdk.service.apig20240327.models.Backend 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 Backend} extends {@link TeaModel}
 *
 * 

Backend

*/ public class Backend extends TeaModel { @com.aliyun.core.annotation.NameInMap("scene") private String scene; @com.aliyun.core.annotation.NameInMap("services") private java.util.List < Services> services; private Backend(Builder builder) { this.scene = builder.scene; this.services = builder.services; } public static Builder builder() { return new Builder(); } public static Backend create() { return builder().build(); } /** * @return scene */ public String getScene() { return this.scene; } /** * @return services */ public java.util.List < Services> getServices() { return this.services; } public static final class Builder { private String scene; private java.util.List < Services> services; /** * scene. */ public Builder scene(String scene) { this.scene = scene; return this; } /** * services. */ public Builder services(java.util.List < Services> services) { this.services = services; return this; } public Backend build() { return new Backend(this); } } /** * * {@link Backend} extends {@link TeaModel} * *

Backend

*/ public static class Services extends TeaModel { @com.aliyun.core.annotation.NameInMap("name") private String name; @com.aliyun.core.annotation.NameInMap("port") private Integer port; @com.aliyun.core.annotation.NameInMap("protocol") private String protocol; @com.aliyun.core.annotation.NameInMap("serviceId") private String serviceId; @com.aliyun.core.annotation.NameInMap("version") private String version; @com.aliyun.core.annotation.NameInMap("weight") private Integer weight; private Services(Builder builder) { this.name = builder.name; this.port = builder.port; this.protocol = builder.protocol; this.serviceId = builder.serviceId; this.version = builder.version; this.weight = builder.weight; } public static Builder builder() { return new Builder(); } public static Services create() { return builder().build(); } /** * @return name */ public String getName() { return this.name; } /** * @return port */ public Integer getPort() { return this.port; } /** * @return protocol */ public String getProtocol() { return this.protocol; } /** * @return serviceId */ public String getServiceId() { return this.serviceId; } /** * @return version */ public String getVersion() { return this.version; } /** * @return weight */ public Integer getWeight() { return this.weight; } public static final class Builder { private String name; private Integer port; private String protocol; private String serviceId; private String version; private Integer weight; /** * name. */ public Builder name(String name) { this.name = name; return this; } /** * port. */ public Builder port(Integer port) { this.port = port; return this; } /** * protocol. */ public Builder protocol(String protocol) { this.protocol = protocol; return this; } /** * serviceId. */ public Builder serviceId(String serviceId) { this.serviceId = serviceId; return this; } /** * version. */ public Builder version(String version) { this.version = version; return this; } /** * weight. */ public Builder weight(Integer weight) { this.weight = weight; return this; } public Services build() { return new Services(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy