Class ImmutableCtxApiOpExt.Builder
java.lang.Object
dk.mada.jaxrs.generator.mpclient.api.tmpl.ImmutableCtxApiOpExt.Builder
- Enclosing class:
ImmutableCtxApiOpExt
@Generated(from="CtxApiOpExt",
generator="Immutables")
public static final class ImmutableCtxApiOpExt.Builder
extends Object
Builds instances of type
ImmutableCtxApiOpExt
.
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 TypeMethodDescriptionbuild()
Builds a newImmutableCtxApiOpExt
.Initializes the optional valueconsumes
to consumes.Initializes the optional valueconsumes
to consumes.from
(CtxApiOpExt instance) Fill a builder with attribute values from the providedCtxApiOpExt
instance.hasResponses
(boolean hasResponses) Initializes the value for thehasResponses
attribute.Initializes the optional valueproduces
to produces.Initializes the optional valueproduces
to produces.renderJavadocMacroSpacer
(boolean renderJavadocMacroSpacer) Initializes the value for therenderJavadocMacroSpacer
attribute.renderJavadocReturn
(boolean renderJavadocReturn) Initializes the value for therenderJavadocReturn
attribute.responseSchema
(boolean responseSchema) Initializes the value for theresponseSchema
attribute.summaryString
(String summaryString) Initializes the optional valuesummaryString
to summaryString.summaryString
(Optional<String> summaryString) Initializes the optional valuesummaryString
to summaryString.
-
Method Details
-
from
Fill a builder with attribute values from the providedCtxApiOpExt
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
renderJavadocMacroSpacer
public final ImmutableCtxApiOpExt.Builder renderJavadocMacroSpacer(boolean renderJavadocMacroSpacer) Initializes the value for therenderJavadocMacroSpacer
attribute.- Parameters:
renderJavadocMacroSpacer
- The value for renderJavadocMacroSpacer- Returns:
this
builder for use in a chained invocation
-
renderJavadocReturn
Initializes the value for therenderJavadocReturn
attribute.- Parameters:
renderJavadocReturn
- The value for renderJavadocReturn- Returns:
this
builder for use in a chained invocation
-
produces
Initializes the optional valueproduces
to produces.- Parameters:
produces
- The value for produces- Returns:
this
builder for chained invocation
-
produces
Initializes the optional valueproduces
to produces.- Parameters:
produces
- The value for produces- Returns:
this
builder for use in a chained invocation
-
consumes
Initializes the optional valueconsumes
to consumes.- Parameters:
consumes
- The value for consumes- Returns:
this
builder for chained invocation
-
consumes
Initializes the optional valueconsumes
to consumes.- Parameters:
consumes
- The value for consumes- Returns:
this
builder for use in a chained invocation
-
responseSchema
Initializes the value for theresponseSchema
attribute.- Parameters:
responseSchema
- The value for responseSchema- Returns:
this
builder for use in a chained invocation
-
hasResponses
Initializes the value for thehasResponses
attribute.- Parameters:
hasResponses
- The value for hasResponses- Returns:
this
builder for use in a chained invocation
-
summaryString
Initializes the optional valuesummaryString
to summaryString.- Parameters:
summaryString
- The value for summaryString- Returns:
this
builder for chained invocation
-
summaryString
Initializes the optional valuesummaryString
to summaryString.- Parameters:
summaryString
- The value for summaryString- Returns:
this
builder for use in a chained invocation
-
build
Builds a newImmutableCtxApiOpExt
.- Returns:
- An immutable instance of CtxApiOpExt
- Throws:
IllegalStateException
- if any required attributes are missing
-