Class ImmutableLinkData

    • Method Detail

      • withId

        public final ImmutableLinkData withId​(String value)
        Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for id
        Returns:
        A modified copy of the this object
      • withPath

        public final ImmutableLinkData withPath​(String value)
        Copy the current immutable object by setting a value for the path attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for path
        Returns:
        A modified copy of the this object
      • withName

        public final ImmutableLinkData withName​(String value)
        Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for name
        Returns:
        A modified copy of the this object
      • withType

        public final ImmutableLinkData withType​(String value)
        Copy the current immutable object by setting a value for the type attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for type
        Returns:
        A modified copy of the this object
      • withValue

        public final ImmutableLinkData withValue​(String value)
        Copy the current immutable object by setting a value for the value attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for value
        Returns:
        A modified copy of the this object
      • withLocale

        public final ImmutableLinkData withLocale​(String value)
        Copy the current immutable object by setting a value for the locale attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for locale
        Returns:
        A modified copy of the this object
      • withWorkflow

        public final ImmutableLinkData withWorkflow​(Boolean value)
        Copy the current immutable object by setting a value for the workflow attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for workflow
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableLinkData that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: id, path, name, type, value, locale, workflow.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value LinkData with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableLinkData copyOf​(StaticContentClient.LinkData instance)
        Creates an immutable copy of a StaticContentClient.LinkData value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable LinkData instance
      • builder

        public static ImmutableLinkData.Builder builder()
        Creates a builder for ImmutableLinkData.
         ImmutableLinkData.builder()
            .id(String) // required id
            .path(String) // required path
            .name(String) // required name
            .type(String) // required type
            .value(String) // required value
            .locale(String) // required locale
            .workflow(Boolean) // required workflow
            .build();
         
        Returns:
        A new ImmutableLinkData builder