Class PropertyGroupUpdate


  • public class PropertyGroupUpdate
    extends java.lang.Object
    • Field Detail

      • templateId

        @Nonnull
        protected final java.lang.String templateId
      • addOrUpdateFields

        @Nullable
        protected final java.util.List<PropertyField> addOrUpdateFields
      • removeFields

        @Nullable
        protected final java.util.List<java.lang.String> removeFields
    • Constructor Detail

      • PropertyGroupUpdate

        public PropertyGroupUpdate​(@Nonnull
                                   java.lang.String templateId,
                                   @Nullable
                                   java.util.List<PropertyField> addOrUpdateFields,
                                   @Nullable
                                   java.util.List<java.lang.String> removeFields)
        Use newBuilder(java.lang.String) to create instances of this class without specifying values for all optional fields.
        Parameters:
        templateId - A unique identifier for a property template. Must have length of at least 1, match pattern "(/|ptid:).*", and not be null.
        addOrUpdateFields - Property fields to update. If the property field already exists, it is updated. If the property field doesn't exist, the property group is added. Must not contain a null item.
        removeFields - Property fields to remove (by name), provided they exist. Must not contain a null item.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • PropertyGroupUpdate

        public PropertyGroupUpdate​(@Nonnull
                                   java.lang.String templateId)
        None

        The default values for unset fields will be used.

        Parameters:
        templateId - A unique identifier for a property template. Must have length of at least 1, match pattern "(/|ptid:).*", and not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getTemplateId

        @Nonnull
        public java.lang.String getTemplateId()
        A unique identifier for a property template.
        Returns:
        value for this field, never null.
      • getAddOrUpdateFields

        @Nullable
        public java.util.List<PropertyField> getAddOrUpdateFields()
        Property fields to update. If the property field already exists, it is updated. If the property field doesn't exist, the property group is added.
        Returns:
        value for this field, or null if not present.
      • getRemoveFields

        @Nullable
        public java.util.List<java.lang.String> getRemoveFields()
        Property fields to remove (by name), provided they exist.
        Returns:
        value for this field, or null if not present.
      • newBuilder

        public static PropertyGroupUpdate.Builder newBuilder​(java.lang.String templateId)
        Returns a new builder for creating an instance of this class.
        Parameters:
        templateId - A unique identifier for a property template. Must have length of at least 1, match pattern "(/|ptid:).*", and not be null.
        Returns:
        builder for this class.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringMultiline

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Returns:
        Formatted, multiline String representation of this object