Class ExpectedEndpoint.Builder
- java.lang.Object
-
- software.amazon.smithy.rulesengine.traits.ExpectedEndpoint.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ExpectedEndpoint>
- Enclosing class:
- ExpectedEndpoint
public static final class ExpectedEndpoint.Builder extends java.lang.Object implements SmithyBuilder<ExpectedEndpoint>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpectedEndpoint
build()
Creates an immutable object that is created from the properties that have been set on the builder.ExpectedEndpoint.Builder
headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
ExpectedEndpoint.Builder
properties(java.util.Map<java.lang.String,Node> properties)
ExpectedEndpoint.Builder
putHeader(java.lang.String header, java.util.List<java.lang.String> values)
ExpectedEndpoint.Builder
putProperty(java.lang.String property, Node value)
ExpectedEndpoint.Builder
removeHeader(java.lang.String header)
ExpectedEndpoint.Builder
removeProperty(java.lang.String property)
ExpectedEndpoint.Builder
sourceLocation(FromSourceLocation fromSourceLocation)
ExpectedEndpoint.Builder
url(java.lang.String url)
-
-
-
Method Detail
-
sourceLocation
public ExpectedEndpoint.Builder sourceLocation(FromSourceLocation fromSourceLocation)
-
url
public ExpectedEndpoint.Builder url(java.lang.String url)
-
headers
public ExpectedEndpoint.Builder headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
putHeader
public ExpectedEndpoint.Builder putHeader(java.lang.String header, java.util.List<java.lang.String> values)
-
removeHeader
public ExpectedEndpoint.Builder removeHeader(java.lang.String header)
-
properties
public ExpectedEndpoint.Builder properties(java.util.Map<java.lang.String,Node> properties)
-
putProperty
public ExpectedEndpoint.Builder putProperty(java.lang.String property, Node value)
-
removeProperty
public ExpectedEndpoint.Builder removeProperty(java.lang.String property)
-
build
public ExpectedEndpoint build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Specified by:
build
in interfaceSmithyBuilder<ExpectedEndpoint>
- Returns:
- an instance of T
-
-