Class PortOverride
- java.lang.Object
-
- software.amazon.awssdk.services.globalaccelerator.model.PortOverride
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PortOverride.Builder,PortOverride>
@Generated("software.amazon.awssdk:codegen") public final class PortOverride extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PortOverride.Builder,PortOverride>
Override specific listener ports used to route traffic to endpoints that are part of an endpoint group. For example, you can create a port override in which the listener receives user traffic on ports 80 and 443, but your accelerator routes that traffic to ports 1080 and 1443, respectively, on the endpoints.
For more information, see Overriding listener ports in the Global Accelerator Developer Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePortOverride.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PortOverride.Builderbuilder()IntegerendpointPort()The endpoint port that you want a listener port to be mapped to.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerlistenerPort()The listener port that you want to map to a specific endpoint port.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PortOverride.Builder>serializableBuilderClass()PortOverride.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
listenerPort
public final Integer listenerPort()
The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.
- Returns:
- The listener port that you want to map to a specific endpoint port. This is the port that user traffic arrives to the Global Accelerator on.
-
endpointPort
public final Integer endpointPort()
The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
- Returns:
- The endpoint port that you want a listener port to be mapped to. This is the port on the endpoint, such as the Application Load Balancer or Amazon EC2 instance.
-
toBuilder
public PortOverride.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PortOverride.Builder,PortOverride>
-
builder
public static PortOverride.Builder builder()
-
serializableBuilderClass
public static Class<? extends PortOverride.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-