Class ExpectedEndpoint
- java.lang.Object
-
- software.amazon.smithy.rulesengine.traits.ExpectedEndpoint
-
- All Implemented Interfaces:
FromSourceLocation
,ToSmithyBuilder<ExpectedEndpoint>
public final class ExpectedEndpoint extends java.lang.Object implements FromSourceLocation, ToSmithyBuilder<ExpectedEndpoint>
An endpoint test-case expectation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExpectedEndpoint.Builder
-
Constructor Summary
Constructors Constructor Description ExpectedEndpoint(ExpectedEndpoint.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExpectedEndpoint.Builder
builder()
boolean
equals(java.lang.Object o)
java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getHeaders()
java.util.Map<java.lang.String,Node>
getProperties()
SourceLocation
getSourceLocation()
Gets the source location of a value.java.lang.String
getUrl()
int
hashCode()
SmithyBuilder<ExpectedEndpoint>
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.java.lang.String
toString()
-
-
-
Constructor Detail
-
ExpectedEndpoint
public ExpectedEndpoint(ExpectedEndpoint.Builder builder)
-
-
Method Detail
-
builder
public static ExpectedEndpoint.Builder builder()
-
getUrl
public java.lang.String getUrl()
-
getHeaders
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getHeaders()
-
getProperties
public java.util.Map<java.lang.String,Node> getProperties()
-
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 SmithyBuilder<ExpectedEndpoint> 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<ExpectedEndpoint>
- 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-