Class PutOptions
java.lang.Object
org.brapi.schematools.core.options.AbstractGeneratorSubOptions
org.brapi.schematools.core.openapi.generator.options.AbstractOpenAPIOptions
org.brapi.schematools.core.openapi.generator.options.PutOptions
- All Implemented Interfaces:
Options,Validatable
Provides options for the generation of Put Endpoints
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if generating a PUT endpoint with no ID parameter for a specific modelbooleanDetermines if generating a PUT endpoint with no ID parameter for a specific modelbooleanDetermines if generating a PUT endpoint with an ID parameter for a specific modelbooleanDetermines if generating a PUT endpoint with an ID parameter for a specific modelfinal booleanisMultipleFor(@NonNull String name) Determines if the PUT Endpoint accepts multiple entities for a specific modelfinal booleanisMultipleFor(@NonNull BrAPIType type) Determines if the PUT Endpoint accepts multiple entities for a specific modelvoidoverride(PutOptions overrideOptions) Overrides the values in this Options Object from the provided Options Object if they are non-nullsetMultipleFor(String name, boolean multiple) Sets if the PUT Endpoint accepts multiple entities for a specific modelsetMultipleFor(BrAPIType type, boolean multiple) Sets if the PUT Endpoint accepts multiple entities for a specific modelMethods inherited from class org.brapi.schematools.core.openapi.generator.options.AbstractOpenAPIOptions
getSummaryFor, getSummaryFor, override, validateMethods inherited from class org.brapi.schematools.core.options.AbstractGeneratorSubOptions
getDescriptionFor, getDescriptionFor, isGenerating, isGeneratingFor, isGeneratingFor, override, setGenerateFor, setGenerateFor
-
Constructor Details
-
PutOptions
public PutOptions()
-
-
Method Details
-
override
Overrides the values in this Options Object from the provided Options Object if they are non-null- Parameters:
overrideOptions- the options which will be used to override this Options Object
-
isMultipleFor
Determines if the PUT Endpoint accepts multiple entities for a specific model- Parameters:
name- the name of the primary model- Returns:
trueif the PUT Endpoint accepts multiple entities for the primary model,falseotherwise
-
isMultipleFor
Determines if the PUT Endpoint accepts multiple entities for a specific model- Parameters:
type- the primary model- Returns:
trueif the PUT Endpoint accepts multiple entities for the primary model,falseotherwise
-
setMultipleFor
Sets if the PUT Endpoint accepts multiple entities for a specific model- Parameters:
name- the name of the primary modelmultiple- set totrueif the PUT Endpoint accepts multiple entities for a specific modelfalseotherwise- Returns:
- the options for chaining
-
setMultipleFor
Sets if the PUT Endpoint accepts multiple entities for a specific model- Parameters:
type- the primary modelmultiple- set totrueif the PUT Endpoint accepts multiple entities for a specific modelfalseotherwise- Returns:
- the options for chaining
-
isGeneratingEndpointFor
Determines if generating a PUT endpoint with no ID parameter for a specific model- Parameters:
name- the name of the primary model- Returns:
trueif generating a PUT endpoint with no ID parameter for a specific model,falseotherwise
-
isGeneratingEndpointFor
Determines if generating a PUT endpoint with no ID parameter for a specific model- Parameters:
type- the primary model- Returns:
trueif generating a PUT endpoint with no ID parameter for a specific model,falseotherwise
-
isGeneratingEndpointNameWithIdFor
Determines if generating a PUT endpoint with an ID parameter for a specific model- Parameters:
name- the name of the primary model- Returns:
trueif generating a PUT endpoint with an ID parameter for a specific model,falseotherwise
-
isGeneratingEndpointNameWithIdFor
Determines if generating a PUT endpoint with an ID parameter for a specific model- Parameters:
type- the primary model- Returns:
trueif generating a PUT endpoint with an ID parameter for a specific model,falseotherwise
-