Class SnapSpecDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.osmanagementhub.model.SnapSpecDetails.Builder
-
- Enclosing class:
- SnapSpecDetails
public static class SnapSpecDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapSpecDetailsbuild()SnapSpecDetails.Builderchannel(String channel)The channel to install from (e.g.SnapSpecDetails.Buildercopy(SnapSpecDetails model)SnapSpecDetails.BuilderisSigned(Boolean isSigned)If true, allows installing snaps not signed by the Snap Store.SnapSpecDetails.Buildermode(SnapModes mode)The modes for the snap.SnapSpecDetails.Buildername(String name)The name of the snap to install.SnapSpecDetails.Builderrevision(String revision)The revision to install.SnapSpecDetails.Builderversion(String version)The version of the snap.
-
-
-
Method Detail
-
channel
public SnapSpecDetails.Builder channel(String channel)
The channel to install from (e.g.stable, edge, beta, candidate, or a custom channel).
- Parameters:
channel- the value to set- Returns:
- this builder
-
isSigned
public SnapSpecDetails.Builder isSigned(Boolean isSigned)
If true, allows installing snaps not signed by the Snap Store.E.g., snaps from local file. Use with caution.
- Parameters:
isSigned- the value to set- Returns:
- this builder
-
mode
public SnapSpecDetails.Builder mode(SnapModes mode)
The modes for the snap.- Parameters:
mode- the value to set- Returns:
- this builder
-
name
public SnapSpecDetails.Builder name(String name)
The name of the snap to install.- Parameters:
name- the value to set- Returns:
- this builder
-
version
public SnapSpecDetails.Builder version(String version)
The version of the snap.- Parameters:
version- the value to set- Returns:
- this builder
-
revision
public SnapSpecDetails.Builder revision(String revision)
The revision to install.- Parameters:
revision- the value to set- Returns:
- this builder
-
build
public SnapSpecDetails build()
-
copy
public SnapSpecDetails.Builder copy(SnapSpecDetails model)
-
-