Class ImmutableApplicationToCreateDto
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.dto.ImmutableApplicationToCreateDto
-
- All Implemented Interfaces:
ApplicationToCreateDto
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableApplicationToCreateDto extends Object implements ApplicationToCreateDto
Immutable implementation ofApplicationToCreateDto.Use the builder to create immutable instances:
ImmutableApplicationToCreateDto.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableApplicationToCreateDto.BuilderBuilds instances of typeImmutableApplicationToCreateDto.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableApplicationToCreateDto.Builderbuilder()Creates a builder forImmutableApplicationToCreateDto.static ImmutableApplicationToCreateDtocopyOf(ApplicationToCreateDto instance)Creates an immutable copy of aApplicationToCreateDtovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableApplicationToCreateDtothat have equal attribute values.IntegergetDiskQuotaInMb()Map<String,String>getEnv()IntegergetMemoryInMb()org.cloudfoundry.client.v3.MetadatagetMetadata()StringgetName()Set<CloudRoute>getRoutes()StaginggetStaging()inthashCode()Computes a hash code from attributes:name,staging,diskQuotaInMb,memoryInMb,metadata,routes,env.StringtoString()Prints the immutable valueApplicationToCreateDtowith attribute values.ImmutableApplicationToCreateDtowithDiskQuotaInMb(Integer value)Copy the current immutable object by setting a value for thediskQuotaInMbattribute.ImmutableApplicationToCreateDtowithEnv(Map<String,? extends String> entries)Copy the current immutable object by replacing theenvmap with the specified map.ImmutableApplicationToCreateDtowithMemoryInMb(Integer value)Copy the current immutable object by setting a value for thememoryInMbattribute.ImmutableApplicationToCreateDtowithMetadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableApplicationToCreateDtowithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableApplicationToCreateDtowithRoutes(CloudRoute... elements)Copy the current immutable object with elements that replace the content ofroutes.ImmutableApplicationToCreateDtowithRoutes(Iterable<? extends CloudRoute> elements)Copy the current immutable object with elements that replace the content ofroutes.ImmutableApplicationToCreateDtowithStaging(Staging value)Copy the current immutable object by setting a value for thestagingattribute.
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceApplicationToCreateDto- Returns:
- The value of the
nameattribute
-
getStaging
public Staging getStaging()
- Specified by:
getStagingin interfaceApplicationToCreateDto- Returns:
- The value of the
stagingattribute
-
getDiskQuotaInMb
public Integer getDiskQuotaInMb()
- Specified by:
getDiskQuotaInMbin interfaceApplicationToCreateDto- Returns:
- The value of the
diskQuotaInMbattribute
-
getMemoryInMb
public Integer getMemoryInMb()
- Specified by:
getMemoryInMbin interfaceApplicationToCreateDto- Returns:
- The value of the
memoryInMbattribute
-
getMetadata
public org.cloudfoundry.client.v3.Metadata getMetadata()
- Specified by:
getMetadatain interfaceApplicationToCreateDto- Returns:
- The value of the
metadataattribute
-
getRoutes
public Set<CloudRoute> getRoutes()
- Specified by:
getRoutesin interfaceApplicationToCreateDto- Returns:
- The value of the
routesattribute
-
getEnv
public Map<String,String> getEnv()
- Specified by:
getEnvin interfaceApplicationToCreateDto- Returns:
- The value of the
envattribute
-
withName
public final ImmutableApplicationToCreateDto withName(String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withStaging
public final ImmutableApplicationToCreateDto withStaging(Staging value)
Copy the current immutable object by setting a value for thestagingattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for staging (can benull)- Returns:
- A modified copy of the
thisobject
-
withDiskQuotaInMb
public final ImmutableApplicationToCreateDto withDiskQuotaInMb(Integer value)
Copy the current immutable object by setting a value for thediskQuotaInMbattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for diskQuotaInMb (can benull)- Returns:
- A modified copy of the
thisobject
-
withMemoryInMb
public final ImmutableApplicationToCreateDto withMemoryInMb(Integer value)
Copy the current immutable object by setting a value for thememoryInMbattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for memoryInMb (can benull)- Returns:
- A modified copy of the
thisobject
-
withMetadata
public final ImmutableApplicationToCreateDto withMetadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for themetadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withRoutes
public final ImmutableApplicationToCreateDto withRoutes(CloudRoute... elements)
Copy the current immutable object with elements that replace the content ofroutes.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRoutes
public final ImmutableApplicationToCreateDto withRoutes(Iterable<? extends CloudRoute> elements)
Copy the current immutable object with elements that replace the content ofroutes. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of routes elements to set- Returns:
- A modified copy of
thisobject
-
withEnv
public final ImmutableApplicationToCreateDto withEnv(Map<String,? extends String> entries)
Copy the current immutable object by replacing theenvmap 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 returningthis.- Parameters:
entries- The entries to be added to the env map- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableApplicationToCreateDtothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,staging,diskQuotaInMb,memoryInMb,metadata,routes,env.
-
toString
public String toString()
Prints the immutable valueApplicationToCreateDtowith attribute values.
-
copyOf
public static ImmutableApplicationToCreateDto copyOf(ApplicationToCreateDto instance)
Creates an immutable copy of aApplicationToCreateDtovalue. 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 forImmutableApplicationToCreateDto.ImmutableApplicationToCreateDto.builder() .name(String) // requiredname.staging(com.sap.cloudfoundry.client.facade.domain.Staging | null) // nullablestaging.diskQuotaInMb(Integer | null) // nullablediskQuotaInMb.memoryInMb(Integer | null) // nullablememoryInMb.metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablemetadata.routes(Set<com.sap.cloudfoundry.client.facade.domain.CloudRoute> | null) // nullableroutes.env(Map<String, String> | null) // nullableenv.build();- Returns:
- A new ImmutableApplicationToCreateDto builder
-
-