Class ImmutableCloudInfo
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudInfo
-
- All Implemented Interfaces:
CloudInfo
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudInfo extends Object implements CloudInfo
Immutable implementation ofCloudInfo.Use the builder to create immutable instances:
ImmutableCloudInfo.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudInfo.BuilderBuilds instances of typeImmutableCloudInfo.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudInfo.Builderbuilder()Creates a builder forImmutableCloudInfo.static ImmutableCloudInfocopyOf(CloudInfo instance)Creates an immutable copy of aCloudInfovalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudInfothat have equal attribute values.StringgetAuthorizationEndpoint()StringgetBuild()StringgetDescription()StringgetLoggingEndpoint()StringgetName()StringgetSupport()StringgetUser()StringgetVersion()inthashCode()Computes a hash code from attributes:authorizationEndpoint,loggingEndpoint,build,description,name,user,support,version.StringtoString()Prints the immutable valueCloudInfowith attribute values.ImmutableCloudInfowithAuthorizationEndpoint(String value)Copy the current immutable object by setting a value for theauthorizationEndpointattribute.ImmutableCloudInfowithBuild(String value)Copy the current immutable object by setting a value for thebuildattribute.ImmutableCloudInfowithDescription(String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableCloudInfowithLoggingEndpoint(String value)Copy the current immutable object by setting a value for theloggingEndpointattribute.ImmutableCloudInfowithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudInfowithSupport(String value)Copy the current immutable object by setting a value for thesupportattribute.ImmutableCloudInfowithUser(String value)Copy the current immutable object by setting a value for theuserattribute.ImmutableCloudInfowithVersion(String value)Copy the current immutable object by setting a value for theversionattribute.
-
-
-
Method Detail
-
getAuthorizationEndpoint
public String getAuthorizationEndpoint()
- Specified by:
getAuthorizationEndpointin interfaceCloudInfo- Returns:
- The value of the
authorizationEndpointattribute
-
getLoggingEndpoint
public String getLoggingEndpoint()
- Specified by:
getLoggingEndpointin interfaceCloudInfo- Returns:
- The value of the
loggingEndpointattribute
-
getBuild
public String getBuild()
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceCloudInfo- Returns:
- The value of the
descriptionattribute
-
getName
public String getName()
-
getUser
public String getUser()
-
getSupport
public String getSupport()
- Specified by:
getSupportin interfaceCloudInfo- Returns:
- The value of the
supportattribute
-
getVersion
public String getVersion()
- Specified by:
getVersionin interfaceCloudInfo- Returns:
- The value of the
versionattribute
-
withAuthorizationEndpoint
public final ImmutableCloudInfo withAuthorizationEndpoint(String value)
Copy the current immutable object by setting a value for theauthorizationEndpointattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for authorizationEndpoint (can benull)- Returns:
- A modified copy of the
thisobject
-
withLoggingEndpoint
public final ImmutableCloudInfo withLoggingEndpoint(String value)
Copy the current immutable object by setting a value for theloggingEndpointattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for loggingEndpoint (can benull)- Returns:
- A modified copy of the
thisobject
-
withBuild
public final ImmutableCloudInfo withBuild(String value)
Copy the current immutable object by setting a value for thebuildattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for build (can benull)- Returns:
- A modified copy of the
thisobject
-
withDescription
public final ImmutableCloudInfo withDescription(String value)
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withName
public final ImmutableCloudInfo 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 (can benull)- Returns:
- A modified copy of the
thisobject
-
withUser
public final ImmutableCloudInfo withUser(String value)
Copy the current immutable object by setting a value for theuserattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for user (can benull)- Returns:
- A modified copy of the
thisobject
-
withSupport
public final ImmutableCloudInfo withSupport(String value)
Copy the current immutable object by setting a value for thesupportattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for support (can benull)- Returns:
- A modified copy of the
thisobject
-
withVersion
public final ImmutableCloudInfo withVersion(String value)
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudInfothat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:authorizationEndpoint,loggingEndpoint,build,description,name,user,support,version.
-
toString
public String toString()
Prints the immutable valueCloudInfowith attribute values.
-
copyOf
public static ImmutableCloudInfo copyOf(CloudInfo instance)
Creates an immutable copy of aCloudInfovalue. 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
-
builder
public static ImmutableCloudInfo.Builder builder()
Creates a builder forImmutableCloudInfo.ImmutableCloudInfo.builder() .authorizationEndpoint(String | null) // nullableauthorizationEndpoint.loggingEndpoint(String | null) // nullableloggingEndpoint.build(String | null) // nullablebuild.description(String | null) // nullabledescription.name(String | null) // nullablename.user(String | null) // nullableuser.support(String | null) // nullablesupport.version(String | null) // nullableversion.build();- Returns:
- A new ImmutableCloudInfo builder
-
-