Class ImmutableCloudServiceBinding.Builder

  • Enclosing class:
    ImmutableCloudServiceBinding

    public static final class ImmutableCloudServiceBinding.Builder
    extends Object
    Builds instances of type ImmutableCloudServiceBinding. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final ImmutableCloudServiceBinding.Builder from​(CloudServiceBinding instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudServiceBinding instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableCloudServiceBinding.Builder from​(CloudEntity instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudEntity instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • name

        public final ImmutableCloudServiceBinding.Builder name​(String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name (can be null)
        Returns:
        this builder for use in a chained invocation
      • v3Metadata

        public final ImmutableCloudServiceBinding.Builder v3Metadata​(org.cloudfoundry.client.v3.Metadata v3Metadata)
        Initializes the value for the v3Metadata attribute.
        Parameters:
        v3Metadata - The value for v3Metadata (can be null)
        Returns:
        this builder for use in a chained invocation
      • applicationGuid

        public final ImmutableCloudServiceBinding.Builder applicationGuid​(UUID applicationGuid)
        Initializes the value for the applicationGuid attribute.
        Parameters:
        applicationGuid - The value for applicationGuid
        Returns:
        this builder for use in a chained invocation
      • putBindingOption

        public final ImmutableCloudServiceBinding.Builder putBindingOption​(String key,
                                                                           Object value)
        Put one entry to the bindingOptions map.
        Parameters:
        key - The key in the bindingOptions map
        value - The associated value in the bindingOptions map
        Returns:
        this builder for use in a chained invocation
      • bindingOptions

        public final ImmutableCloudServiceBinding.Builder bindingOptions​(Map<String,​? extends Object> entries)
        Sets or replaces all mappings from the specified map as entries for the bindingOptions map. Nulls are not permitted as keys or values, but parameter itself can be null
        Parameters:
        entries - The entries that will be added to the bindingOptions map
        Returns:
        this builder for use in a chained invocation
      • putAllBindingOptions

        public final ImmutableCloudServiceBinding.Builder putAllBindingOptions​(Map<String,​? extends Object> entries)
        Put all mappings from the specified map as entries to bindingOptions map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the bindingOptions map
        Returns:
        this builder for use in a chained invocation
      • putCredential

        public final ImmutableCloudServiceBinding.Builder putCredential​(String key,
                                                                        Object value)
        Put one entry to the credentials map.
        Parameters:
        key - The key in the credentials map
        value - The associated value in the credentials map
        Returns:
        this builder for use in a chained invocation
      • credentials

        public final ImmutableCloudServiceBinding.Builder credentials​(Map<String,​? extends Object> entries)
        Sets or replaces all mappings from the specified map as entries for the credentials map. Nulls are not permitted as keys or values, but parameter itself can be null
        Parameters:
        entries - The entries that will be added to the credentials map
        Returns:
        this builder for use in a chained invocation
      • putAllCredentials

        public final ImmutableCloudServiceBinding.Builder putAllCredentials​(Map<String,​? extends Object> entries)
        Put all mappings from the specified map as entries to credentials map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the credentials map
        Returns:
        this builder for use in a chained invocation
      • syslogDrainUrl

        public final ImmutableCloudServiceBinding.Builder syslogDrainUrl​(String syslogDrainUrl)
        Initializes the value for the syslogDrainUrl attribute.
        Parameters:
        syslogDrainUrl - The value for syslogDrainUrl (can be null)
        Returns:
        this builder for use in a chained invocation