Class ImmutableCloudServiceBroker

    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in class CloudEntity
        Returns:
        The value of the name attribute
      • getV3Metadata

        public org.cloudfoundry.client.v3.Metadata getV3Metadata()
        Specified by:
        getV3Metadata in class CloudEntity
        Returns:
        The value of the v3Metadata attribute
      • withName

        public final ImmutableCloudServiceBroker 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 (can be null)
        Returns:
        A modified copy of the this object
      • withMetadata

        public final ImmutableCloudServiceBroker withMetadata​(CloudMetadata 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
      • withV3Metadata

        public final ImmutableCloudServiceBroker withV3Metadata​(org.cloudfoundry.client.v3.Metadata value)
        Copy the current immutable object by setting a value for the v3Metadata attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for v3Metadata (can be null)
        Returns:
        A modified copy of the this object
      • withUsername

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

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

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

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

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableCloudServiceBroker 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, metadata, v3Metadata, username, password, url, spaceGuid.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableCloudServiceBroker.Builder builder()
        Creates a builder for ImmutableCloudServiceBroker.
         ImmutableCloudServiceBroker.builder()
            .name(String | null) // nullable name
            .metadata(com.sap.cloudfoundry.client.facade.domain.CloudMetadata | null) // nullable metadata
            .v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable v3Metadata
            .username(String | null) // nullable username
            .password(String | null) // nullable password
            .url(String | null) // nullable url
            .spaceGuid(String | null) // nullable spaceGuid
            .build();
         
        Returns:
        A new ImmutableCloudServiceBroker builder