public static final class InternalConfiguration.Builder extends Object
InternalConfiguration
.
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.
Modifier and Type | Method and Description |
---|---|
InternalConfiguration.Builder |
addAllEmailDomains(Iterable<String> elements)
Adds elements to
emailDomains list. |
InternalConfiguration |
build()
Builds a new
InternalConfiguration . |
InternalConfiguration.Builder |
disableInternalUserManagement(Boolean disableInternalUserManagement)
Initializes the value for the
disableInternalUserManagement attribute. |
InternalConfiguration.Builder |
emailDomain(String... elements)
Adds elements to
emailDomains list. |
InternalConfiguration.Builder |
emailDomain(String element)
Adds one element to
emailDomains list. |
InternalConfiguration.Builder |
emailDomains(Iterable<String> elements)
Sets or replaces all elements for
emailDomains list. |
InternalConfiguration.Builder |
from(org.cloudfoundry.uaa.identityproviders.AbstractIdentityProviderConfiguration instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.uaa.identityproviders.AbstractIdentityProviderConfiguration instance. |
InternalConfiguration.Builder |
from(InternalConfiguration instance)
Fill a builder with attribute values from the provided
InternalConfiguration instance. |
InternalConfiguration.Builder |
lockoutPolicy(LockoutPolicy lockoutPolicy)
Initializes the value for the
lockoutPolicy attribute. |
InternalConfiguration.Builder |
passwordPolicy(PasswordPolicy passwordPolicy)
Initializes the value for the
passwordPolicy attribute. |
InternalConfiguration.Builder |
providerDescription(String providerDescription)
Initializes the value for the
providerDescription attribute. |
public final InternalConfiguration.Builder from(org.cloudfoundry.uaa.identityproviders.AbstractIdentityProviderConfiguration instance)
org.cloudfoundry.uaa.identityproviders.AbstractIdentityProviderConfiguration
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final InternalConfiguration.Builder from(InternalConfiguration instance)
InternalConfiguration
instance.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final InternalConfiguration.Builder disableInternalUserManagement(Boolean disableInternalUserManagement)
disableInternalUserManagement
attribute.disableInternalUserManagement
- The value for disableInternalUserManagement (can be null
)this
builder for use in a chained invocationpublic final InternalConfiguration.Builder emailDomain(String element)
emailDomains
list.element
- A emailDomains elementthis
builder for use in a chained invocationpublic final InternalConfiguration.Builder emailDomain(String... elements)
emailDomains
list.elements
- An array of emailDomains elementsthis
builder for use in a chained invocationpublic final InternalConfiguration.Builder emailDomains(Iterable<String> elements)
emailDomains
list.elements
- An iterable of emailDomains elementsthis
builder for use in a chained invocationpublic final InternalConfiguration.Builder addAllEmailDomains(Iterable<String> elements)
emailDomains
list.elements
- An iterable of emailDomains elementsthis
builder for use in a chained invocationpublic final InternalConfiguration.Builder lockoutPolicy(LockoutPolicy lockoutPolicy)
lockoutPolicy
attribute.lockoutPolicy
- The value for lockoutPolicy (can be null
)this
builder for use in a chained invocationpublic final InternalConfiguration.Builder passwordPolicy(PasswordPolicy passwordPolicy)
passwordPolicy
attribute.passwordPolicy
- The value for passwordPolicy (can be null
)this
builder for use in a chained invocationpublic final InternalConfiguration.Builder providerDescription(String providerDescription)
providerDescription
attribute.providerDescription
- The value for providerDescription (can be null
)this
builder for use in a chained invocationpublic InternalConfiguration build()
InternalConfiguration
.IllegalStateException
- if any required attributes are missingCopyright © 2018 Pivotal Software, Inc.. All rights reserved.