public static final class UserEntity.Builder extends Object
UserEntity.
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 |
|---|---|
UserEntity.Builder |
active(Boolean active)
Initializes the value for the
active attribute. |
UserEntity.Builder |
admin(Boolean admin)
Initializes the value for the
admin attribute. |
UserEntity.Builder |
auditedOrganizationsUrl(String auditedOrganizationsUrl)
Initializes the value for the
auditedOrganizationsUrl attribute. |
UserEntity.Builder |
auditedSpacesUrl(String auditedSpacesUrl)
Initializes the value for the
auditedSpacesUrl attribute. |
UserEntity.Builder |
billingManagedOrganizationsUrl(String billingManagedOrganizationsUrl)
Initializes the value for the
billingManagedOrganizationsUrl attribute. |
UserEntity |
build()
Builds a new
UserEntity. |
UserEntity.Builder |
defaultSpaceId(String defaultSpaceId)
Initializes the value for the
defaultSpaceId attribute. |
UserEntity.Builder |
defaultSpaceUrl(String defaultSpaceUrl)
Initializes the value for the
defaultSpaceUrl attribute. |
UserEntity.Builder |
from(org.cloudfoundry.client.v2.users._UserEntity instance)
Copy abstract value type
_UserEntity instance into builder. |
UserEntity.Builder |
from(AbstractUserEntity instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.client.v2.users.AbstractUserEntity instance. |
UserEntity.Builder |
from(UserEntity instance)
Fill a builder with attribute values from the provided
UserEntity instance. |
UserEntity.Builder |
managedOrganizationsUrl(String managedOrganizationsUrl)
Initializes the value for the
managedOrganizationsUrl attribute. |
UserEntity.Builder |
managedSpacesUrl(String managedSpacesUrl)
Initializes the value for the
managedSpacesUrl attribute. |
UserEntity.Builder |
organizationsUrl(String organizationsUrl)
Initializes the value for the
organizationsUrl attribute. |
UserEntity.Builder |
spacesUrl(String spacesUrl)
Initializes the value for the
spacesUrl attribute. |
UserEntity.Builder |
username(String username)
Initializes the value for the
username attribute. |
public final UserEntity.Builder from(AbstractUserEntity instance)
org.cloudfoundry.client.v2.users.AbstractUserEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UserEntity.Builder from(UserEntity instance)
UserEntity instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UserEntity.Builder from(org.cloudfoundry.client.v2.users._UserEntity instance)
_UserEntity instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final UserEntity.Builder active(Boolean active)
active attribute.active - The value for active (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder admin(Boolean admin)
admin attribute.admin - The value for admin (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder auditedOrganizationsUrl(String auditedOrganizationsUrl)
auditedOrganizationsUrl attribute.auditedOrganizationsUrl - The value for auditedOrganizationsUrl (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder auditedSpacesUrl(String auditedSpacesUrl)
auditedSpacesUrl attribute.auditedSpacesUrl - The value for auditedSpacesUrl (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder billingManagedOrganizationsUrl(String billingManagedOrganizationsUrl)
billingManagedOrganizationsUrl attribute.billingManagedOrganizationsUrl - The value for billingManagedOrganizationsUrl (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder defaultSpaceId(String defaultSpaceId)
defaultSpaceId attribute.defaultSpaceId - The value for defaultSpaceId (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder defaultSpaceUrl(String defaultSpaceUrl)
defaultSpaceUrl attribute.defaultSpaceUrl - The value for defaultSpaceUrl (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder managedOrganizationsUrl(String managedOrganizationsUrl)
managedOrganizationsUrl attribute.managedOrganizationsUrl - The value for managedOrganizationsUrl (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder managedSpacesUrl(String managedSpacesUrl)
managedSpacesUrl attribute.managedSpacesUrl - The value for managedSpacesUrl (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder organizationsUrl(String organizationsUrl)
organizationsUrl attribute.organizationsUrl - The value for organizationsUrl (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder spacesUrl(String spacesUrl)
spacesUrl attribute.spacesUrl - The value for spacesUrl (can be null)this builder for use in a chained invocationpublic final UserEntity.Builder username(String username)
username attribute.username - The value for username (can be null)this builder for use in a chained invocationpublic UserEntity build()
UserEntity.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.