Class GetContextsForFieldOperationSpec
java.lang.Object
io.github.primelib.jira4j.restv2.spec.GetContextsForFieldOperationSpec
@Generated("io.github.primelib.primecodegen.javafeign.JavaFeignGenerator")
public class GetContextsForFieldOperationSpec
extends Object
GetContextsForFieldSpec
Specification for the GetContextsForField operation.
Get custom field contexts
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Boolean
allows to disable validation of the spec, use with care! -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
GetContextsForFieldOperationSpec
(String fieldId, Boolean isAnyIssueType, Boolean isGlobalContext, Set<Long> contextId, Long startAt, Integer maxResults) Constructs a validated instance ofGetContextsForFieldOperationSpec
.Constructs a validated instance ofGetContextsForFieldOperationSpec
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
The list of context IDs.The list of context IDs.boolean
@NotNull String
fieldId()
The ID of the custom field.The ID of the custom field.int
hashCode()
@Nullable Boolean
Whether to return contexts that apply to all issue types.isAnyIssueType
(@Nullable Boolean isAnyIssueType) Whether to return contexts that apply to all issue types.@Nullable Boolean
Whether to return contexts that apply to all projects.isGlobalContext
(@Nullable Boolean isGlobalContext) Whether to return contexts that apply to all projects.@Nullable Integer
The maximum number of items to return per page.maxResults
(@Nullable Integer maxResults) The maximum number of items to return per page.@Nullable Long
startAt()
The index of the first item to return in a page of results (page offset).The index of the first item to return in a page of results (page offset).toString()
void
validate()
Validates the Spec, will throw a exception if required parameters are missing
-
Field Details
-
VALIDATION_ENABLED
allows to disable validation of the spec, use with care!
-
-
Constructor Details
-
GetContextsForFieldOperationSpec
Constructs a validated instance ofGetContextsForFieldOperationSpec
.- Parameters:
spec
- the specification to process
-
GetContextsForFieldOperationSpec
@Internal public GetContextsForFieldOperationSpec(String fieldId, Boolean isAnyIssueType, Boolean isGlobalContext, Set<Long> contextId, Long startAt, Integer maxResults) Constructs a validated instance ofGetContextsForFieldOperationSpec
.NOTE: This constructor is not considered stable and may change if the operation is updated.
- Parameters:
fieldId
- The ID of the custom field.isAnyIssueType
- Whether to return contexts that apply to all issue types.isGlobalContext
- Whether to return contexts that apply to all projects.contextId
- The list of context IDs. To include multiple contexts, separate IDs with ampersand:contextId=10000&contextId=10001
.startAt
- The index of the first item to return in a page of results (page offset).maxResults
- The maximum number of items to return per page.
-
GetContextsForFieldOperationSpec
protected GetContextsForFieldOperationSpec()
-
-
Method Details
-
validate
public void validate()Validates the Spec, will throw a exception if required parameters are missing- Throws:
NullPointerException
-
builder
-
fieldId
The ID of the custom field. -
isAnyIssueType
Whether to return contexts that apply to all issue types. -
isGlobalContext
Whether to return contexts that apply to all projects. -
contextId
The list of context IDs. To include multiple contexts, separate IDs with ampersand:contextId=10000&contextId=10001
. -
startAt
The index of the first item to return in a page of results (page offset). -
maxResults
The maximum number of items to return per page. -
fieldId
The ID of the custom field.- Returns:
this
.
-
isAnyIssueType
Whether to return contexts that apply to all issue types.- Returns:
this
.
-
isGlobalContext
public GetContextsForFieldOperationSpec isGlobalContext(@Nullable @Nullable Boolean isGlobalContext) Whether to return contexts that apply to all projects.- Returns:
this
.
-
contextId
The list of context IDs. To include multiple contexts, separate IDs with ampersand:contextId=10000&contextId=10001
.- Returns:
this
.
-
startAt
The index of the first item to return in a page of results (page offset).- Returns:
this
.
-
maxResults
The maximum number of items to return per page.- Returns:
this
.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-