Klasse CreateRelationshipOperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.spec.CreateRelationshipOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class CreateRelationshipOperationSpec
extends Object
CreateRelationshipSpec
Specification for the CreateRelationship operation.
Create relationship
-
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
KonstruktorenModifiziererKonstruktorBeschreibungprotectedCreateRelationshipOperationSpec(String relationName, String sourceType, String sourceKey, String targetType, String targetKey, String sourceStatus, String targetStatus, Integer sourceVersion, Integer targetVersion) Constructs a validated instance ofCreateRelationshipOperationSpec.Constructs a validated instance ofCreateRelationshipOperationSpec. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuilder()protected booleanbooleaninthashCode()@NotNull StringThe name of the relationship.relationName(@NotNull String relationName) The name of the relationship.@NotNull String- The identifier for the source entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key.- The identifier for the source entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key.@Nullable StringThe status of the source.sourceStatus(@Nullable String sourceStatus) The status of the source.@NotNull StringThe source entity type of the relationship.sourceType(@NotNull String sourceType) The source entity type of the relationship.@Nullable IntegerThe version of the source.sourceVersion(@Nullable Integer sourceVersion) The version of the source.@NotNull String- The identifier for the target entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key.- The identifier for the target entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key.@Nullable StringThe status of the target.targetStatus(@Nullable String targetStatus) The status of the target.@NotNull StringThe target entity type of the relationship.targetType(@NotNull String targetType) The target entity type of the relationship.@Nullable IntegerThe version of the target.targetVersion(@Nullable Integer targetVersion) The version of the target.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
-
CreateRelationshipOperationSpec
Constructs a validated instance ofCreateRelationshipOperationSpec.- Parameter:
spec- the specification to process
-
CreateRelationshipOperationSpec
@Internal public CreateRelationshipOperationSpec(String relationName, String sourceType, String sourceKey, String targetType, String targetKey, String sourceStatus, String targetStatus, Integer sourceVersion, Integer targetVersion) Constructs a validated instance ofCreateRelationshipOperationSpec.NOTE: This constructor is not considered stable and may change if the operation is updated.
- Parameter:
relationName- The name of the relationship. This method supports the 'favourite' (i.e. 'save for later') relationship. You can also specify any other value for this parameter to create a custom relationship type.sourceType- The source entity type of the relationship. This must be 'user', if therelationNameis 'favourite'.sourceKey- - The identifier for the source entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key. - IfsourceTypeis 'content', then specify the content ID. - IfsourceTypeis 'space', then specify the space key.targetType- The target entity type of the relationship. This must be 'space' or 'content', if therelationNameis 'favourite'.targetKey- - The identifier for the target entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key. - IfsourceTypeis 'content', then specify the content ID. - IfsourceTypeis 'space', then specify the space key.sourceStatus- The status of the source. This parameter is only used when thesourceTypeis 'content'.targetStatus- The status of the target. This parameter is only used when thetargetTypeis 'content'.sourceVersion- The version of the source. This parameter is only used when thesourceTypeis 'content' and thesourceStatusis 'historical'.targetVersion- The version of the target. This parameter is only used when thetargetTypeis 'content' and thetargetStatusis 'historical'.
-
CreateRelationshipOperationSpec
protected CreateRelationshipOperationSpec()
-
-
Methodendetails
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Löst aus:
NullPointerException
-
builder
-
relationName
The name of the relationship. This method supports the 'favourite' (i.e. 'save for later') relationship. You can also specify any other value for this parameter to create a custom relationship type. -
sourceType
The source entity type of the relationship. This must be 'user', if therelationNameis 'favourite'. -
sourceKey
- The identifier for the source entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key. - IfsourceTypeis 'content', then specify the content ID. - IfsourceTypeis 'space', then specify the space key. -
targetType
The target entity type of the relationship. This must be 'space' or 'content', if therelationNameis 'favourite'. -
targetKey
- The identifier for the target entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key. - IfsourceTypeis 'content', then specify the content ID. - IfsourceTypeis 'space', then specify the space key. -
sourceStatus
The status of the source. This parameter is only used when thesourceTypeis 'content'. -
targetStatus
The status of the target. This parameter is only used when thetargetTypeis 'content'. -
sourceVersion
The version of the source. This parameter is only used when thesourceTypeis 'content' and thesourceStatusis 'historical'. -
targetVersion
The version of the target. This parameter is only used when thetargetTypeis 'content' and thetargetStatusis 'historical'. -
relationName
The name of the relationship. This method supports the 'favourite' (i.e. 'save for later') relationship. You can also specify any other value for this parameter to create a custom relationship type.- Gibt zurück:
this.
-
sourceType
The source entity type of the relationship. This must be 'user', if therelationNameis 'favourite'.- Gibt zurück:
this.
-
sourceKey
- The identifier for the source entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key. - IfsourceTypeis 'content', then specify the content ID. - IfsourceTypeis 'space', then specify the space key.- Gibt zurück:
this.
-
targetType
The target entity type of the relationship. This must be 'space' or 'content', if therelationNameis 'favourite'.- Gibt zurück:
this.
-
targetKey
- The identifier for the target entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key. - IfsourceTypeis 'content', then specify the content ID. - IfsourceTypeis 'space', then specify the space key.- Gibt zurück:
this.
-
sourceStatus
The status of the source. This parameter is only used when thesourceTypeis 'content'.- Gibt zurück:
this.
-
targetStatus
The status of the target. This parameter is only used when thetargetTypeis 'content'.- Gibt zurück:
this.
-
sourceVersion
The version of the source. This parameter is only used when thesourceTypeis 'content' and thesourceStatusis 'historical'.- Gibt zurück:
this.
-
targetVersion
The version of the target. This parameter is only used when thetargetTypeis 'content' and thetargetStatusis 'historical'.- Gibt zurück:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-