Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class CreateNetworkInterfaceRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateNetworkInterfaceRequest
All Implemented Interfaces:
Serializable

public class CreateNetworkInterfaceRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateNetworkInterface operation.

See Also:
AmazonEC2.createNetworkInterface(CreateNetworkInterfaceRequest), Serialized Form

Constructor Summary
CreateNetworkInterfaceRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDescription()
          Returns the value of the Description property for this object.
 List<String> getGroups()
          Returns the value of the Groups property for this object.
 String getPrivateIpAddress()
          Returns the value of the PrivateIpAddress property for this object.
 List<PrivateIpAddressSpecification> getPrivateIpAddresses()
          Returns the value of the PrivateIpAddresses property for this object.
 Integer getSecondaryPrivateIpAddressCount()
          Returns the value of the SecondaryPrivateIpAddressCount property for this object.
 String getSubnetId()
          Returns the value of the SubnetId property for this object.
 int hashCode()
           
 void setDescription(String description)
          Sets the value of the Description property for this object.
 void setGroups(Collection<String> groups)
          Sets the value of the Groups property for this object.
 void setPrivateIpAddress(String privateIpAddress)
          Sets the value of the PrivateIpAddress property for this object.
 void setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
          Sets the value of the PrivateIpAddresses property for this object.
 void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
          Sets the value of the SecondaryPrivateIpAddressCount property for this object.
 void setSubnetId(String subnetId)
          Sets the value of the SubnetId property for this object.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateNetworkInterfaceRequest withDescription(String description)
          Sets the value of the Description property for this object.
 CreateNetworkInterfaceRequest withGroups(Collection<String> groups)
          Sets the value of the Groups property for this object.
 CreateNetworkInterfaceRequest withGroups(String... groups)
          Sets the value of the Groups property for this object.
 CreateNetworkInterfaceRequest withPrivateIpAddress(String privateIpAddress)
          Sets the value of the PrivateIpAddress property for this object.
 CreateNetworkInterfaceRequest withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
          Sets the value of the PrivateIpAddresses property for this object.
 CreateNetworkInterfaceRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
          Sets the value of the PrivateIpAddresses property for this object.
 CreateNetworkInterfaceRequest withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
          Sets the value of the SecondaryPrivateIpAddressCount property for this object.
 CreateNetworkInterfaceRequest withSubnetId(String subnetId)
          Sets the value of the SubnetId property for this object.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateNetworkInterfaceRequest

public CreateNetworkInterfaceRequest()
Method Detail

getSubnetId

public String getSubnetId()
Returns the value of the SubnetId property for this object.

Returns:
The value of the SubnetId property for this object.

setSubnetId

public void setSubnetId(String subnetId)
Sets the value of the SubnetId property for this object.

Parameters:
subnetId - The new value for the SubnetId property for this object.

withSubnetId

public CreateNetworkInterfaceRequest withSubnetId(String subnetId)
Sets the value of the SubnetId property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
subnetId - The new value for the SubnetId property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
Returns the value of the Description property for this object.

Returns:
The value of the Description property for this object.

setDescription

public void setDescription(String description)
Sets the value of the Description property for this object.

Parameters:
description - The new value for the Description property for this object.

withDescription

public CreateNetworkInterfaceRequest withDescription(String description)
Sets the value of the Description property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
description - The new value for the Description property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrivateIpAddress

public String getPrivateIpAddress()
Returns the value of the PrivateIpAddress property for this object.

Returns:
The value of the PrivateIpAddress property for this object.

setPrivateIpAddress

public void setPrivateIpAddress(String privateIpAddress)
Sets the value of the PrivateIpAddress property for this object.

Parameters:
privateIpAddress - The new value for the PrivateIpAddress property for this object.

withPrivateIpAddress

public CreateNetworkInterfaceRequest withPrivateIpAddress(String privateIpAddress)
Sets the value of the PrivateIpAddress property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddress - The new value for the PrivateIpAddress property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroups

public List<String> getGroups()
Returns the value of the Groups property for this object.

Returns:
The value of the Groups property for this object.

setGroups

public void setGroups(Collection<String> groups)
Sets the value of the Groups property for this object.

Parameters:
groups - The new value for the Groups property for this object.

withGroups

public CreateNetworkInterfaceRequest withGroups(String... groups)
Sets the value of the Groups property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groups - The new value for the Groups property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withGroups

public CreateNetworkInterfaceRequest withGroups(Collection<String> groups)
Sets the value of the Groups property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groups - The new value for the Groups property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrivateIpAddresses

public List<PrivateIpAddressSpecification> getPrivateIpAddresses()
Returns the value of the PrivateIpAddresses property for this object.

Returns:
The value of the PrivateIpAddresses property for this object.

setPrivateIpAddresses

public void setPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
Sets the value of the PrivateIpAddresses property for this object.

Parameters:
privateIpAddresses - The new value for the PrivateIpAddresses property for this object.

withPrivateIpAddresses

public CreateNetworkInterfaceRequest withPrivateIpAddresses(PrivateIpAddressSpecification... privateIpAddresses)
Sets the value of the PrivateIpAddresses property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddresses - The new value for the PrivateIpAddresses property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

withPrivateIpAddresses

public CreateNetworkInterfaceRequest withPrivateIpAddresses(Collection<PrivateIpAddressSpecification> privateIpAddresses)
Sets the value of the PrivateIpAddresses property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
privateIpAddresses - The new value for the PrivateIpAddresses property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getSecondaryPrivateIpAddressCount

public Integer getSecondaryPrivateIpAddressCount()
Returns the value of the SecondaryPrivateIpAddressCount property for this object.

Returns:
The value of the SecondaryPrivateIpAddressCount property for this object.

setSecondaryPrivateIpAddressCount

public void setSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
Sets the value of the SecondaryPrivateIpAddressCount property for this object.

Parameters:
secondaryPrivateIpAddressCount - The new value for the SecondaryPrivateIpAddressCount property for this object.

withSecondaryPrivateIpAddressCount

public CreateNetworkInterfaceRequest withSecondaryPrivateIpAddressCount(Integer secondaryPrivateIpAddressCount)
Sets the value of the SecondaryPrivateIpAddressCount property for this object.

Returns a reference to this object so that method calls can be chained together.

Parameters:
secondaryPrivateIpAddressCount - The new value for the SecondaryPrivateIpAddressCount property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.