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 class
EndpointTestExpectation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EndpointTestExpectation.Builder
builder()
boolean
equals(java.lang.Object o)
java.util.Optional<ExpectedEndpoint>
getEndpoint()
java.util.Optional<java.lang.String>
getError()
SourceLocation
getSourceLocation()
Gets the source location of a value.int
hashCode()
EndpointTestExpectation.Builder
toBuilder()
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:FromSourceLocation
Gets the source location of a value.- Specified by:
getSourceLocation
in interfaceFromSourceLocation
- Returns:
- Returns the source location of the value.
-
toBuilder
public EndpointTestExpectation.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<EndpointTestExpectation>
- Returns:
- a builder for type T
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-