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 toallParamslist.addAllParams(CtxApiParam element) Adds one element toallParamslist.addAllParams(CtxApiParam... elements) Adds elements toallParamslist.addAllResponses(Iterable<? extends CtxApiResponse> elements) Adds elements toresponseslist.addResponses(CtxApiResponse element) Adds one element toresponseslist.addResponses(CtxApiResponse... elements) Adds elements toresponseslist.allParams(Iterable<? extends CtxApiParam> elements) Sets or replaces all elements forallParamslist.build()Builds a newImmutableCtxApiOp.Fill a builder with attribute values from the providedCtxApiOpinstance.httpMethod(String httpMethod) Initializes the value for thehttpMethodattribute.madaOp(CtxApiOpExt madaOp) Initializes the value for themadaOpattribute.Initializes the value for thenicknameattribute.Initializes the optional valuenotesto notes.Initializes the optional valuenotesto notes.Initializes the optional valuepathto path.Initializes the optional valuepathto path.responses(Iterable<? extends CtxApiResponse> elements) Sets or replaces all elements forresponseslist.returnType(String returnType) Initializes the value for thereturnTypeattribute.Initializes the optional valuesummaryto summary.Initializes the optional valuesummaryto summary.
-
Method Details
-
from
Fill a builder with attribute values from the providedCtxApiOpinstance. 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:
thisbuilder for use in a chained invocation
-
returnType
Initializes the value for thereturnTypeattribute.- Parameters:
returnType- The value for returnType- Returns:
thisbuilder for use in a chained invocation
-
nickname
Initializes the value for thenicknameattribute.- Parameters:
nickname- The value for nickname- Returns:
thisbuilder for use in a chained invocation
-
httpMethod
Initializes the value for thehttpMethodattribute.- Parameters:
httpMethod- The value for httpMethod- Returns:
thisbuilder for use in a chained invocation
-
path
Initializes the optional valuepathto path.- Parameters:
path- The value for path- Returns:
thisbuilder for chained invocation
-
path
Initializes the optional valuepathto path.- Parameters:
path- The value for path- Returns:
thisbuilder for use in a chained invocation
-
summary
Initializes the optional valuesummaryto summary.- Parameters:
summary- The value for summary- Returns:
thisbuilder for chained invocation
-
summary
Initializes the optional valuesummaryto summary.- Parameters:
summary- The value for summary- Returns:
thisbuilder for use in a chained invocation
-
notes
Initializes the optional valuenotesto notes.- Parameters:
notes- The value for notes- Returns:
thisbuilder for chained invocation
-
notes
Initializes the optional valuenotesto notes.- Parameters:
notes- The value for notes- Returns:
thisbuilder for use in a chained invocation
-
addAllParams
Adds one element toallParamslist.- Parameters:
element- A allParams element- Returns:
thisbuilder for use in a chained invocation
-
addAllParams
Adds elements toallParamslist.- Parameters:
elements- An array of allParams elements- Returns:
thisbuilder for use in a chained invocation
-
allParams
Sets or replaces all elements forallParamslist.- Parameters:
elements- An iterable of allParams elements- Returns:
thisbuilder for use in a chained invocation
-
addAllAllParams
Adds elements toallParamslist.- Parameters:
elements- An iterable of allParams elements- Returns:
thisbuilder for use in a chained invocation
-
addResponses
Adds one element toresponseslist.- Parameters:
element- A responses element- Returns:
thisbuilder for use in a chained invocation
-
addResponses
Adds elements toresponseslist.- Parameters:
elements- An array of responses elements- Returns:
thisbuilder for use in a chained invocation
-
responses
Sets or replaces all elements forresponseslist.- Parameters:
elements- An iterable of responses elements- Returns:
thisbuilder for use in a chained invocation
-
addAllResponses
Adds elements toresponseslist.- Parameters:
elements- An iterable of responses elements- Returns:
thisbuilder for use in a chained invocation
-
madaOp
Initializes the value for themadaOpattribute.- Parameters:
madaOp- The value for madaOp- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableCtxApiOp.- Returns:
- An immutable instance of CtxApiOp
- Throws:
IllegalStateException- if any required attributes are missing
-