Class ImmutableCloudRoute.Builder

  • Enclosing class:
    ImmutableCloudRoute

    public static final class ImmutableCloudRoute.Builder
    extends Object
    Builds instances of type ImmutableCloudRoute. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final ImmutableCloudRoute.Builder from​(CloudRoute instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudRoute instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableCloudRoute.Builder from​(CloudEntity instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudEntity instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • metadata

        public final ImmutableCloudRoute.Builder metadata​(CloudMetadata metadata)
        Initializes the value for the metadata attribute.
        Parameters:
        metadata - The value for metadata (can be null)
        Returns:
        this builder for use in a chained invocation
      • v3Metadata

        public final ImmutableCloudRoute.Builder v3Metadata​(org.cloudfoundry.client.v3.Metadata v3Metadata)
        Initializes the value for the v3Metadata attribute.
        Parameters:
        v3Metadata - The value for v3Metadata (can be null)
        Returns:
        this builder for use in a chained invocation
      • appsUsingRoute

        public final ImmutableCloudRoute.Builder appsUsingRoute​(int appsUsingRoute)
        Initializes the value for the appsUsingRoute attribute.

        If not set, this attribute will have a default value as returned by the initializer of appsUsingRoute.

        Parameters:
        appsUsingRoute - The value for appsUsingRoute
        Returns:
        this builder for use in a chained invocation
      • hasServiceUsingRoute

        public final ImmutableCloudRoute.Builder hasServiceUsingRoute​(boolean hasServiceUsingRoute)
        Initializes the value for the hasServiceUsingRoute attribute.

        If not set, this attribute will have a default value as returned by the initializer of hasServiceUsingRoute.

        Parameters:
        hasServiceUsingRoute - The value for hasServiceUsingRoute
        Returns:
        this builder for use in a chained invocation
      • domain

        public final ImmutableCloudRoute.Builder domain​(CloudDomain domain)
        Initializes the value for the domain attribute.
        Parameters:
        domain - The value for domain (can be null)
        Returns:
        this builder for use in a chained invocation
      • host

        public final ImmutableCloudRoute.Builder host​(String host)
        Initializes the value for the host attribute.
        Parameters:
        host - The value for host (can be null)
        Returns:
        this builder for use in a chained invocation
      • path

        public final ImmutableCloudRoute.Builder path​(String path)
        Initializes the value for the path attribute.
        Parameters:
        path - The value for path (can be null)
        Returns:
        this builder for use in a chained invocation