Class Endpoint.Builder
- java.lang.Object
-
- software.amazon.smithy.rulesengine.language.RulesComponentBuilder<Endpoint.Builder,Endpoint>
-
- software.amazon.smithy.rulesengine.language.Endpoint.Builder
-
- All Implemented Interfaces:
FromSourceLocation
,SmithyBuilder<Endpoint>
- Enclosing class:
- Endpoint
public static class Endpoint.Builder extends RulesComponentBuilder<Endpoint.Builder,Endpoint>
Builder forEndpoint
.
-
-
Constructor Summary
Constructors Constructor Description Builder(FromSourceLocation sourceLocation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint.Builder
addAuthScheme(java.lang.String scheme, java.util.Map<java.lang.String,Literal> parameters)
Endpoint.Builder
addAuthScheme(Identifier scheme, java.util.Map<Identifier,Literal> parameters)
Endpoint.Builder
authSchemes(java.util.List<Identifier> schemes, java.util.Map<Identifier,java.util.Map<Identifier,Literal>> params)
Endpoint
build()
Creates an immutable object that is created from the properties that have been set on the builder.Endpoint.Builder
headers(java.util.Map<java.lang.String,java.util.List<Expression>> headers)
Endpoint.Builder
properties(java.util.Map<Identifier,Literal> properties)
Endpoint.Builder
putHeader(java.lang.String name, java.util.List<Expression> value)
Endpoint.Builder
putHeader(java.lang.String name, Literal value)
Endpoint.Builder
putProperty(Identifier identifier, Literal value)
Endpoint.Builder
url(Expression url)
-
Methods inherited from class software.amazon.smithy.rulesengine.language.RulesComponentBuilder
getSourceLocation, javaLocation, sourceLocation
-
-
-
-
Constructor Detail
-
Builder
public Builder(FromSourceLocation sourceLocation)
-
-
Method Detail
-
url
public Endpoint.Builder url(Expression url)
-
putProperty
public Endpoint.Builder putProperty(Identifier identifier, Literal value)
-
properties
public Endpoint.Builder properties(java.util.Map<Identifier,Literal> properties)
-
authSchemes
public Endpoint.Builder authSchemes(java.util.List<Identifier> schemes, java.util.Map<Identifier,java.util.Map<Identifier,Literal>> params)
-
addAuthScheme
public Endpoint.Builder addAuthScheme(Identifier scheme, java.util.Map<Identifier,Literal> parameters)
-
addAuthScheme
public Endpoint.Builder addAuthScheme(java.lang.String scheme, java.util.Map<java.lang.String,Literal> parameters)
-
headers
public Endpoint.Builder headers(java.util.Map<java.lang.String,java.util.List<Expression>> headers)
-
putHeader
public Endpoint.Builder putHeader(java.lang.String name, java.util.List<Expression> value)
-
putHeader
public Endpoint.Builder putHeader(java.lang.String name, Literal value)
-
build
public Endpoint 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
-
-