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 valueconsumesto consumes.Initializes the optional valueconsumesto consumes.from(CtxApiOpExt instance) Fill a builder with attribute values from the providedCtxApiOpExtinstance.hasResponses(boolean hasResponses) Initializes the value for thehasResponsesattribute.Initializes the optional valueproducesto produces.Initializes the optional valueproducesto produces.renderJavadocMacroSpacer(boolean renderJavadocMacroSpacer) Initializes the value for therenderJavadocMacroSpacerattribute.renderJavadocReturn(boolean renderJavadocReturn) Initializes the value for therenderJavadocReturnattribute.responseSchema(boolean responseSchema) Initializes the value for theresponseSchemaattribute.summaryString(String summaryString) Initializes the optional valuesummaryStringto summaryString.summaryString(Optional<String> summaryString) Initializes the optional valuesummaryStringto summaryString.
-
Method Details
-
from
Fill a builder with attribute values from the providedCtxApiOpExtinstance. 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:
thisbuilder for use in a chained invocation
-
renderJavadocMacroSpacer
public final ImmutableCtxApiOpExt.Builder renderJavadocMacroSpacer(boolean renderJavadocMacroSpacer) Initializes the value for therenderJavadocMacroSpacerattribute.- Parameters:
renderJavadocMacroSpacer- The value for renderJavadocMacroSpacer- Returns:
thisbuilder for use in a chained invocation
-
renderJavadocReturn
Initializes the value for therenderJavadocReturnattribute.- Parameters:
renderJavadocReturn- The value for renderJavadocReturn- Returns:
thisbuilder for use in a chained invocation
-
produces
Initializes the optional valueproducesto produces.- Parameters:
produces- The value for produces- Returns:
thisbuilder for chained invocation
-
produces
Initializes the optional valueproducesto produces.- Parameters:
produces- The value for produces- Returns:
thisbuilder for use in a chained invocation
-
consumes
Initializes the optional valueconsumesto consumes.- Parameters:
consumes- The value for consumes- Returns:
thisbuilder for chained invocation
-
consumes
Initializes the optional valueconsumesto consumes.- Parameters:
consumes- The value for consumes- Returns:
thisbuilder for use in a chained invocation
-
responseSchema
Initializes the value for theresponseSchemaattribute.- Parameters:
responseSchema- The value for responseSchema- Returns:
thisbuilder for use in a chained invocation
-
hasResponses
Initializes the value for thehasResponsesattribute.- Parameters:
hasResponses- The value for hasResponses- Returns:
thisbuilder for use in a chained invocation
-
summaryString
Initializes the optional valuesummaryStringto summaryString.- Parameters:
summaryString- The value for summaryString- Returns:
thisbuilder for chained invocation
-
summaryString
Initializes the optional valuesummaryStringto summaryString.- Parameters:
summaryString- The value for summaryString- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableCtxApiOpExt.- Returns:
- An immutable instance of CtxApiOpExt
- Throws:
IllegalStateException- if any required attributes are missing
-