Klasse GetRelationshipOperationSpec
java.lang.Object
io.github.primelib.confluence4j.rest.v1.spec.GetRelationshipOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class GetRelationshipOperationSpec
extends Object
GetRelationshipSpec
Specification for the GetRelationship operation.
Find relationship from source to target
-
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
KonstruktorenModifiziererKonstruktorBeschreibungprotectedGetRelationshipOperationSpec(String relationName, String sourceType, String sourceKey, String targetType, String targetKey, String sourceStatus, String targetStatus, Integer sourceVersion, Integer targetVersion, List<String> expand) Constructs a validated instance ofGetRelationshipOperationSpec.Constructs a validated instance ofGetRelationshipOperationSpec. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuilder()protected booleanbooleanexpand()A multi-value parameter indicating which properties of the response object to expand.A multi-value parameter indicating which properties of the response object to expand.inthashCode()@NotNull StringThe name of the relationship.relationName(@NotNull String relationName) The name of the relationship.@NotNull String- The identifier for the source entity: - IfsourceTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user.- The identifier for the source entity: - IfsourceTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user.@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 StringThe identifier for the target entity: - IftargetTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user.The identifier for the target entity: - IftargetTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user.@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
-
GetRelationshipOperationSpec
Constructs a validated instance ofGetRelationshipOperationSpec.- Parameter:
spec- the specification to process
-
GetRelationshipOperationSpec
@Internal public GetRelationshipOperationSpec(String relationName, String sourceType, String sourceKey, String targetType, String targetKey, String sourceStatus, String targetStatus, Integer sourceVersion, Integer targetVersion, List<String> expand) Constructs a validated instance ofGetRelationshipOperationSpec.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 as well as any other relationship types created via [Create relationship](#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-put).sourceType- The source entity type of the relationship. This must be 'user', if therelationNameis 'favourite'.sourceKey- - The identifier for the source entity: - IfsourceTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. - 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: - IftargetTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. - IftargetTypeis 'content', then specify the content ID. - IftargetTypeis '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'.expand- A multi-value parameter indicating which properties of the response object to expand. -relationDatareturns information about the relationship, such as who created it and when it was created. -sourcereturns the source entity. -targetreturns the target entity.
-
GetRelationshipOperationSpec
protected GetRelationshipOperationSpec()
-
-
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 as well as any other relationship types created via [Create relationship](#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-put). -
sourceType
The source entity type of the relationship. This must be 'user', if therelationNameis 'favourite'. -
sourceKey
- The identifier for the source entity: - IfsourceTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. - 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: - IftargetTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. - IftargetTypeis 'content', then specify the content ID. - IftargetTypeis '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'. -
expand
A multi-value parameter indicating which properties of the response object to expand. -relationDatareturns information about the relationship, such as who created it and when it was created. -sourcereturns the source entity. -targetreturns the target entity. -
relationName
The name of the relationship. This method supports the 'favourite' (i.e. 'save for later') relationship as well as any other relationship types created via [Create relationship](#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-put).- 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: - IfsourceTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. - 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: - IftargetTypeisuser, then specify eithercurrent(logged-in user), the user key of the user, or the account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/) for details. - IftargetTypeis 'content', then specify the content ID. - IftargetTypeis '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.
-
expand
A multi-value parameter indicating which properties of the response object to expand. -relationDatareturns information about the relationship, such as who created it and when it was created. -sourcereturns the source entity. -targetreturns the target entity.- Gibt zurück:
this.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-