Class ImmutableRawCloudServiceKey.Builder

  • Enclosing class:
    ImmutableRawCloudServiceKey

    public static final class ImmutableRawCloudServiceKey.Builder
    extends Object
    Builds instances of type ImmutableRawCloudServiceKey. 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 ImmutableRawCloudServiceKey.Builder from​(RawCloudServiceKey instance)
        Fill a builder with attribute values from the provided RawCloudServiceKey instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • serviceBindingResource

        public final ImmutableRawCloudServiceKey.Builder serviceBindingResource​(org.cloudfoundry.client.v3.servicebindings.ServiceBindingResource serviceBindingResource)
        Initializes the value for the serviceBindingResource attribute.
        Parameters:
        serviceBindingResource - The value for serviceBindingResource
        Returns:
        this builder for use in a chained invocation
      • putCredential

        public final ImmutableRawCloudServiceKey.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 ImmutableRawCloudServiceKey.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 ImmutableRawCloudServiceKey.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