public void setTargets(java.util.Collection<Target> targets) {
        if (targets == null) {
            this.targets = null;
            return;
        }

        this.targets = new com.amazonaws.internal.SdkInternalList<Target>(targets);
    }
<p>
An array of search criteria that targets managed nodes using a Key,Value combination that you specify. Targets is
required if you don't provide one or more managed node IDs in the call.
</p>

@param targets
       An array of search criteria that targets managed nodes using a Key,Value combination that you specify.
       Targets is required if you don't provide one or more managed node IDs in the call.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/Command.java