public UpdateConfiguredAudienceModelRequest withSharedAudienceMetrics(String... sharedAudienceMetrics) {
        if (this.sharedAudienceMetrics == null) {
            setSharedAudienceMetrics(new java.util.ArrayList<String>(sharedAudienceMetrics.length));
        }
        for (String ele : sharedAudienceMetrics) {
            this.sharedAudienceMetrics.add(ele);
        }
        return this;
    }
<p>
The new value for whether to share audience metrics.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSharedAudienceMetrics(java.util.Collection)} or
{@link #withSharedAudienceMetrics(java.util.Collection)} if you want to override the existing values.
</p>

@param sharedAudienceMetrics
       The new value for whether to share audience metrics.
@return Returns a reference to this object so that method calls can be chained together.
@see SharedAudienceMetrics
aws-java-sdk-cleanroomsml/src/main/java/com/amazonaws/services/cleanroomsml/model/UpdateConfiguredAudienceModelRequest.java