1 /* 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"). 5 * You may not use this file except in compliance with the License. 6 * A copy of the License is located at 7 * 8 * http://aws.amazon.com/apache2.0 9 * 10 * or in the "license" file accompanying this file. This file is distributed 11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 12 * express or implied. See the License for the specific language governing 13 * permissions and limitations under the License. 14 */ 15 16 package software.amazon.awssdk.codegen.model.service; 17 18 /** 19 * This trait can be used to resolve the endpoint of an API using the original endpoint 20 * derived from client or set by customer. 21 * 22 * This trait allows using modeled members in the input shape to modify the endpoint. This is for SDK internal use. 23 * 24 * See `API Operation Endpoint Trait` SEP 25 */ 26 public final class EndpointTrait { 27 /** 28 * Expression that must be expanded by the client before invoking the API call. 29 * The expanded expression is added as a prefix to the original endpoint host derived on the client. 30 */ 31 private String hostPrefix; 32 getHostPrefix()33 public String getHostPrefix() { 34 return hostPrefix; 35 } 36 setHostPrefix(String hostPrefix)37 public void setHostPrefix(String hostPrefix) { 38 this.hostPrefix = hostPrefix; 39 } 40 } 41