com.amazonaws.services.elasticbeanstalk.model
Class SwapEnvironmentCNAMEsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticbeanstalk.model.SwapEnvironmentCNAMEsRequest

public class SwapEnvironmentCNAMEsRequest
extends AmazonWebServiceRequest

Container for the parameters to the SwapEnvironmentCNAMEs operation.

Swaps the CNAMEs of two environments.

See Also:
AWSElasticBeanstalk.swapEnvironmentCNAMEs(SwapEnvironmentCNAMEsRequest)

Constructor Summary
SwapEnvironmentCNAMEsRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDestinationEnvironmentId()
          The ID of the destination environment.
 String getDestinationEnvironmentName()
          The name of the destination environment.
 String getSourceEnvironmentId()
          The ID of the source environment.
 String getSourceEnvironmentName()
          The name of the source environment.
 int hashCode()
           
 void setDestinationEnvironmentId(String destinationEnvironmentId)
          The ID of the destination environment.
 void setDestinationEnvironmentName(String destinationEnvironmentName)
          The name of the destination environment.
 void setSourceEnvironmentId(String sourceEnvironmentId)
          The ID of the source environment.
 void setSourceEnvironmentName(String sourceEnvironmentName)
          The name of the source environment.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SwapEnvironmentCNAMEsRequest withDestinationEnvironmentId(String destinationEnvironmentId)
          The ID of the destination environment.
 SwapEnvironmentCNAMEsRequest withDestinationEnvironmentName(String destinationEnvironmentName)
          The name of the destination environment.
 SwapEnvironmentCNAMEsRequest withSourceEnvironmentId(String sourceEnvironmentId)
          The ID of the source environment.
 SwapEnvironmentCNAMEsRequest withSourceEnvironmentName(String sourceEnvironmentName)
          The name of the source environment.
 
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

SwapEnvironmentCNAMEsRequest

public SwapEnvironmentCNAMEsRequest()
Method Detail

getSourceEnvironmentId

public String getSourceEnvironmentId()
The ID of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.

Returns:
The ID of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.


setSourceEnvironmentId

public void setSourceEnvironmentId(String sourceEnvironmentId)
The ID of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.

Parameters:
sourceEnvironmentId - The ID of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.


withSourceEnvironmentId

public SwapEnvironmentCNAMEsRequest withSourceEnvironmentId(String sourceEnvironmentId)
The ID of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.

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

Parameters:
sourceEnvironmentId - The ID of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.

Returns:
A reference to this updated object so that method calls can be chained together.

getSourceEnvironmentName

public String getSourceEnvironmentName()
The name of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.

Constraints:
Length: 4 - 23

Returns:
The name of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.


setSourceEnvironmentName

public void setSourceEnvironmentName(String sourceEnvironmentName)
The name of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.

Constraints:
Length: 4 - 23

Parameters:
sourceEnvironmentName - The name of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.


withSourceEnvironmentName

public SwapEnvironmentCNAMEsRequest withSourceEnvironmentName(String sourceEnvironmentName)
The name of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.

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

Constraints:
Length: 4 - 23

Parameters:
sourceEnvironmentName - The name of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.

Returns:
A reference to this updated object so that method calls can be chained together.

getDestinationEnvironmentId

public String getDestinationEnvironmentId()
The ID of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.

Returns:
The ID of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.


setDestinationEnvironmentId

public void setDestinationEnvironmentId(String destinationEnvironmentId)
The ID of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.

Parameters:
destinationEnvironmentId - The ID of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.


withDestinationEnvironmentId

public SwapEnvironmentCNAMEsRequest withDestinationEnvironmentId(String destinationEnvironmentId)
The ID of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.

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

Parameters:
destinationEnvironmentId - The ID of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.

Returns:
A reference to this updated object so that method calls can be chained together.

getDestinationEnvironmentName

public String getDestinationEnvironmentName()
The name of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.

Constraints:
Length: 4 - 23

Returns:
The name of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.


setDestinationEnvironmentName

public void setDestinationEnvironmentName(String destinationEnvironmentName)
The name of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.

Constraints:
Length: 4 - 23

Parameters:
destinationEnvironmentName - The name of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.


withDestinationEnvironmentName

public SwapEnvironmentCNAMEsRequest withDestinationEnvironmentName(String destinationEnvironmentName)
The name of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.

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

Constraints:
Length: 4 - 23

Parameters:
destinationEnvironmentName - The name of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.

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.