Class Parameter.Builder
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.RulesComponentBuilder<Parameter.Builder,Parameter>
-
- software.amazon.smithy.rulesengine.language.syntax.parameters.Parameter.Builder
-
- All Implemented Interfaces:
FromSourceLocation
,SmithyBuilder<Parameter>
- Enclosing class:
- Parameter
public static final class Parameter.Builder extends RulesComponentBuilder<Parameter.Builder,Parameter>
A builder used to create aParameter
class.
-
-
Constructor Summary
Constructors Constructor Description Builder(FromSourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Parameter
build()
Creates an immutable object that is created from the properties that have been set on the builder.Parameter.Builder
builtIn(java.lang.String builtIn)
Parameter.Builder
defaultValue(Value defaultValue)
Parameter.Builder
deprecated(Deprecated deprecated)
Parameter.Builder
documentation(java.lang.String s)
Parameter.Builder
name(java.lang.String name)
Parameter.Builder
name(Identifier name)
Parameter.Builder
required(boolean required)
Parameter.Builder
type(ParameterType type)
Parameter.Builder
value(Node value)
Parameter.Builder
value(Value value)
-
Methods inherited from class software.amazon.smithy.rulesengine.language.RulesComponentBuilder
getSourceLocation, javaLocation, sourceLocation
-
-
-
-
Constructor Detail
-
Builder
public Builder(FromSourceLocation sourceLocation)
-
-
Method Detail
-
type
public Parameter.Builder type(ParameterType type)
-
deprecated
public Parameter.Builder deprecated(Deprecated deprecated)
-
name
public Parameter.Builder name(java.lang.String name)
-
name
public Parameter.Builder name(Identifier name)
-
builtIn
public Parameter.Builder builtIn(java.lang.String builtIn)
-
value
public Parameter.Builder value(Node value)
-
value
public Parameter.Builder value(Value value)
-
defaultValue
public Parameter.Builder defaultValue(Value defaultValue)
-
required
public Parameter.Builder required(boolean required)
-
documentation
public Parameter.Builder documentation(java.lang.String s)
-
build
public Parameter build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
-