Klasse FindTargetFromSourceOperationSpec

java.lang.Object
io.github.primelib.confluence4j.rest.v1.spec.FindTargetFromSourceOperationSpec

@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator") public class FindTargetFromSourceOperationSpec extends Object
FindTargetFromSourceSpec

Specification for the FindTargetFromSource operation.

Find target entities related to a source entity

  • Felddetails

    • VALIDATION_ENABLED

      @Experimental public static Boolean VALIDATION_ENABLED
      allows to disable validation of the spec, use with care!
  • Konstruktordetails

    • FindTargetFromSourceOperationSpec

      @Internal public FindTargetFromSourceOperationSpec(Consumer<FindTargetFromSourceOperationSpec> spec)
      Constructs a validated instance of FindTargetFromSourceOperationSpec.
      Parameter:
      spec - the specification to process
    • FindTargetFromSourceOperationSpec

      @Internal public FindTargetFromSourceOperationSpec(String relationName, String sourceType, String sourceKey, String targetType, String sourceStatus, String targetStatus, Integer sourceVersion, Integer targetVersion, List<String> expand, Integer start, Integer limit)
      Constructs a validated instance of FindTargetFromSourceOperationSpec.

      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 relationships created via [Create relationship](#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-put). Note, this method does not support 'like' or 'favourite' relationships.
      sourceType - The source entity type of the relationship.
      sourceKey - The identifier for the source entity: - If sourceType is user, then specify either current (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. - If sourceType is 'content', then specify the content ID. - If sourceType is 'space', then specify the space key.
      targetType - The target entity type of the relationship.
      sourceStatus - The status of the source. This parameter is only used when the sourceType is 'content'.
      targetStatus - The status of the target. This parameter is only used when the targetType is 'content'.
      sourceVersion - The version of the source. This parameter is only used when the sourceType is 'content' and the sourceStatus is 'historical'.
      targetVersion - The version of the target. This parameter is only used when the targetType is 'content' and the targetStatus is 'historical'.
      expand - A multi-value parameter indicating which properties of the response object to expand. - relationData returns information about the relationship, such as who created it and when it was created. - source returns the source entity. - target returns the target entity.
      start - The starting index of the returned relationships.
      limit - The maximum number of relationships to return per page. Note, this may be restricted by fixed system limits.
    • FindTargetFromSourceOperationSpec

      protected FindTargetFromSourceOperationSpec()
  • Methodendetails

    • validate

      public void validate()
      Validates the Spec, will throw a exception if required parameters are missing
      Löst aus:
      NullPointerException
    • builder

    • relationName

      @NotNull public @NotNull String relationName()
      The name of the relationship. This method supports relationships created via [Create relationship](#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-put). Note, this method does not support 'like' or 'favourite' relationships.
    • sourceType

      @NotNull public @NotNull String sourceType()
      The source entity type of the relationship.
    • sourceKey

      @NotNull public @NotNull String sourceKey()
      The identifier for the source entity: - If sourceType is user, then specify either current (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. - If sourceType is 'content', then specify the content ID. - If sourceType is 'space', then specify the space key.
    • targetType

      @NotNull public @NotNull String targetType()
      The target entity type of the relationship.
    • sourceStatus

      @Nullable public @Nullable String sourceStatus()
      The status of the source. This parameter is only used when the sourceType is 'content'.
    • targetStatus

      @Nullable public @Nullable String targetStatus()
      The status of the target. This parameter is only used when the targetType is 'content'.
    • sourceVersion

      @Nullable public @Nullable Integer sourceVersion()
      The version of the source. This parameter is only used when the sourceType is 'content' and the sourceStatus is 'historical'.
    • targetVersion

      @Nullable public @Nullable Integer targetVersion()
      The version of the target. This parameter is only used when the targetType is 'content' and the targetStatus is 'historical'.
    • expand

      @Nullable public @Nullable List<String> expand()
      A multi-value parameter indicating which properties of the response object to expand. - relationData returns information about the relationship, such as who created it and when it was created. - source returns the source entity. - target returns the target entity.
    • start

      @Nullable public @Nullable Integer start()
      The starting index of the returned relationships.
    • limit

      @Nullable public @Nullable Integer limit()
      The maximum number of relationships to return per page. Note, this may be restricted by fixed system limits.
    • relationName

      public FindTargetFromSourceOperationSpec relationName(@NotNull @NotNull String relationName)
      The name of the relationship. This method supports relationships created via [Create relationship](#api-wiki-rest-api-relation-relationname-from-sourcetype-sourcekey-to-targettype-targetkey-put). Note, this method does not support 'like' or 'favourite' relationships.
      Gibt zurück:
      this.
    • sourceType

      public FindTargetFromSourceOperationSpec sourceType(@NotNull @NotNull String sourceType)
      The source entity type of the relationship.
      Gibt zurück:
      this.
    • sourceKey

      public FindTargetFromSourceOperationSpec sourceKey(@NotNull @NotNull String sourceKey)
      The identifier for the source entity: - If sourceType is user, then specify either current (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. - If sourceType is 'content', then specify the content ID. - If sourceType is 'space', then specify the space key.
      Gibt zurück:
      this.
    • targetType

      public FindTargetFromSourceOperationSpec targetType(@NotNull @NotNull String targetType)
      The target entity type of the relationship.
      Gibt zurück:
      this.
    • sourceStatus

      public FindTargetFromSourceOperationSpec sourceStatus(@Nullable @Nullable String sourceStatus)
      The status of the source. This parameter is only used when the sourceType is 'content'.
      Gibt zurück:
      this.
    • targetStatus

      public FindTargetFromSourceOperationSpec targetStatus(@Nullable @Nullable String targetStatus)
      The status of the target. This parameter is only used when the targetType is 'content'.
      Gibt zurück:
      this.
    • sourceVersion

      public FindTargetFromSourceOperationSpec sourceVersion(@Nullable @Nullable Integer sourceVersion)
      The version of the source. This parameter is only used when the sourceType is 'content' and the sourceStatus is 'historical'.
      Gibt zurück:
      this.
    • targetVersion

      public FindTargetFromSourceOperationSpec targetVersion(@Nullable @Nullable Integer targetVersion)
      The version of the target. This parameter is only used when the targetType is 'content' and the targetStatus is 'historical'.
      Gibt zurück:
      this.
    • expand

      public FindTargetFromSourceOperationSpec expand(@Nullable @Nullable List<String> expand)
      A multi-value parameter indicating which properties of the response object to expand. - relationData returns information about the relationship, such as who created it and when it was created. - source returns the source entity. - target returns the target entity.
      Gibt zurück:
      this.
    • start

      public FindTargetFromSourceOperationSpec start(@Nullable @Nullable Integer start)
      The starting index of the returned relationships.
      Gibt zurück:
      this.
    • limit

      public FindTargetFromSourceOperationSpec limit(@Nullable @Nullable Integer limit)
      The maximum number of relationships to return per page. Note, this may be restricted by fixed system limits.
      Gibt zurück:
      this.
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object