public UpdateBucketRequest withReadonlyAccessAccounts(String... readonlyAccessAccounts) {
        if (this.readonlyAccessAccounts == null) {
            setReadonlyAccessAccounts(new java.util.ArrayList<String>(readonlyAccessAccounts.length));
        }
        for (String ele : readonlyAccessAccounts) {
            this.readonlyAccessAccounts.add(ele);
        }
        return this;
    }
<p>
An array of strings to specify the Amazon Web Services account IDs that can access the bucket.
</p>
<p>
You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setReadonlyAccessAccounts(java.util.Collection)} or
{@link #withReadonlyAccessAccounts(java.util.Collection)} if you want to override the existing values.
</p>

@param readonlyAccessAccounts
       An array of strings to specify the Amazon Web Services account IDs that can access the bucket.</p>
       <p>
       You can give a maximum of 10 Amazon Web Services accounts access to a bucket.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/UpdateBucketRequest.java