Klasse GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder
java.lang.Object
io.github.primelib.confluence4j.rest.v1.spec.GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder
- Umschließende Klasse:
GetRelationshipOperationSpec
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuild()A multi-value parameter indicating which properties of the response object to expand.relationName(@NotNull String relationName) The name of the relationship.- 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.sourceStatus(@Nullable String sourceStatus) The status of the source.sourceType(@NotNull String sourceType) The source entity type of the relationship.sourceVersion(@Nullable Integer sourceVersion) The version of the source.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.targetStatus(@Nullable String targetStatus) The status of the target.targetType(@NotNull String targetType) The target entity type of the relationship.targetVersion(@Nullable Integer targetVersion) The version of the target.toString()
-
Methodendetails
-
relationName
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder relationName(@NotNull @NotNull String 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
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder sourceType(@NotNull @NotNull String sourceType) The source entity type of the relationship. This must be 'user', if therelationNameis 'favourite'.- Gibt zurück:
this.
-
sourceKey
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder sourceKey(@NotNull @NotNull String 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
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder targetType(@NotNull @NotNull String targetType) The target entity type of the relationship. This must be 'space' or 'content', if therelationNameis 'favourite'.- Gibt zurück:
this.
-
targetKey
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder targetKey(@NotNull @NotNull String 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
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder sourceStatus(@Nullable @Nullable String sourceStatus) The status of the source. This parameter is only used when thesourceTypeis 'content'.- Gibt zurück:
this.
-
targetStatus
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder targetStatus(@Nullable @Nullable String targetStatus) The status of the target. This parameter is only used when thetargetTypeis 'content'.- Gibt zurück:
this.
-
sourceVersion
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder sourceVersion(@Nullable @Nullable Integer sourceVersion) The version of the source. This parameter is only used when thesourceTypeis 'content' and thesourceStatusis 'historical'.- Gibt zurück:
this.
-
targetVersion
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder targetVersion(@Nullable @Nullable Integer targetVersion) The version of the target. This parameter is only used when thetargetTypeis 'content' and thetargetStatusis 'historical'.- Gibt zurück:
this.
-
expand
public GetRelationshipOperationSpec.GetRelationshipOperationSpecBuilder expand(@Nullable @Nullable List<String> 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.
-
build
-
toString
-