@Test public void literalsMustNotContainAdjacentLabels() { Throwable thrown = Assertions.assertThrows(InvalidPatternException.class, () -> { EndpointTrait.builder() .hostPrefix("foo-{baz}{bar}") .build(); }); assertThat(thrown.getMessage(), containsString("Host labels must not be adjacent")); }
public static Builder builder() { return new Builder(); }
EndpointTrait extends AbstractTrait implements ToSmithyBuilder<EndpointTrait> { public static Builder builder() { return new Builder(); } }
EndpointTrait extends AbstractTrait implements ToSmithyBuilder<EndpointTrait> { public static Builder builder() { return new Builder(); } private  EndpointTrait(Builder builder); }
EndpointTrait extends AbstractTrait implements ToSmithyBuilder<EndpointTrait> { public static Builder builder() { return new Builder(); } private  EndpointTrait(Builder builder); SmithyPattern getHostPrefix(); static Builder builder(); @Override Builder toBuilder(); }
EndpointTrait extends AbstractTrait implements ToSmithyBuilder<EndpointTrait> { public static Builder builder() { return new Builder(); } private  EndpointTrait(Builder builder); SmithyPattern getHostPrefix(); static Builder builder(); @Override Builder toBuilder(); static final ShapeId ID; }