@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutInstancePublicPortsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutInstancePublicPortsRequest() |
Modifier and Type | Method and Description |
---|---|
PutInstancePublicPortsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getInstanceName()
The name of the instance for which to open ports.
|
List<PortInfo> |
getPortInfos()
An array of objects to describe the ports to open for the specified instance.
|
int |
hashCode() |
void |
setInstanceName(String instanceName)
The name of the instance for which to open ports.
|
void |
setPortInfos(Collection<PortInfo> portInfos)
An array of objects to describe the ports to open for the specified instance.
|
String |
toString()
Returns a string representation of this object.
|
PutInstancePublicPortsRequest |
withInstanceName(String instanceName)
The name of the instance for which to open ports.
|
PutInstancePublicPortsRequest |
withPortInfos(Collection<PortInfo> portInfos)
An array of objects to describe the ports to open for the specified instance.
|
PutInstancePublicPortsRequest |
withPortInfos(PortInfo... portInfos)
An array of objects to describe the ports to open for the specified instance.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<PortInfo> getPortInfos()
An array of objects to describe the ports to open for the specified instance.
public void setPortInfos(Collection<PortInfo> portInfos)
An array of objects to describe the ports to open for the specified instance.
portInfos
- An array of objects to describe the ports to open for the specified instance.public PutInstancePublicPortsRequest withPortInfos(PortInfo... portInfos)
An array of objects to describe the ports to open for the specified instance.
NOTE: This method appends the values to the existing list (if any). Use
setPortInfos(java.util.Collection)
or withPortInfos(java.util.Collection)
if you want to
override the existing values.
portInfos
- An array of objects to describe the ports to open for the specified instance.public PutInstancePublicPortsRequest withPortInfos(Collection<PortInfo> portInfos)
An array of objects to describe the ports to open for the specified instance.
portInfos
- An array of objects to describe the ports to open for the specified instance.public void setInstanceName(String instanceName)
The name of the instance for which to open ports.
instanceName
- The name of the instance for which to open ports.public String getInstanceName()
The name of the instance for which to open ports.
public PutInstancePublicPortsRequest withInstanceName(String instanceName)
The name of the instance for which to open ports.
instanceName
- The name of the instance for which to open ports.public String toString()
toString
in class Object
Object.toString()
public PutInstancePublicPortsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()