public AmiDistributionConfiguration withTargetAccountIds(java.util.Collection<String> targetAccountIds) {
        setTargetAccountIds(targetAccountIds);
        return this;
    }
<p>
The ID of an account to which you want to distribute an image.
</p>

@param targetAccountIds
       The ID of an account to which you want to distribute an image.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-imagebuilder/src/main/java/com/amazonaws/services/imagebuilder/model/AmiDistributionConfiguration.java