/* * 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.codedeploy.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Represents the output of a BatchGetApplicationRevisions
operation.
*
* The name of the application that corresponds to the revisions. *
*/ private String applicationName; /** ** Information about errors that might have occurred during the API call. *
*/ private String errorMessage; /** ** Additional information about the revisions, including the type and location. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the application that corresponds to the revisions. *
* * @param applicationName * The name of the application that corresponds to the revisions. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** ** The name of the application that corresponds to the revisions. *
* * @return The name of the application that corresponds to the revisions. */ public String getApplicationName() { return this.applicationName; } /** ** The name of the application that corresponds to the revisions. *
* * @param applicationName * The name of the application that corresponds to the revisions. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetApplicationRevisionsResult withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** ** Information about errors that might have occurred during the API call. *
* * @param errorMessage * Information about errors that might have occurred during the API call. */ public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** ** Information about errors that might have occurred during the API call. *
* * @return Information about errors that might have occurred during the API call. */ public String getErrorMessage() { return this.errorMessage; } /** ** Information about errors that might have occurred during the API call. *
* * @param errorMessage * Information about errors that might have occurred during the API call. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetApplicationRevisionsResult withErrorMessage(String errorMessage) { setErrorMessage(errorMessage); return this; } /** ** Additional information about the revisions, including the type and location. *
* * @return Additional information about the revisions, including the type and location. */ public java.util.List* Additional information about the revisions, including the type and location. *
* * @param revisions * Additional information about the revisions, including the type and location. */ public void setRevisions(java.util.Collection* Additional information about the revisions, including the type and location. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRevisions(java.util.Collection)} or {@link #withRevisions(java.util.Collection)} if you want to * override the existing values. *
* * @param revisions * Additional information about the revisions, including the type and location. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetApplicationRevisionsResult withRevisions(RevisionInfo... revisions) { if (this.revisions == null) { setRevisions(new com.amazonaws.internal.SdkInternalList* Additional information about the revisions, including the type and location. *
* * @param revisions * Additional information about the revisions, including the type and location. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetApplicationRevisionsResult withRevisions(java.util.Collection