Class ImmutableCloudServiceBroker
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.domain.CloudEntity
-
- com.sap.cloudfoundry.client.facade.domain.CloudServiceBroker
-
- com.sap.cloudfoundry.client.facade.domain.ImmutableCloudServiceBroker
-
- All Implemented Interfaces:
Derivable<CloudServiceBroker>
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudServiceBroker extends CloudServiceBroker
Immutable implementation ofCloudServiceBroker.Use the builder to create immutable instances:
ImmutableCloudServiceBroker.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudServiceBroker.BuilderBuilds instances of typeImmutableCloudServiceBroker.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudServiceBroker.Builderbuilder()Creates a builder forImmutableCloudServiceBroker.static ImmutableCloudServiceBrokercopyOf(CloudServiceBroker instance)Creates an immutable copy of aCloudServiceBrokervalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudServiceBrokerthat have equal attribute values.CloudMetadatagetMetadata()StringgetName()StringgetPassword()StringgetSpaceGuid()StringgetUrl()StringgetUsername()org.cloudfoundry.client.v3.MetadatagetV3Metadata()inthashCode()Computes a hash code from attributes:name,metadata,v3Metadata,username,password,url,spaceGuid.StringtoString()Prints the immutable valueCloudServiceBrokerwith attribute values.ImmutableCloudServiceBrokerwithMetadata(CloudMetadata value)Copy the current immutable object by setting a value for themetadataattribute.ImmutableCloudServiceBrokerwithName(String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableCloudServiceBrokerwithPassword(String value)Copy the current immutable object by setting a value for thepasswordattribute.ImmutableCloudServiceBrokerwithSpaceGuid(String value)Copy the current immutable object by setting a value for thespaceGuidattribute.ImmutableCloudServiceBrokerwithUrl(String value)Copy the current immutable object by setting a value for theurlattribute.ImmutableCloudServiceBrokerwithUsername(String value)Copy the current immutable object by setting a value for theusernameattribute.ImmutableCloudServiceBrokerwithV3Metadata(org.cloudfoundry.client.v3.Metadata value)Copy the current immutable object by setting a value for thev3Metadataattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudServiceBroker
derive
-
Methods inherited from class com.sap.cloudfoundry.client.facade.domain.CloudEntity
getGuid
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classCloudEntity- Returns:
- The value of the
nameattribute
-
getMetadata
public CloudMetadata getMetadata()
- Specified by:
getMetadatain classCloudEntity- Returns:
- The value of the
metadataattribute
-
getV3Metadata
public org.cloudfoundry.client.v3.Metadata getV3Metadata()
- Specified by:
getV3Metadatain classCloudEntity- Returns:
- The value of the
v3Metadataattribute
-
getUsername
public String getUsername()
- Specified by:
getUsernamein classCloudServiceBroker- Returns:
- The value of the
usernameattribute
-
getPassword
public String getPassword()
- Specified by:
getPasswordin classCloudServiceBroker- Returns:
- The value of the
passwordattribute
-
getUrl
public String getUrl()
- Specified by:
getUrlin classCloudServiceBroker- Returns:
- The value of the
urlattribute
-
getSpaceGuid
public String getSpaceGuid()
- Specified by:
getSpaceGuidin classCloudServiceBroker- Returns:
- The value of the
spaceGuidattribute
-
withName
public final ImmutableCloudServiceBroker 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
-
withMetadata
public final ImmutableCloudServiceBroker withMetadata(CloudMetadata 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
-
withV3Metadata
public final ImmutableCloudServiceBroker withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for thev3Metadataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for v3Metadata (can benull)- Returns:
- A modified copy of the
thisobject
-
withUsername
public final ImmutableCloudServiceBroker withUsername(String value)
Copy the current immutable object by setting a value for theusernameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for username (can benull)- Returns:
- A modified copy of the
thisobject
-
withPassword
public final ImmutableCloudServiceBroker withPassword(String value)
Copy the current immutable object by setting a value for thepasswordattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for password (can benull)- Returns:
- A modified copy of the
thisobject
-
withUrl
public final ImmutableCloudServiceBroker withUrl(String value)
Copy the current immutable object by setting a value for theurlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url (can benull)- Returns:
- A modified copy of the
thisobject
-
withSpaceGuid
public final ImmutableCloudServiceBroker withSpaceGuid(String value)
Copy the current immutable object by setting a value for thespaceGuidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for spaceGuid (can benull)- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudServiceBrokerthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,metadata,v3Metadata,username,password,url,spaceGuid.
-
toString
public String toString()
Prints the immutable valueCloudServiceBrokerwith attribute values.
-
copyOf
public static ImmutableCloudServiceBroker copyOf(CloudServiceBroker instance)
Creates an immutable copy of aCloudServiceBrokervalue. 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 CloudServiceBroker instance
-
builder
public static ImmutableCloudServiceBroker.Builder builder()
Creates a builder forImmutableCloudServiceBroker.ImmutableCloudServiceBroker.builder() .name(String | null) // nullablename.metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullablemetadata.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullablev3Metadata.username(String | null) // nullableusername.password(String | null) // nullablepassword.url(String | null) // nullableurl.spaceGuid(String | null) // nullablespaceGuid.build();- Returns:
- A new ImmutableCloudServiceBroker builder
-
-