Class ImmutableCloudInfo

  • All Implemented Interfaces:
    CloudInfo

    @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableCloudInfo
    extends Object
    implements CloudInfo
    Immutable implementation of CloudInfo.

    Use the builder to create immutable instances: ImmutableCloudInfo.builder().

    • Method Detail

      • getLoggingEndpoint

        public String getLoggingEndpoint()
        Specified by:
        getLoggingEndpoint in interface CloudInfo
        Returns:
        The value of the loggingEndpoint attribute
      • getBuild

        public String getBuild()
        Specified by:
        getBuild in interface CloudInfo
        Returns:
        The value of the build attribute
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface CloudInfo
        Returns:
        The value of the description attribute
      • getName

        public String getName()
        Specified by:
        getName in interface CloudInfo
        Returns:
        The value of the name attribute
      • getUser

        public String getUser()
        Specified by:
        getUser in interface CloudInfo
        Returns:
        The value of the user attribute
      • getSupport

        public String getSupport()
        Specified by:
        getSupport in interface CloudInfo
        Returns:
        The value of the support attribute
      • getVersion

        public String getVersion()
        Specified by:
        getVersion in interface CloudInfo
        Returns:
        The value of the version attribute
      • withAuthorizationEndpoint

        public final ImmutableCloudInfo withAuthorizationEndpoint​(String value)
        Copy the current immutable object by setting a value for the authorizationEndpoint attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for authorizationEndpoint (can be null)
        Returns:
        A modified copy of the this object
      • withLoggingEndpoint

        public final ImmutableCloudInfo withLoggingEndpoint​(String value)
        Copy the current immutable object by setting a value for the loggingEndpoint attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for loggingEndpoint (can be null)
        Returns:
        A modified copy of the this object
      • withBuild

        public final ImmutableCloudInfo withBuild​(String value)
        Copy the current immutable object by setting a value for the build attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for build (can be null)
        Returns:
        A modified copy of the this object
      • withDescription

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

        public final ImmutableCloudInfo 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 (can be null)
        Returns:
        A modified copy of the this object
      • withUser

        public final ImmutableCloudInfo withUser​(String value)
        Copy the current immutable object by setting a value for the user attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for user (can be null)
        Returns:
        A modified copy of the this object
      • withSupport

        public final ImmutableCloudInfo withSupport​(String value)
        Copy the current immutable object by setting a value for the support attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for support (can be null)
        Returns:
        A modified copy of the this object
      • withVersion

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

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableCloudInfo 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: authorizationEndpoint, loggingEndpoint, build, description, name, user, support, version.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableCloudInfo copyOf​(CloudInfo instance)
        Creates an immutable copy of a CloudInfo 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 CloudInfo instance