Class EndpointTestExpectation
- java.lang.Object
-
- software.amazon.smithy.rulesengine.traits.EndpointTestExpectation
-
- All Implemented Interfaces:
FromSourceLocation,ToSmithyBuilder<EndpointTestExpectation>
public final class EndpointTestExpectation extends java.lang.Object implements FromSourceLocation, ToSmithyBuilder<EndpointTestExpectation>
An endpoint test case expectation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEndpointTestExpectation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EndpointTestExpectation.Builderbuilder()booleanequals(java.lang.Object o)java.util.Optional<ExpectedEndpoint>getEndpoint()java.util.Optional<java.lang.String>getError()SourceLocationgetSourceLocation()Gets the source location of a value.inthashCode()EndpointTestExpectation.BuildertoBuilder()Take this object and create a builder that contains all of the current property values of this object.
-
-
-
Method Detail
-
builder
public static EndpointTestExpectation.Builder builder()
-
getError
public java.util.Optional<java.lang.String> getError()
-
getEndpoint
public java.util.Optional<ExpectedEndpoint> getEndpoint()
-
getSourceLocation
public SourceLocation getSourceLocation()
Description copied from interface:FromSourceLocationGets the source location of a value.- Specified by:
getSourceLocationin interfaceFromSourceLocation- Returns:
- Returns the source location of the value.
-
toBuilder
public EndpointTestExpectation.Builder toBuilder()
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<EndpointTestExpectation>- Returns:
- a builder for type T
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-