|
| 1 | +// This file is auto-generated, don't edit it. Thanks. |
| 2 | +package com.aliyun.sdk.service.sae20190506.models; |
| 3 | + |
| 4 | +import com.aliyun.sdk.gateway.pop.*; |
| 5 | +import darabonba.core.*; |
| 6 | +import darabonba.core.async.*; |
| 7 | +import darabonba.core.sync.*; |
| 8 | +import darabonba.core.client.*; |
| 9 | +import darabonba.core.RequestModel; |
| 10 | +import darabonba.core.TeaModel; |
| 11 | +import com.aliyun.sdk.gateway.pop.models.*; |
| 12 | + |
| 13 | +/** |
| 14 | + * |
| 15 | + * {@link BindNlbRequest} extends {@link RequestModel} |
| 16 | + * |
| 17 | + * <p>BindNlbRequest</p> |
| 18 | + */ |
| 19 | +public class BindNlbRequest extends Request { |
| 20 | + @com.aliyun.core.annotation.Query |
| 21 | + @com.aliyun.core.annotation.NameInMap("AddressType") |
| 22 | + private String addressType; |
| 23 | + |
| 24 | + @com.aliyun.core.annotation.Query |
| 25 | + @com.aliyun.core.annotation.NameInMap("AppId") |
| 26 | + private String appId; |
| 27 | + |
| 28 | + @com.aliyun.core.annotation.Query |
| 29 | + @com.aliyun.core.annotation.NameInMap("Listeners") |
| 30 | + private String listeners; |
| 31 | + |
| 32 | + @com.aliyun.core.annotation.Query |
| 33 | + @com.aliyun.core.annotation.NameInMap("NlbId") |
| 34 | + private String nlbId; |
| 35 | + |
| 36 | + @com.aliyun.core.annotation.Query |
| 37 | + @com.aliyun.core.annotation.NameInMap("ZoneMappings") |
| 38 | + private String zoneMappings; |
| 39 | + |
| 40 | + private BindNlbRequest(Builder builder) { |
| 41 | + super(builder); |
| 42 | + this.addressType = builder.addressType; |
| 43 | + this.appId = builder.appId; |
| 44 | + this.listeners = builder.listeners; |
| 45 | + this.nlbId = builder.nlbId; |
| 46 | + this.zoneMappings = builder.zoneMappings; |
| 47 | + } |
| 48 | + |
| 49 | + public static Builder builder() { |
| 50 | + return new Builder(); |
| 51 | + } |
| 52 | + |
| 53 | + public static BindNlbRequest create() { |
| 54 | + return builder().build(); |
| 55 | + } |
| 56 | + |
| 57 | +@Override |
| 58 | + public Builder toBuilder() { |
| 59 | + return new Builder(this); |
| 60 | + } |
| 61 | + |
| 62 | + /** |
| 63 | + * @return addressType |
| 64 | + */ |
| 65 | + public String getAddressType() { |
| 66 | + return this.addressType; |
| 67 | + } |
| 68 | + |
| 69 | + /** |
| 70 | + * @return appId |
| 71 | + */ |
| 72 | + public String getAppId() { |
| 73 | + return this.appId; |
| 74 | + } |
| 75 | + |
| 76 | + /** |
| 77 | + * @return listeners |
| 78 | + */ |
| 79 | + public String getListeners() { |
| 80 | + return this.listeners; |
| 81 | + } |
| 82 | + |
| 83 | + /** |
| 84 | + * @return nlbId |
| 85 | + */ |
| 86 | + public String getNlbId() { |
| 87 | + return this.nlbId; |
| 88 | + } |
| 89 | + |
| 90 | + /** |
| 91 | + * @return zoneMappings |
| 92 | + */ |
| 93 | + public String getZoneMappings() { |
| 94 | + return this.zoneMappings; |
| 95 | + } |
| 96 | + |
| 97 | + public static final class Builder extends Request.Builder<BindNlbRequest, Builder> { |
| 98 | + private String addressType; |
| 99 | + private String appId; |
| 100 | + private String listeners; |
| 101 | + private String nlbId; |
| 102 | + private String zoneMappings; |
| 103 | + |
| 104 | + private Builder() { |
| 105 | + super(); |
| 106 | + } |
| 107 | + |
| 108 | + private Builder(BindNlbRequest request) { |
| 109 | + super(request); |
| 110 | + this.addressType = request.addressType; |
| 111 | + this.appId = request.appId; |
| 112 | + this.listeners = request.listeners; |
| 113 | + this.nlbId = request.nlbId; |
| 114 | + this.zoneMappings = request.zoneMappings; |
| 115 | + } |
| 116 | + |
| 117 | + /** |
| 118 | + * <p>The type of the IP addresses. Valid values:</p> |
| 119 | + * <ul> |
| 120 | + * <li>Internet: public endpoint.</li> |
| 121 | + * <li>Intranet: private endpoint.</li> |
| 122 | + * </ul> |
| 123 | + * |
| 124 | + * <strong>example:</strong> |
| 125 | + * <p>Internet</p> |
| 126 | + */ |
| 127 | + public Builder addressType(String addressType) { |
| 128 | + this.putQueryParameter("AddressType", addressType); |
| 129 | + this.addressType = addressType; |
| 130 | + return this; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * <p>The ID of the application to which the NLB instance is bound.</p> |
| 135 | + * |
| 136 | + * <strong>example:</strong> |
| 137 | + * <p>7171a6ca-d1cd-4928-8642-7d5cfe69****</p> |
| 138 | + */ |
| 139 | + public Builder appId(String appId) { |
| 140 | + this.putQueryParameter("AppId", appId); |
| 141 | + this.appId = appId; |
| 142 | + return this; |
| 143 | + } |
| 144 | + |
| 145 | + /** |
| 146 | + * <p>The listener that you want to manage. The value is a string that consists of JSON arrays. Each listener contains the following fields:</p> |
| 147 | + * <ul> |
| 148 | + * <li><strong>port</strong>: the port number of the NLB listener. This field is required. Data type: integer. Valid values: 0 to 65535.</li> |
| 149 | + * <li><strong>TargetPort</strong>: the port number of the container listener. This field is required. Data type: integer. Valid values: 0 to 65535.</li> |
| 150 | + * <li><strong>Protocol</strong>: the listener protocol. This field is required. Data type: string. Valid values: TCP, UDP, and TCPSSL.</li> |
| 151 | + * <li><strong>CertIds</strong>: the IDs of the server certificates. This field is optional. Data type: string. This field is supported only by TCPSSL listeners.</li> |
| 152 | + * </ul> |
| 153 | + */ |
| 154 | + public Builder listeners(String listeners) { |
| 155 | + this.putQueryParameter("Listeners", listeners); |
| 156 | + this.listeners = listeners; |
| 157 | + return this; |
| 158 | + } |
| 159 | + |
| 160 | + /** |
| 161 | + * <p>The ID of the NLB instance.</p> |
| 162 | + * |
| 163 | + * <strong>example:</strong> |
| 164 | + * <p>nlb-7z7jjbzz44d82c9***</p> |
| 165 | + */ |
| 166 | + public Builder nlbId(String nlbId) { |
| 167 | + this.putQueryParameter("NlbId", nlbId); |
| 168 | + this.nlbId = nlbId; |
| 169 | + return this; |
| 170 | + } |
| 171 | + |
| 172 | + /** |
| 173 | + * <p>The mappings between zones and vSwitches. The value is a JSON string. You can specify at most 10 zones. If the region supports two or more zones, specify at least two zones. A ZoneMapping contains the following fields:</p> |
| 174 | + * <ul> |
| 175 | + * <li>The ID of the vSwitch in the zone. Each zone can contain only one vSwitch and one subnet. Data type: string.</li> |
| 176 | + * <li>The zone ID of the NLB instance. Data type: string.</li> |
| 177 | + * </ul> |
| 178 | + * |
| 179 | + * <strong>example:</strong> |
| 180 | + * <p>vsw-sersdf**** |
| 181 | + * cn-hangzhou-a</p> |
| 182 | + */ |
| 183 | + public Builder zoneMappings(String zoneMappings) { |
| 184 | + this.putQueryParameter("ZoneMappings", zoneMappings); |
| 185 | + this.zoneMappings = zoneMappings; |
| 186 | + return this; |
| 187 | + } |
| 188 | + |
| 189 | + @Override |
| 190 | + public BindNlbRequest build() { |
| 191 | + return new BindNlbRequest(this); |
| 192 | + } |
| 193 | + |
| 194 | + } |
| 195 | + |
| 196 | +} |
0 commit comments