public StartChatContactRequest addSegmentAttributesEntry(String key, SegmentAttributeValue value) {
        if (null == this.segmentAttributes) {
            this.segmentAttributes = new java.util.HashMap<String, SegmentAttributeValue>();
        }
        if (this.segmentAttributes.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.segmentAttributes.put(key, value);
        return this;
    }
Add a single SegmentAttributes entry

@see StartChatContactRequest#withSegmentAttributes
@returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/StartChatContactRequest.java