Class ImmutableApplicationToCreateDto

    • Method Detail

      • getMetadata

        public org.cloudfoundry.client.v3.Metadata getMetadata()
        Specified by:
        getMetadata in interface ApplicationToCreateDto
        Returns:
        The value of the metadata attribute
      • withName

        public final ImmutableApplicationToCreateDto 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
      • withStaging

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

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

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

        public final ImmutableApplicationToCreateDto withMetadata​(org.cloudfoundry.client.v3.Metadata 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
      • withRoutes

        public final ImmutableApplicationToCreateDto withRoutes​(CloudRoute... elements)
        Copy the current immutable object with elements that replace the content of routes.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withRoutes

        public final ImmutableApplicationToCreateDto withRoutes​(Iterable<? extends CloudRoute> elements)
        Copy the current immutable object with elements that replace the content of routes. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of routes elements to set
        Returns:
        A modified copy of this object
      • withEnv

        public final ImmutableApplicationToCreateDto withEnv​(Map<String,​? extends String> entries)
        Copy the current immutable object by replacing the env map with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        entries - The entries to be added to the env map
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableApplicationToCreateDto 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: name, staging, diskQuotaInMb, memoryInMb, metadata, routes, env.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableApplicationToCreateDto.Builder builder()
        Creates a builder for ImmutableApplicationToCreateDto.
         ImmutableApplicationToCreateDto.builder()
            .name(String) // required name
            .staging(com.sap.cloudfoundry.client.facade.domain.Staging | null) // nullable staging
            .diskQuotaInMb(Integer | null) // nullable diskQuotaInMb
            .memoryInMb(Integer | null) // nullable memoryInMb
            .metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable metadata
            .routes(Set&lt;com.sap.cloudfoundry.client.facade.domain.CloudRoute&gt; | null) // nullable routes
            .env(Map&lt;String, String&gt; | null) // nullable env
            .build();
         
        Returns:
        A new ImmutableApplicationToCreateDto builder