Skip to content

Commit

Permalink
Generated 2017-11-10 for Ens.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Aug 23, 2024
1 parent aa7ed1b commit 0bea523
Show file tree
Hide file tree
Showing 40 changed files with 1,922 additions and 14 deletions.
3 changes: 3 additions & 0 deletions aliyun-java-sdk-ens/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-08-23 Version: 3.0.17
- Generated 2017-11-10 for `Ens`.

2024-07-03 Version: 3.0.16
- Supported APIs DescribeSDG,PreloadRegionSDG,UnloadRegionSDG,DeployInstanceSDG,RemoveInstanceSDG.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-java-sdk-ens/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-ens</artifactId>
<packaging>jar</packaging>
<version>3.0.16</version>
<version>3.0.17</version>
<name>aliyun-java-sdk-ens</name>
<url>http://www.aliyun.com</url>
<description>Aliyun Open API SDK for Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public class CreateLoadBalancerHTTPListenerRequest extends RpcAcsRequest<CreateL

private Integer healthCheckInterval;

private Integer backendServerPort;

private String description;

private Integer unhealthyThreshold;
Expand Down Expand Up @@ -176,6 +178,17 @@ public void setHealthCheckInterval(Integer healthCheckInterval) {
}
}

public Integer getBackendServerPort() {
return this.backendServerPort;
}

public void setBackendServerPort(Integer backendServerPort) {
this.backendServerPort = backendServerPort;
if(backendServerPort != null){
putQueryParameter("BackendServerPort", backendServerPort.toString());
}
}

public String getDescription() {
return this.description;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public class CreateLoadBalancerHTTPSListenerRequest extends RpcAcsRequest<Create

private Integer healthCheckInterval;

private Integer backendServerPort;

private String description;

private Integer unhealthyThreshold;
Expand Down Expand Up @@ -182,6 +184,17 @@ public void setHealthCheckInterval(Integer healthCheckInterval) {
}
}

public Integer getBackendServerPort() {
return this.backendServerPort;
}

public void setBackendServerPort(Integer backendServerPort) {
this.backendServerPort = backendServerPort;
if(backendServerPort != null){
putQueryParameter("BackendServerPort", backendServerPort.toString());
}
}

public String getDescription() {
return this.description;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
public class CreateLoadBalancerUDPListenerRequest extends RpcAcsRequest<CreateLoadBalancerUDPListenerResponse> {


private Integer establishedTimeout;

private String loadBalancerId;

private String healthCheckReq;
Expand Down Expand Up @@ -54,6 +56,17 @@ public CreateLoadBalancerUDPListenerRequest() {
setMethod(MethodType.POST);
}

public Integer getEstablishedTimeout() {
return this.establishedTimeout;
}

public void setEstablishedTimeout(Integer establishedTimeout) {
this.establishedTimeout = establishedTimeout;
if(establishedTimeout != null){
putQueryParameter("EstablishedTimeout", establishedTimeout.toString());
}
}

public String getLoadBalancerId() {
return this.loadBalancerId;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.ens.model.v20171110;

import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.aliyuncs.http.MethodType;

/**
* @author auto create
* @version
*/
public class CreateStorageGatewayRequest extends RpcAcsRequest<CreateStorageGatewayResponse> {


@SerializedName("orderDetails")
private List<OrderDetails> orderDetails;
public CreateStorageGatewayRequest() {
super("Ens", "2017-11-10", "CreateStorageGateway", "ens");
setMethod(MethodType.POST);
}

public List<OrderDetails> getOrderDetails() {
return this.orderDetails;
}

public void setOrderDetails(List<OrderDetails> orderDetails) {
this.orderDetails = orderDetails;
if (orderDetails != null) {
putQueryParameter("OrderDetails" , new Gson().toJson(orderDetails));
}
}

public static class OrderDetails {

@SerializedName("GatewayType")
private String gatewayType;

@SerializedName("VpcId")
private String vpcId;

@SerializedName("GatewayName")
private String gatewayName;

@SerializedName("EnsRegionId")
private String ensRegionId;

@SerializedName("Description")
private String description;

public String getGatewayType() {
return this.gatewayType;
}

public void setGatewayType(String gatewayType) {
this.gatewayType = gatewayType;
}

public String getVpcId() {
return this.vpcId;
}

public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}

public String getGatewayName() {
return this.gatewayName;
}

public void setGatewayName(String gatewayName) {
this.gatewayName = gatewayName;
}

public String getEnsRegionId() {
return this.ensRegionId;
}

public void setEnsRegionId(String ensRegionId) {
this.ensRegionId = ensRegionId;
}

public String getDescription() {
return this.description;
}

public void setDescription(String description) {
this.description = description;
}
}

@Override
public Class<CreateStorageGatewayResponse> getResponseClass() {
return CreateStorageGatewayResponse.class;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.aliyuncs.ens.model.v20171110;

import java.util.List;
import com.aliyuncs.AcsResponse;
import com.aliyuncs.ens.transform.v20171110.CreateStorageGatewayResponseUnmarshaller;
import com.aliyuncs.transform.UnmarshallerContext;

/**
* @author auto create
* @version
*/
public class CreateStorageGatewayResponse extends AcsResponse {

private String requestId;

private String bizStatusCode;

private List<AllocationIdItem> allocationId;

private List<UnAllocationIdItem> unAllocationId;

public String getRequestId() {
return this.requestId;
}

public void setRequestId(String requestId) {
this.requestId = requestId;
}

public String getBizStatusCode() {
return this.bizStatusCode;
}

public void setBizStatusCode(String bizStatusCode) {
this.bizStatusCode = bizStatusCode;
}

public List<AllocationIdItem> getAllocationId() {
return this.allocationId;
}

public void setAllocationId(List<AllocationIdItem> allocationId) {
this.allocationId = allocationId;
}

public List<UnAllocationIdItem> getUnAllocationId() {
return this.unAllocationId;
}

public void setUnAllocationId(List<UnAllocationIdItem> unAllocationId) {
this.unAllocationId = unAllocationId;
}

public static class AllocationIdItem {

private String instanceId;

private String ensRegionId;

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}

public String getEnsRegionId() {
return this.ensRegionId;
}

public void setEnsRegionId(String ensRegionId) {
this.ensRegionId = ensRegionId;
}
}

public static class UnAllocationIdItem {

private String instanceId;

private String ensRegionId;

public String getInstanceId() {
return this.instanceId;
}

public void setInstanceId(String instanceId) {
this.instanceId = instanceId;
}

public String getEnsRegionId() {
return this.ensRegionId;
}

public void setEnsRegionId(String ensRegionId) {
this.ensRegionId = ensRegionId;
}
}

@Override
public CreateStorageGatewayResponse getInstance(UnmarshallerContext context) {
return CreateStorageGatewayResponseUnmarshaller.unmarshall(this, context);
}

@Override
public boolean checkShowJsonItemName() {
return false;
}
}
Loading

0 comments on commit 0bea523

Please sign in to comment.