@Experimental @Generated @ThreadSafe @Immutable public class Mirror extends IdentifiableBase implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Mirror.Builder
Builder class used to create Mirror instances.
|
GLOBAL_LEVEL, USER_LEVEL
Modifier and Type | Method and Description |
---|---|
String |
getLayout()
The layout of the mirror repository.
|
String |
getMirrorOf()
The server ID of the repository being mirrored, e.g.,
"central".
|
String |
getMirrorOfLayouts()
The layouts of repositories being mirrored.
|
String |
getName()
The optional name that describes the mirror.
|
String |
getUrl()
The URL of the mirror repository.
|
boolean |
isBlocked()
Whether this mirror should be blocked from any download request but fail the download process, explaining why.
|
static Mirror.Builder |
newBuilder()
Creates a new
Mirror builder instance. |
static Mirror.Builder |
newBuilder(boolean withDefaults)
Creates a new
Mirror builder instance using default values or not. |
static Mirror.Builder |
newBuilder(Mirror from)
Creates a new
Mirror builder instance using the specified object as a basis. |
static Mirror.Builder |
newBuilder(Mirror from,
boolean forceCopy)
Creates a new
Mirror builder instance using the specified object as a basis. |
static Mirror |
newInstance()
Creates a new
Mirror instance. |
static Mirror |
newInstance(boolean withDefaults)
Creates a new
Mirror instance using default values or not. |
String |
toString() |
Mirror.Builder |
with()
Creates a new builder with this object as the basis.
|
Mirror |
withBlocked(boolean blocked)
Creates a new
Mirror instance using the specified blocked. |
Mirror |
withId(String id)
Creates a new
Mirror instance using the specified id. |
Mirror |
withLayout(String layout)
Creates a new
Mirror instance using the specified layout. |
Mirror |
withMirrorOf(String mirrorOf)
Creates a new
Mirror instance using the specified mirrorOf. |
Mirror |
withMirrorOfLayouts(String mirrorOfLayouts)
Creates a new
Mirror instance using the specified mirrorOfLayouts. |
Mirror |
withName(String name)
Creates a new
Mirror instance using the specified name. |
Mirror |
withUrl(String url)
Creates a new
Mirror instance using the specified url. |
getId, newBuilder, newBuilder
getSourceLevel, newBuilder, newBuilder, setSourceLevel
public String getMirrorOf()
String
public String getName()
String
public String getUrl()
String
public String getLayout()
String
public String getMirrorOfLayouts()
String
public boolean isBlocked()
boolean
@Nonnull public Mirror.Builder with()
with
in class IdentifiableBase
Builder
@Nonnull public Mirror withId(String id)
Mirror
instance using the specified id.withId
in class IdentifiableBase
id
- the new String
to useMirror
with the specified id@Nonnull public Mirror withMirrorOf(String mirrorOf)
Mirror
instance using the specified mirrorOf.mirrorOf
- the new String
to useMirror
with the specified mirrorOf@Nonnull public Mirror withName(String name)
Mirror
instance using the specified name.name
- the new String
to useMirror
with the specified name@Nonnull public Mirror withUrl(String url)
Mirror
instance using the specified url.url
- the new String
to useMirror
with the specified url@Nonnull public Mirror withLayout(String layout)
Mirror
instance using the specified layout.layout
- the new String
to useMirror
with the specified layout@Nonnull public Mirror withMirrorOfLayouts(String mirrorOfLayouts)
Mirror
instance using the specified mirrorOfLayouts.mirrorOfLayouts
- the new String
to useMirror
with the specified mirrorOfLayouts@Nonnull public Mirror withBlocked(boolean blocked)
Mirror
instance using the specified blocked.blocked
- the new boolean
to useMirror
with the specified blocked@Nonnull public static Mirror newInstance()
Mirror
instance.
Equivalent to newInstance( true )
.Mirror
newInstance(boolean)
@Nonnull public static Mirror newInstance(boolean withDefaults)
Mirror
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedMirror
@Nonnull public static Mirror.Builder newBuilder()
Mirror
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static Mirror.Builder newBuilder(boolean withDefaults)
Mirror
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static Mirror.Builder newBuilder(Mirror from)
Mirror
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the Mirror
instance to use as a basisBuilder
@Nonnull public static Mirror.Builder newBuilder(Mirror from, boolean forceCopy)
Mirror
builder instance using the specified object as a basis.from
- the Mirror
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.