/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.apigateway.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Deployment implements Serializable, Cloneable, StructuredPojo { /** ** The identifier for the deployment resource. *
*/ private String id; /** ** The description for the deployment resource. *
*/ private String description; /** ** The date and time that the deployment resource was created. *
*/ private java.util.Date createdDate; /** ** A summary of the RestApi at the date and time that the deployment resource was created. *
*/ private java.util.Map* The identifier for the deployment resource. *
* * @param id * The identifier for the deployment resource. */ public void setId(String id) { this.id = id; } /** ** The identifier for the deployment resource. *
* * @return The identifier for the deployment resource. */ public String getId() { return this.id; } /** ** The identifier for the deployment resource. *
* * @param id * The identifier for the deployment resource. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withId(String id) { setId(id); return this; } /** ** The description for the deployment resource. *
* * @param description * The description for the deployment resource. */ public void setDescription(String description) { this.description = description; } /** ** The description for the deployment resource. *
* * @return The description for the deployment resource. */ public String getDescription() { return this.description; } /** ** The description for the deployment resource. *
* * @param description * The description for the deployment resource. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withDescription(String description) { setDescription(description); return this; } /** ** The date and time that the deployment resource was created. *
* * @param createdDate * The date and time that the deployment resource was created. */ public void setCreatedDate(java.util.Date createdDate) { this.createdDate = createdDate; } /** ** The date and time that the deployment resource was created. *
* * @return The date and time that the deployment resource was created. */ public java.util.Date getCreatedDate() { return this.createdDate; } /** ** The date and time that the deployment resource was created. *
* * @param createdDate * The date and time that the deployment resource was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withCreatedDate(java.util.Date createdDate) { setCreatedDate(createdDate); return this; } /** ** A summary of the RestApi at the date and time that the deployment resource was created. *
* * @return A summary of the RestApi at the date and time that the deployment resource was created. */ public java.util.Map* A summary of the RestApi at the date and time that the deployment resource was created. *
* * @param apiSummary * A summary of the RestApi at the date and time that the deployment resource was created. */ public void setApiSummary(java.util.Map* A summary of the RestApi at the date and time that the deployment resource was created. *
* * @param apiSummary * A summary of the RestApi at the date and time that the deployment resource was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Deployment withApiSummary(java.util.Map