Class ImmutableCloudServiceKey.Builder

  • Enclosing class:
    ImmutableCloudServiceKey

    public static final class ImmutableCloudServiceKey.Builder
    extends Object
    Builds instances of type ImmutableCloudServiceKey. 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 ImmutableCloudServiceKey.Builder from​(CloudServiceKey instance)
        Fill a builder with attribute values from the provided com.sap.cloudfoundry.client.facade.domain.CloudServiceKey instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        public final ImmutableCloudServiceKey.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 ImmutableCloudServiceKey.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 ImmutableCloudServiceKey.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
      • putCredential

        public final ImmutableCloudServiceKey.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 ImmutableCloudServiceKey.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
        Parameters:
        entries - The entries that will be added to the credentials map
        Returns:
        this builder for use in a chained invocation
      • putAllCredentials

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