Class ImmutableCloudRoute

  • All Implemented Interfaces:
    Derivable<CloudRoute>

    @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableCloudRoute
    extends CloudRoute
    Immutable implementation of CloudRoute.

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

    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in class CloudEntity
        Returns:
        The value of the name attribute
      • getV3Metadata

        public org.cloudfoundry.client.v3.Metadata getV3Metadata()
        Specified by:
        getV3Metadata in class CloudEntity
        Returns:
        The value of the v3Metadata attribute
      • getAppsUsingRoute

        public int getAppsUsingRoute()
        Overrides:
        getAppsUsingRoute in class CloudRoute
        Returns:
        The value of the appsUsingRoute attribute
      • getHost

        public String getHost()
        Specified by:
        getHost in class CloudRoute
        Returns:
        The value of the host attribute
      • getPath

        public String getPath()
        Specified by:
        getPath in class CloudRoute
        Returns:
        The value of the path attribute
      • getPort

        public Integer getPort()
        Specified by:
        getPort in class CloudRoute
        Returns:
        The value of the port attribute
      • getUrl

        public String getUrl()
        Specified by:
        getUrl in class CloudRoute
        Returns:
        The value of the url attribute
      • withName

        public final ImmutableCloudRoute 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
      • withMetadata

        public final ImmutableCloudRoute withMetadata​(CloudMetadata value)
        Copy the current immutable object by setting a value for the metadata attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for metadata (can be null)
        Returns:
        A modified copy of the this object
      • withV3Metadata

        public final ImmutableCloudRoute withV3Metadata​(org.cloudfoundry.client.v3.Metadata value)
        Copy the current immutable object by setting a value for the v3Metadata attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for v3Metadata (can be null)
        Returns:
        A modified copy of the this object
      • withAppsUsingRoute

        public final ImmutableCloudRoute withAppsUsingRoute​(int value)
        Copy the current immutable object by setting a value for the appsUsingRoute attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for appsUsingRoute
        Returns:
        A modified copy of the this object
      • withDomain

        public final ImmutableCloudRoute withDomain​(CloudDomain value)
        Copy the current immutable object by setting a value for the domain attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for domain
        Returns:
        A modified copy of the this object
      • withHost

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

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

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

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

        public static ImmutableCloudRoute copyOf​(CloudRoute instance)
        Creates an immutable copy of a CloudRoute 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 CloudRoute instance
      • builder

        public static ImmutableCloudRoute.Builder builder()
        Creates a builder for ImmutableCloudRoute.
         ImmutableCloudRoute.builder()
            .name(String | null) // nullable name
            .metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullable metadata
            .v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable v3Metadata
            .appsUsingRoute(int) // optional appsUsingRoute
            .domain(com.sap.cloudfoundry.client.facade.domain.CloudDomain) // required domain
            .host(String | null) // nullable host
            .path(String | null) // nullable path
            .port(Integer | null) // nullable port
            .url(String) // required url
            .build();
         
        Returns:
        A new ImmutableCloudRoute builder