@Experimental @Generated @ThreadSafe @Immutable public class ActivationOS extends Object implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
ActivationOS.Builder
Builder class used to create ActivationOS instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getArch()
The architecture of the operating system to be used to activate the
profile.
|
String |
getFamily()
The general family of the OS to be used to activate the profile, such as
windows or unix . |
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getName()
The name of the operating system to be used to activate the profile.
|
String |
getVersion()
The version of the operating system to be used to activate the
profile.
|
static ActivationOS.Builder |
newBuilder()
Creates a new
ActivationOS builder instance. |
static ActivationOS.Builder |
newBuilder(ActivationOS from)
Creates a new
ActivationOS builder instance using the specified object as a basis. |
static ActivationOS.Builder |
newBuilder(ActivationOS from,
boolean forceCopy)
Creates a new
ActivationOS builder instance using the specified object as a basis. |
static ActivationOS.Builder |
newBuilder(boolean withDefaults)
Creates a new
ActivationOS builder instance using default values or not. |
static ActivationOS |
newInstance()
Creates a new
ActivationOS instance. |
static ActivationOS |
newInstance(boolean withDefaults)
Creates a new
ActivationOS instance using default values or not. |
ActivationOS.Builder |
with()
Creates a new builder with this object as the basis.
|
ActivationOS |
withArch(String arch)
Creates a new
ActivationOS instance using the specified arch. |
ActivationOS |
withFamily(String family)
Creates a new
ActivationOS instance using the specified family. |
ActivationOS |
withName(String name)
Creates a new
ActivationOS instance using the specified name. |
ActivationOS |
withVersion(String version)
Creates a new
ActivationOS instance using the specified version. |
public String getName()
${os.name}
Java property, such as Windows XP
.String
public String getFamily()
windows
or unix
.String
public String getArch()
String
public String getVersion()
String
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public ActivationOS.Builder with()
Builder
@Nonnull public ActivationOS withName(String name)
ActivationOS
instance using the specified name.name
- the new String
to useActivationOS
with the specified name@Nonnull public ActivationOS withFamily(String family)
ActivationOS
instance using the specified family.family
- the new String
to useActivationOS
with the specified family@Nonnull public ActivationOS withArch(String arch)
ActivationOS
instance using the specified arch.arch
- the new String
to useActivationOS
with the specified arch@Nonnull public ActivationOS withVersion(String version)
ActivationOS
instance using the specified version.version
- the new String
to useActivationOS
with the specified version@Nonnull public static ActivationOS newInstance()
ActivationOS
instance.
Equivalent to newInstance( true )
.ActivationOS
newInstance(boolean)
@Nonnull public static ActivationOS newInstance(boolean withDefaults)
ActivationOS
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedActivationOS
@Nonnull public static ActivationOS.Builder newBuilder()
ActivationOS
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static ActivationOS.Builder newBuilder(boolean withDefaults)
ActivationOS
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static ActivationOS.Builder newBuilder(ActivationOS from)
ActivationOS
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the ActivationOS
instance to use as a basisBuilder
@Nonnull public static ActivationOS.Builder newBuilder(ActivationOS from, boolean forceCopy)
ActivationOS
builder instance using the specified object as a basis.from
- the ActivationOS
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.