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

com.ksc.network.vpc.model.SecurityGroups.CreateSecurityGroupRequest Maven / Gradle / Ivy

There is a newer version: 2.1.8
Show newest version
package com.ksc.network.vpc.model.SecurityGroups;

import com.ksc.KscWebServiceRequest;
import com.ksc.Request;
import com.ksc.model.DryRunSupportedRequest;
import com.ksc.network.vpc.transform.SecurityGroups.CreateSecurityGroupRequestMarshaller;

import java.io.Serializable;

/**
 * 

* Contains the parameters for CreateSecurityGroup. *

*/ public class CreateSecurityGroupRequest extends KscWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest { /** * Vpc的ID */ private String VpcId; /** * 安全组的名称 */ private String SecurityGroupName; /** * 安全组的备注 */ private String Description; public String getVpcId() { return VpcId; } public void setVpcId(String vpcId) { VpcId = vpcId; } public String getSecurityGroupName() { return SecurityGroupName; } public void setSecurityGroupName(String securityGroupName) { SecurityGroupName = securityGroupName; } public String getDescription() { return Description; } public void setDescription(String description) { Description = description; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CreateSecurityGroupRequest that = (CreateSecurityGroupRequest) o; if (!VpcId.equals(that.VpcId)) return false; if (!SecurityGroupName.equals(that.SecurityGroupName)) return false; return Description.equals(that.Description); } @Override public int hashCode() { int result = VpcId.hashCode(); result = 31 * result + SecurityGroupName.hashCode(); result = 31 * result + Description.hashCode(); return result; } @Override public CreateSecurityGroupRequest clone() { return (CreateSecurityGroupRequest) super.clone(); } @Override public Request getDryRunRequest() { Request request = new CreateSecurityGroupRequestMarshaller() .marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy