forked from aliyun/aliyun-openapi-java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
4,471 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
140 changes: 140 additions & 0 deletions
140
...s/src/main/java/com/aliyuncs/ens/model/v20171110/AuthorizeSecurityGroupEgressRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
/* | ||
* 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 com.aliyuncs.http.MethodType; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class AuthorizeSecurityGroupEgressRequest extends RpcAcsRequest<AuthorizeSecurityGroupEgressResponse> { | ||
|
||
|
||
private String sourcePortRange; | ||
|
||
private String securityGroupId; | ||
|
||
private String policy; | ||
|
||
private String portRange; | ||
|
||
private String ipProtocol; | ||
|
||
private Integer priority; | ||
|
||
private String version; | ||
|
||
private String destCidrIp; | ||
public AuthorizeSecurityGroupEgressRequest() { | ||
super("Ens", "2017-11-10", "AuthorizeSecurityGroupEgress", "ens"); | ||
setMethod(MethodType.POST); | ||
} | ||
|
||
public String getSourcePortRange() { | ||
return this.sourcePortRange; | ||
} | ||
|
||
public void setSourcePortRange(String sourcePortRange) { | ||
this.sourcePortRange = sourcePortRange; | ||
if(sourcePortRange != null){ | ||
putQueryParameter("SourcePortRange", sourcePortRange); | ||
} | ||
} | ||
|
||
public String getSecurityGroupId() { | ||
return this.securityGroupId; | ||
} | ||
|
||
public void setSecurityGroupId(String securityGroupId) { | ||
this.securityGroupId = securityGroupId; | ||
if(securityGroupId != null){ | ||
putQueryParameter("SecurityGroupId", securityGroupId); | ||
} | ||
} | ||
|
||
public String getPolicy() { | ||
return this.policy; | ||
} | ||
|
||
public void setPolicy(String policy) { | ||
this.policy = policy; | ||
if(policy != null){ | ||
putQueryParameter("Policy", policy); | ||
} | ||
} | ||
|
||
public String getPortRange() { | ||
return this.portRange; | ||
} | ||
|
||
public void setPortRange(String portRange) { | ||
this.portRange = portRange; | ||
if(portRange != null){ | ||
putQueryParameter("PortRange", portRange); | ||
} | ||
} | ||
|
||
public String getIpProtocol() { | ||
return this.ipProtocol; | ||
} | ||
|
||
public void setIpProtocol(String ipProtocol) { | ||
this.ipProtocol = ipProtocol; | ||
if(ipProtocol != null){ | ||
putQueryParameter("IpProtocol", ipProtocol); | ||
} | ||
} | ||
|
||
public Integer getPriority() { | ||
return this.priority; | ||
} | ||
|
||
public void setPriority(Integer priority) { | ||
this.priority = priority; | ||
if(priority != null){ | ||
putQueryParameter("Priority", priority.toString()); | ||
} | ||
} | ||
|
||
public String getVersion() { | ||
return this.version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
if(version != null){ | ||
putQueryParameter("Version", version); | ||
} | ||
} | ||
|
||
public String getDestCidrIp() { | ||
return this.destCidrIp; | ||
} | ||
|
||
public void setDestCidrIp(String destCidrIp) { | ||
this.destCidrIp = destCidrIp; | ||
if(destCidrIp != null){ | ||
putQueryParameter("DestCidrIp", destCidrIp); | ||
} | ||
} | ||
|
||
@Override | ||
public Class<AuthorizeSecurityGroupEgressResponse> getResponseClass() { | ||
return AuthorizeSecurityGroupEgressResponse.class; | ||
} | ||
|
||
} |
41 changes: 41 additions & 0 deletions
41
.../src/main/java/com/aliyuncs/ens/model/v20171110/AuthorizeSecurityGroupEgressResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* 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.AcsResponse; | ||
import com.aliyuncs.ens.transform.v20171110.AuthorizeSecurityGroupEgressResponseUnmarshaller; | ||
import com.aliyuncs.transform.UnmarshallerContext; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class AuthorizeSecurityGroupEgressResponse extends AcsResponse { | ||
|
||
private String requestId; | ||
|
||
public String getRequestId() { | ||
return this.requestId; | ||
} | ||
|
||
public void setRequestId(String requestId) { | ||
this.requestId = requestId; | ||
} | ||
|
||
@Override | ||
public AuthorizeSecurityGroupEgressResponse getInstance(UnmarshallerContext context) { | ||
return AuthorizeSecurityGroupEgressResponseUnmarshaller.unmarshall(this, context); | ||
} | ||
} |
140 changes: 140 additions & 0 deletions
140
...sdk-ens/src/main/java/com/aliyuncs/ens/model/v20171110/AuthorizeSecurityGroupRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
/* | ||
* 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 com.aliyuncs.http.MethodType; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class AuthorizeSecurityGroupRequest extends RpcAcsRequest<AuthorizeSecurityGroupResponse> { | ||
|
||
|
||
private String sourcePortRange; | ||
|
||
private String securityGroupId; | ||
|
||
private String policy; | ||
|
||
private String portRange; | ||
|
||
private String ipProtocol; | ||
|
||
private String sourceCidrIp; | ||
|
||
private Integer priority; | ||
|
||
private String version; | ||
public AuthorizeSecurityGroupRequest() { | ||
super("Ens", "2017-11-10", "AuthorizeSecurityGroup", "ens"); | ||
setMethod(MethodType.POST); | ||
} | ||
|
||
public String getSourcePortRange() { | ||
return this.sourcePortRange; | ||
} | ||
|
||
public void setSourcePortRange(String sourcePortRange) { | ||
this.sourcePortRange = sourcePortRange; | ||
if(sourcePortRange != null){ | ||
putQueryParameter("SourcePortRange", sourcePortRange); | ||
} | ||
} | ||
|
||
public String getSecurityGroupId() { | ||
return this.securityGroupId; | ||
} | ||
|
||
public void setSecurityGroupId(String securityGroupId) { | ||
this.securityGroupId = securityGroupId; | ||
if(securityGroupId != null){ | ||
putQueryParameter("SecurityGroupId", securityGroupId); | ||
} | ||
} | ||
|
||
public String getPolicy() { | ||
return this.policy; | ||
} | ||
|
||
public void setPolicy(String policy) { | ||
this.policy = policy; | ||
if(policy != null){ | ||
putQueryParameter("Policy", policy); | ||
} | ||
} | ||
|
||
public String getPortRange() { | ||
return this.portRange; | ||
} | ||
|
||
public void setPortRange(String portRange) { | ||
this.portRange = portRange; | ||
if(portRange != null){ | ||
putQueryParameter("PortRange", portRange); | ||
} | ||
} | ||
|
||
public String getIpProtocol() { | ||
return this.ipProtocol; | ||
} | ||
|
||
public void setIpProtocol(String ipProtocol) { | ||
this.ipProtocol = ipProtocol; | ||
if(ipProtocol != null){ | ||
putQueryParameter("IpProtocol", ipProtocol); | ||
} | ||
} | ||
|
||
public String getSourceCidrIp() { | ||
return this.sourceCidrIp; | ||
} | ||
|
||
public void setSourceCidrIp(String sourceCidrIp) { | ||
this.sourceCidrIp = sourceCidrIp; | ||
if(sourceCidrIp != null){ | ||
putQueryParameter("SourceCidrIp", sourceCidrIp); | ||
} | ||
} | ||
|
||
public Integer getPriority() { | ||
return this.priority; | ||
} | ||
|
||
public void setPriority(Integer priority) { | ||
this.priority = priority; | ||
if(priority != null){ | ||
putQueryParameter("Priority", priority.toString()); | ||
} | ||
} | ||
|
||
public String getVersion() { | ||
return this.version; | ||
} | ||
|
||
public void setVersion(String version) { | ||
this.version = version; | ||
if(version != null){ | ||
putQueryParameter("Version", version); | ||
} | ||
} | ||
|
||
@Override | ||
public Class<AuthorizeSecurityGroupResponse> getResponseClass() { | ||
return AuthorizeSecurityGroupResponse.class; | ||
} | ||
|
||
} |
Oops, something went wrong.