Package ai.shipeasy.admin.model
Class LinkPrToOpsItemRequest
java.lang.Object
ai.shipeasy.admin.model.LinkPrToOpsItemRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class LinkPrToOpsItemRequest
extends Object
Body for `POST /api/admin/ops/{handle}/link-pr`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic LinkPrToOpsItemRequestCreate an instance of LinkPrToOpsItemRequest given an JSON stringPR number to record on the item.getPrUrl()Explicit PR URL.inthashCode()voidsetPrNumber(Integer prNumber) voidtoJson()Convert an instance of LinkPrToOpsItemRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_PR_NUMBER
- See Also:
-
SERIALIZED_NAME_PR_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LinkPrToOpsItemRequest
public LinkPrToOpsItemRequest()
-
-
Method Details
-
prNumber
-
getPrNumber
PR number to record on the item. `null` unlinks the PR. minimum: 0 maximum: 9007199254740991- Returns:
- prNumber
-
setPrNumber
-
prUrl
-
getPrUrl
Explicit PR URL. Required for error/alert tickets (no GitHub issue to derive the URL from).- Returns:
- prUrl
-
setPrUrl
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to LinkPrToOpsItemRequest
-
fromJson
Create an instance of LinkPrToOpsItemRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LinkPrToOpsItemRequest
- Throws:
IOException- if the JSON string is invalid with respect to LinkPrToOpsItemRequest
-
toJson
Convert an instance of LinkPrToOpsItemRequest to an JSON string- Returns:
- JSON string
-