All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codedeploy.model.ListDeploymentTargetsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS CodeDeploy module holds the client classes that are used for communicating with AWS CodeDeploy Service

There is a newer version: 1.12.782
Show newest version
/*
 * Copyright 2019-2024 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;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS
 *      API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListDeploymentTargetsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The unique ID of a deployment. *

*/ private String deploymentId; /** *

* A token identifier returned from the previous ListDeploymentTargets call. It can be used to return * the next set of deployment targets in the list. *

*/ private String nextToken; /** *

* A key used to filter the returned targets. The two valid values are: *

*
    *
  • *

    * TargetStatus - A TargetStatus filter string can be Failed, * InProgress, Pending, Ready, Skipped, Succeeded, * or Unknown. *

    *
  • *
  • *

    * ServerInstanceLabel - A ServerInstanceLabel filter string can be Blue or * Green. *

    *
  • *
*/ private java.util.Map> targetFilters; /** *

* The unique ID of a deployment. *

* * @param deploymentId * The unique ID of a deployment. */ public void setDeploymentId(String deploymentId) { this.deploymentId = deploymentId; } /** *

* The unique ID of a deployment. *

* * @return The unique ID of a deployment. */ public String getDeploymentId() { return this.deploymentId; } /** *

* The unique ID of a deployment. *

* * @param deploymentId * The unique ID of a deployment. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDeploymentTargetsRequest withDeploymentId(String deploymentId) { setDeploymentId(deploymentId); return this; } /** *

* A token identifier returned from the previous ListDeploymentTargets call. It can be used to return * the next set of deployment targets in the list. *

* * @param nextToken * A token identifier returned from the previous ListDeploymentTargets call. It can be used to * return the next set of deployment targets in the list. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* A token identifier returned from the previous ListDeploymentTargets call. It can be used to return * the next set of deployment targets in the list. *

* * @return A token identifier returned from the previous ListDeploymentTargets call. It can be used to * return the next set of deployment targets in the list. */ public String getNextToken() { return this.nextToken; } /** *

* A token identifier returned from the previous ListDeploymentTargets call. It can be used to return * the next set of deployment targets in the list. *

* * @param nextToken * A token identifier returned from the previous ListDeploymentTargets call. It can be used to * return the next set of deployment targets in the list. * @return Returns a reference to this object so that method calls can be chained together. */ public ListDeploymentTargetsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* A key used to filter the returned targets. The two valid values are: *

*
    *
  • *

    * TargetStatus - A TargetStatus filter string can be Failed, * InProgress, Pending, Ready, Skipped, Succeeded, * or Unknown. *

    *
  • *
  • *

    * ServerInstanceLabel - A ServerInstanceLabel filter string can be Blue or * Green. *

    *
  • *
* * @return A key used to filter the returned targets. The two valid values are:

*
    *
  • *

    * TargetStatus - A TargetStatus filter string can be Failed, * InProgress, Pending, Ready, Skipped, * Succeeded, or Unknown. *

    *
  • *
  • *

    * ServerInstanceLabel - A ServerInstanceLabel filter string can be * Blue or Green. *

    *
  • */ public java.util.Map> getTargetFilters() { return targetFilters; } /** *

    * A key used to filter the returned targets. The two valid values are: *

    *
      *
    • *

      * TargetStatus - A TargetStatus filter string can be Failed, * InProgress, Pending, Ready, Skipped, Succeeded, * or Unknown. *

      *
    • *
    • *

      * ServerInstanceLabel - A ServerInstanceLabel filter string can be Blue or * Green. *

      *
    • *
    * * @param targetFilters * A key used to filter the returned targets. The two valid values are:

    *
      *
    • *

      * TargetStatus - A TargetStatus filter string can be Failed, * InProgress, Pending, Ready, Skipped, * Succeeded, or Unknown. *

      *
    • *
    • *

      * ServerInstanceLabel - A ServerInstanceLabel filter string can be * Blue or Green. *

      *
    • */ public void setTargetFilters(java.util.Map> targetFilters) { this.targetFilters = targetFilters; } /** *

      * A key used to filter the returned targets. The two valid values are: *

      *
        *
      • *

        * TargetStatus - A TargetStatus filter string can be Failed, * InProgress, Pending, Ready, Skipped, Succeeded, * or Unknown. *

        *
      • *
      • *

        * ServerInstanceLabel - A ServerInstanceLabel filter string can be Blue or * Green. *

        *
      • *
      * * @param targetFilters * A key used to filter the returned targets. The two valid values are:

      *
        *
      • *

        * TargetStatus - A TargetStatus filter string can be Failed, * InProgress, Pending, Ready, Skipped, * Succeeded, or Unknown. *

        *
      • *
      • *

        * ServerInstanceLabel - A ServerInstanceLabel filter string can be * Blue or Green. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public ListDeploymentTargetsRequest withTargetFilters(java.util.Map> targetFilters) { setTargetFilters(targetFilters); return this; } /** * Add a single TargetFilters entry * * @see ListDeploymentTargetsRequest#withTargetFilters * @returns a reference to this object so that method calls can be chained together. */ public ListDeploymentTargetsRequest addTargetFiltersEntry(String key, java.util.List value) { if (null == this.targetFilters) { this.targetFilters = new java.util.HashMap>(); } if (this.targetFilters.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.targetFilters.put(key, value); return this; } /** * Removes all the entries added into TargetFilters. * * @return Returns a reference to this object so that method calls can be chained together. */ public ListDeploymentTargetsRequest clearTargetFiltersEntries() { this.targetFilters = null; return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDeploymentId() != null) sb.append("DeploymentId: ").append(getDeploymentId()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getTargetFilters() != null) sb.append("TargetFilters: ").append(getTargetFilters()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListDeploymentTargetsRequest == false) return false; ListDeploymentTargetsRequest other = (ListDeploymentTargetsRequest) obj; if (other.getDeploymentId() == null ^ this.getDeploymentId() == null) return false; if (other.getDeploymentId() != null && other.getDeploymentId().equals(this.getDeploymentId()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getTargetFilters() == null ^ this.getTargetFilters() == null) return false; if (other.getTargetFilters() != null && other.getTargetFilters().equals(this.getTargetFilters()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeploymentId() == null) ? 0 : getDeploymentId().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getTargetFilters() == null) ? 0 : getTargetFilters().hashCode()); return hashCode; } @Override public ListDeploymentTargetsRequest clone() { return (ListDeploymentTargetsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy