Klasse SetContentStateOperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.spec.SetContentStateOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class SetContentStateOperationSpec
extends Object
SetContentStateSpec
Specification for the SetContentState operation.
Set the content state of a content and publishes a new version of the content.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic class -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic Booleanallows to disable validation of the spec, use with care! -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedSetContentStateOperationSpec(String id, ContentStateRestInput contentStateRestInput, String status) Constructs a validated instance ofSetContentStateOperationSpec.Constructs a validated instance ofSetContentStateOperationSpec. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuilder()protected boolean@NotNull ContentStateRestInputContent state fields for state.contentStateRestInput(@NotNull ContentStateRestInput contentStateRestInput) Content state fields for state.booleaninthashCode()@NotNull Stringid()The Id of the content whose content state is to be set.The Id of the content whose content state is to be set.@Nullable Stringstatus()Status of content onto which state will be placed.Status of content onto which state will be placed.toString()voidvalidate()Validates the Spec, will throw a exception if required parameters are missing
-
Felddetails
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Konstruktordetails
-
SetContentStateOperationSpec
Constructs a validated instance ofSetContentStateOperationSpec.- Parameter:
spec- the specification to process
-
SetContentStateOperationSpec
@Internal public SetContentStateOperationSpec(String id, ContentStateRestInput contentStateRestInput, String status) Constructs a validated instance ofSetContentStateOperationSpec.NOTE: This constructor is not considered stable and may change if the operation is updated.
- Parameter:
id- The Id of the content whose content state is to be set.contentStateRestInput- Content state fields for state. Pass in id for an existing state, or new name and color for best matching existing state, or new state if allowed in space.status- Status of content onto which state will be placed. If draft, then draft state will change. If current, state will be placed onto a new version of the content with same body as previous version.
-
SetContentStateOperationSpec
protected SetContentStateOperationSpec()
-
-
Methodendetails
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Löst aus:
NullPointerException
-
builder
-
id
The Id of the content whose content state is to be set. -
contentStateRestInput
Content state fields for state. Pass in id for an existing state, or new name and color for best matching existing state, or new state if allowed in space. -
status
Status of content onto which state will be placed. If draft, then draft state will change. If current, state will be placed onto a new version of the content with same body as previous version. -
id
The Id of the content whose content state is to be set.- Gibt zurück:
this.
-
contentStateRestInput
public SetContentStateOperationSpec contentStateRestInput(@NotNull @NotNull ContentStateRestInput contentStateRestInput) Content state fields for state. Pass in id for an existing state, or new name and color for best matching existing state, or new state if allowed in space.- Gibt zurück:
this.
-
status
Status of content onto which state will be placed. If draft, then draft state will change. If current, state will be placed onto a new version of the content with same body as previous version.- Gibt zurück:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-