Class InstallSnapDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.osmanagementhub.model.InstallSnapDetails.Builder
-
- Enclosing class:
- InstallSnapDetails
public static class InstallSnapDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstallSnapDetailsbuild()InstallSnapDetails.Builderchannel(String channel)The snap channel to install from (e.g.InstallSnapDetails.Buildercopy(InstallSnapDetails model)InstallSnapDetails.BuilderisSigned(Boolean isSigned)If false, allows installing snaps not signed by the Snap Store.InstallSnapDetails.Buildermode(SnapModes mode)The confinement mode for the snap.InstallSnapDetails.Buildername(String name)The name of the snap to install.InstallSnapDetails.Builderrevision(String revision)The snap revision to install.
-
-
-
Method Detail
-
channel
public InstallSnapDetails.Builder channel(String channel)
The snap channel to install from (e.g.stable, 1.2/edge, beta, candidate, or a custom channel).
- Parameters:
channel- the value to set- Returns:
- this builder
-
isSigned
public InstallSnapDetails.Builder isSigned(Boolean isSigned)
If false, 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 InstallSnapDetails.Builder mode(SnapModes mode)
The confinement mode for the snap.- Parameters:
mode- the value to set- Returns:
- this builder
-
name
public InstallSnapDetails.Builder name(String name)
The name of the snap to install.- Parameters:
name- the value to set- Returns:
- this builder
-
revision
public InstallSnapDetails.Builder revision(String revision)
The snap revision to install.- Parameters:
revision- the value to set- Returns:
- this builder
-
build
public InstallSnapDetails build()
-
copy
public InstallSnapDetails.Builder copy(InstallSnapDetails model)
-
-