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

com.ksc.network.vpc.model.Nat.AssociateNatRequest Maven / Gradle / Ivy

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

import com.ksc.KscWebServiceRequest;
import com.ksc.Request;
import com.ksc.model.DryRunSupportedRequest;
import com.ksc.network.vpc.transform.Nat.AssociateNatRequestMarshaller;

import java.io.Serializable;

/**
 * 

* Contains the parameters for AssociateNat. *

*/ public class AssociateNatRequest extends KscWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest { /** * Nat的ID */ private String NatId; /** * 子网的ID */ private String SubnetId; public String getNatId() { return NatId; } public void setNatId(String natId) { NatId = natId; } public String getSubnetId() { return SubnetId; } public void setSubnetId(String subnetId) { SubnetId = subnetId; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AssociateNatRequest that = (AssociateNatRequest) o; if (!NatId.equals(that.NatId)) return false; return SubnetId.equals(that.SubnetId); } @Override public int hashCode() { int result = NatId.hashCode(); result = 31 * result + SubnetId.hashCode(); return result; } @Override public AssociateNatRequest clone() { return (AssociateNatRequest) super.clone(); } @Override public Request getDryRunRequest() { Request request = new AssociateNatRequestMarshaller() .marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy