Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudformation.model
Class EstimateTemplateCostRequest

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

public class EstimateTemplateCostRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the EstimateTemplateCost operation.

Returns the estimated monthly cost of a template. The return value is an AWS Simple Monthly Calculator URL with a query string that describes the resources required to run the template.

See Also:
AmazonCloudFormation.estimateTemplateCost(EstimateTemplateCostRequest), Serialized Form

Constructor Summary
EstimateTemplateCostRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Parameter> getParameters()
          A list of Parameter structures that specify input parameters.
 String getTemplateBody()
          Structure containing the template body.
 String getTemplateURL()
          Location of file containing the template body.
 int hashCode()
           
 void setParameters(Collection<Parameter> parameters)
          A list of Parameter structures that specify input parameters.
 void setTemplateBody(String templateBody)
          Structure containing the template body.
 void setTemplateURL(String templateURL)
          Location of file containing the template body.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 EstimateTemplateCostRequest withParameters(Collection<Parameter> parameters)
          A list of Parameter structures that specify input parameters.
 EstimateTemplateCostRequest withParameters(Parameter... parameters)
          A list of Parameter structures that specify input parameters.
 EstimateTemplateCostRequest withTemplateBody(String templateBody)
          Structure containing the template body.
 EstimateTemplateCostRequest withTemplateURL(String templateURL)
          Location of file containing the template body.
 
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

EstimateTemplateCostRequest

public EstimateTemplateCostRequest()
Method Detail

getTemplateBody

public String getTemplateBody()
Structure containing the template body. (For more information, go to the AWS CloudFormation User Guide.)

Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.

Constraints:
Length: 1 - 51200

Returns:
Structure containing the template body. (For more information, go to the AWS CloudFormation User Guide.)

Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.


setTemplateBody

public void setTemplateBody(String templateBody)
Structure containing the template body. (For more information, go to the AWS CloudFormation User Guide.)

Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.

Constraints:
Length: 1 - 51200

Parameters:
templateBody - Structure containing the template body. (For more information, go to the AWS CloudFormation User Guide.)

Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.


withTemplateBody

public EstimateTemplateCostRequest withTemplateBody(String templateBody)
Structure containing the template body. (For more information, go to the AWS CloudFormation User Guide.)

Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.

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

Constraints:
Length: 1 - 51200

Parameters:
templateBody - Structure containing the template body. (For more information, go to the AWS CloudFormation User Guide.)

Conditional: You must pass TemplateBody or TemplateURL. If both are passed, only TemplateBody is used.

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

getTemplateURL

public String getTemplateURL()
Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

Constraints:
Length: 1 - 1024

Returns:
Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.


setTemplateURL

public void setTemplateURL(String templateURL)
Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

Constraints:
Length: 1 - 1024

Parameters:
templateURL - Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.


withTemplateURL

public EstimateTemplateCostRequest withTemplateURL(String templateURL)
Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

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

Constraints:
Length: 1 - 1024

Parameters:
templateURL - Location of file containing the template body. The URL must point to a template located in an S3 bucket in the same region as the stack. For more information, go to the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

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

getParameters

public List<Parameter> getParameters()
A list of Parameter structures that specify input parameters.

Returns:
A list of Parameter structures that specify input parameters.

setParameters

public void setParameters(Collection<Parameter> parameters)
A list of Parameter structures that specify input parameters.

Parameters:
parameters - A list of Parameter structures that specify input parameters.

withParameters

public EstimateTemplateCostRequest withParameters(Parameter... parameters)
A list of Parameter structures that specify input parameters.

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

Parameters:
parameters - A list of Parameter structures that specify input parameters.
Returns:
A reference to this updated object so that method calls can be chained together.

withParameters

public EstimateTemplateCostRequest withParameters(Collection<Parameter> parameters)
A list of Parameter structures that specify input parameters.

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

Parameters:
parameters - A list of Parameter structures that specify input parameters.
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.