public CreateComponentTypeRequest addPropertyGroupsEntry(String key, PropertyGroupRequest value) {
        if (null == this.propertyGroups) {
            this.propertyGroups = new java.util.HashMap<String, PropertyGroupRequest>();
        }
        if (this.propertyGroups.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.propertyGroups.put(key, value);
        return this;
    }
Add a single PropertyGroups entry

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