@Experimental @Generated @ThreadSafe @Immutable public class Organization extends Object implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
Organization.Builder
Builder class used to create Organization instances.
|
Modifier and Type | Method and Description |
---|---|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getName()
The full name of the organization.
|
String |
getUrl()
The URL to the organization's home page.
|
static Organization.Builder |
newBuilder()
Creates a new
Organization builder instance. |
static Organization.Builder |
newBuilder(boolean withDefaults)
Creates a new
Organization builder instance using default values or not. |
static Organization.Builder |
newBuilder(Organization from)
Creates a new
Organization builder instance using the specified object as a basis. |
static Organization.Builder |
newBuilder(Organization from,
boolean forceCopy)
Creates a new
Organization builder instance using the specified object as a basis. |
static Organization |
newInstance()
Creates a new
Organization instance. |
static Organization |
newInstance(boolean withDefaults)
Creates a new
Organization instance using default values or not. |
Organization.Builder |
with()
Creates a new builder with this object as the basis.
|
Organization |
withName(String name)
Creates a new
Organization instance using the specified name. |
Organization |
withUrl(String url)
Creates a new
Organization instance using the specified url. |
public String getName()
String
public String getUrl()
String
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public Organization.Builder with()
Builder
@Nonnull public Organization withName(String name)
Organization
instance using the specified name.name
- the new String
to useOrganization
with the specified name@Nonnull public Organization withUrl(String url)
Organization
instance using the specified url.url
- the new String
to useOrganization
with the specified url@Nonnull public static Organization newInstance()
Organization
instance.
Equivalent to newInstance( true )
.Organization
newInstance(boolean)
@Nonnull public static Organization newInstance(boolean withDefaults)
Organization
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedOrganization
@Nonnull public static Organization.Builder newBuilder()
Organization
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Organization.Builder newBuilder(boolean withDefaults)
Organization
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Organization.Builder newBuilder(Organization from)
Organization
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Organization
instance to use as a basisBuilder
@Nonnull public static Organization.Builder newBuilder(Organization from, boolean forceCopy)
Organization
builder instance using the specified object as a basis.from
- the Organization
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.