public ResamplingConfigInput withTargetBands(String... targetBands) {
        if (this.targetBands == null) {
            setTargetBands(new java.util.ArrayList<String>(targetBands.length));
        }
        for (String ele : targetBands) {
            this.targetBands.add(ele);
        }
        return this;
    }
<p>
Bands used in the operation. If no target bands are specified, it uses all bands available in the input.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTargetBands(java.util.Collection)} or {@link #withTargetBands(java.util.Collection)} if you want to
override the existing values.
</p>

@param targetBands
       Bands used in the operation. If no target bands are specified, it uses all bands available in the input.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemakergeospatial/src/main/java/com/amazonaws/services/sagemakergeospatial/model/ResamplingConfigInput.java