Class UpdateTemplateArg.Builder

    • Field Detail

      • templateId

        protected final java.lang.String templateId
      • name

        protected java.lang.String name
      • description

        protected java.lang.String description
    • Constructor Detail

      • Builder

        protected Builder​(java.lang.String templateId)
    • Method Detail

      • withName

        public UpdateTemplateArg.Builder withName​(java.lang.String name)
        Set value for optional field.
        Parameters:
        name - A display name for the template. template names can be up to 256 bytes.
        Returns:
        this builder
      • withDescription

        public UpdateTemplateArg.Builder withDescription​(java.lang.String description)
        Set value for optional field.
        Parameters:
        description - Description for the new template. Template descriptions can be up to 1024 bytes.
        Returns:
        this builder
      • withAddFields

        public UpdateTemplateArg.Builder withAddFields​(java.util.List<PropertyFieldTemplate> addFields)
        Set value for optional field.
        Parameters:
        addFields - Property field templates to be added to the group template. There can be up to 32 properties in a single template. Must not contain a null item.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.