Class ImmutableCtxApiOp.Builder
java.lang.Object
dk.mada.jaxrs.generator.mpclient.api.tmpl.ImmutableCtxApiOp.Builder
- Enclosing class:
ImmutableCtxApiOp
@Generated(from="CtxApiOp",
generator="Immutables")
public static final class ImmutableCtxApiOp.Builder
extends Object
Builds instances of type
ImmutableCtxApiOp
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllParams
(Iterable<? extends CtxApiParam> elements) Adds elements toallParams
list.addAllParams
(CtxApiParam element) Adds one element toallParams
list.addAllParams
(CtxApiParam... elements) Adds elements toallParams
list.addAllResponses
(Iterable<? extends CtxApiResponse> elements) Adds elements toresponses
list.addResponses
(CtxApiResponse element) Adds one element toresponses
list.addResponses
(CtxApiResponse... elements) Adds elements toresponses
list.allParams
(Iterable<? extends CtxApiParam> elements) Sets or replaces all elements forallParams
list.build()
Builds a newImmutableCtxApiOp
.Fill a builder with attribute values from the providedCtxApiOp
instance.httpMethod
(String httpMethod) Initializes the value for thehttpMethod
attribute.madaOp
(CtxApiOpExt madaOp) Initializes the value for themadaOp
attribute.Initializes the value for thenickname
attribute.Initializes the optional valuenotes
to notes.Initializes the optional valuenotes
to notes.Initializes the optional valuepath
to path.Initializes the optional valuepath
to path.responses
(Iterable<? extends CtxApiResponse> elements) Sets or replaces all elements forresponses
list.returnType
(String returnType) Initializes the value for thereturnType
attribute.Initializes the optional valuesummary
to summary.Initializes the optional valuesummary
to summary.
-
Method Details
-
from
Fill a builder with attribute values from the providedCtxApiOp
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
returnType
Initializes the value for thereturnType
attribute.- Parameters:
returnType
- The value for returnType- Returns:
this
builder for use in a chained invocation
-
nickname
Initializes the value for thenickname
attribute.- Parameters:
nickname
- The value for nickname- Returns:
this
builder for use in a chained invocation
-
httpMethod
Initializes the value for thehttpMethod
attribute.- Parameters:
httpMethod
- The value for httpMethod- Returns:
this
builder for use in a chained invocation
-
path
Initializes the optional valuepath
to path.- Parameters:
path
- The value for path- Returns:
this
builder for chained invocation
-
path
Initializes the optional valuepath
to path.- Parameters:
path
- The value for path- Returns:
this
builder for use in a chained invocation
-
summary
Initializes the optional valuesummary
to summary.- Parameters:
summary
- The value for summary- Returns:
this
builder for chained invocation
-
summary
Initializes the optional valuesummary
to summary.- Parameters:
summary
- The value for summary- Returns:
this
builder for use in a chained invocation
-
notes
Initializes the optional valuenotes
to notes.- Parameters:
notes
- The value for notes- Returns:
this
builder for chained invocation
-
notes
Initializes the optional valuenotes
to notes.- Parameters:
notes
- The value for notes- Returns:
this
builder for use in a chained invocation
-
addAllParams
Adds one element toallParams
list.- Parameters:
element
- A allParams element- Returns:
this
builder for use in a chained invocation
-
addAllParams
Adds elements toallParams
list.- Parameters:
elements
- An array of allParams elements- Returns:
this
builder for use in a chained invocation
-
allParams
Sets or replaces all elements forallParams
list.- Parameters:
elements
- An iterable of allParams elements- Returns:
this
builder for use in a chained invocation
-
addAllAllParams
Adds elements toallParams
list.- Parameters:
elements
- An iterable of allParams elements- Returns:
this
builder for use in a chained invocation
-
addResponses
Adds one element toresponses
list.- Parameters:
element
- A responses element- Returns:
this
builder for use in a chained invocation
-
addResponses
Adds elements toresponses
list.- Parameters:
elements
- An array of responses elements- Returns:
this
builder for use in a chained invocation
-
responses
Sets or replaces all elements forresponses
list.- Parameters:
elements
- An iterable of responses elements- Returns:
this
builder for use in a chained invocation
-
addAllResponses
Adds elements toresponses
list.- Parameters:
elements
- An iterable of responses elements- Returns:
this
builder for use in a chained invocation
-
madaOp
Initializes the value for themadaOp
attribute.- Parameters:
madaOp
- The value for madaOp- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableCtxApiOp
.- Returns:
- An immutable instance of CtxApiOp
- Throws:
IllegalStateException
- if any required attributes are missing
-