Class Deployment
- java.lang.Object
-
- com.amazonaws.services.apigateway.model.Deployment
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Deployment extends Object implements Serializable, Cloneable
An immutable representation of a RestApi resource that can be called by users using Stages. A deployment must be associated with a Stage for it to be callable over the Internet.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Deployment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentaddApiSummaryEntry(String key, Map<String,MethodSnapshot> value)DeploymentclearApiSummaryEntries()Removes all the entries added into ApiSummary.Deploymentclone()booleanequals(Object obj)Map<String,Map<String,MethodSnapshot>>getApiSummary()Gets a summary of the RestApi at the date and time that the deployment resource was created.DategetCreatedDate()The date and time that the deployment resource was created.StringgetDescription()The description for the deployment resource.StringgetId()The identifier for the deployment resource.inthashCode()voidsetApiSummary(Map<String,Map<String,MethodSnapshot>> apiSummary)Gets a summary of the RestApi at the date and time that the deployment resource was created.voidsetCreatedDate(Date createdDate)The date and time that the deployment resource was created.voidsetDescription(String description)The description for the deployment resource.voidsetId(String id)The identifier for the deployment resource.StringtoString()Returns a string representation of this object; useful for testing and debugging.DeploymentwithApiSummary(Map<String,Map<String,MethodSnapshot>> apiSummary)Gets a summary of the RestApi at the date and time that the deployment resource was created.DeploymentwithCreatedDate(Date createdDate)The date and time that the deployment resource was created.DeploymentwithDescription(String description)The description for the deployment resource.DeploymentwithId(String id)The identifier for the deployment resource.
-
-
-
Method Detail
-
setId
public void setId(String id)
The identifier for the deployment resource.
- Parameters:
id- The identifier for the deployment resource.
-
getId
public String getId()
The identifier for the deployment resource.
- Returns:
- The identifier for the deployment resource.
-
withId
public Deployment withId(String id)
The identifier for the deployment resource.
- Parameters:
id- The identifier for the deployment resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The description for the deployment resource.
- Parameters:
description- The description for the deployment resource.
-
getDescription
public String getDescription()
The description for the deployment resource.
- Returns:
- The description for the deployment resource.
-
withDescription
public Deployment withDescription(String description)
The description for the deployment resource.
- Parameters:
description- The description for the deployment resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedDate
public void setCreatedDate(Date createdDate)
The date and time that the deployment resource was created.
- Parameters:
createdDate- The date and time that the deployment resource was created.
-
getCreatedDate
public Date getCreatedDate()
The date and time that the deployment resource was created.
- Returns:
- The date and time that the deployment resource was created.
-
withCreatedDate
public Deployment withCreatedDate(Date createdDate)
The date and time that the deployment resource was created.
- Parameters:
createdDate- The date and time that the deployment resource was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getApiSummary
public Map<String,Map<String,MethodSnapshot>> getApiSummary()
Gets a summary of the RestApi at the date and time that the deployment resource was created.
- Returns:
- Gets a summary of the RestApi at the date and time that the deployment resource was created.
-
setApiSummary
public void setApiSummary(Map<String,Map<String,MethodSnapshot>> apiSummary)
Gets a summary of the RestApi at the date and time that the deployment resource was created.
- Parameters:
apiSummary- Gets a summary of the RestApi at the date and time that the deployment resource was created.
-
withApiSummary
public Deployment withApiSummary(Map<String,Map<String,MethodSnapshot>> apiSummary)
Gets a summary of the RestApi at the date and time that the deployment resource was created.
- Parameters:
apiSummary- Gets a summary of the RestApi at the date and time that the deployment resource was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addApiSummaryEntry
public Deployment addApiSummaryEntry(String key, Map<String,MethodSnapshot> value)
-
clearApiSummaryEntries
public Deployment clearApiSummaryEntries()
Removes all the entries added into ApiSummary. <p> Returns a reference to this 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Deployment clone()
-
-