public enum ConnectionStrategy extends Enum<ConnectionStrategy>
Enum Constant and Description |
---|
PRIVATE_DNS |
PRIVATE_IP |
PUBLIC_DNS |
PUBLIC_IP |
Modifier and Type | Method and Description |
---|---|
static ConnectionStrategy |
backwardsCompatible(boolean usePrivateDnsName,
boolean connectUsingPublicIp,
boolean associatePublicIp)
For backwards compatibility.
|
String |
getDisplayText() |
static ConnectionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionStrategy PUBLIC_DNS
public static final ConnectionStrategy PUBLIC_IP
public static final ConnectionStrategy PRIVATE_DNS
public static final ConnectionStrategy PRIVATE_IP
public static ConnectionStrategy[] values()
for (ConnectionStrategy c : ConnectionStrategy.values()) System.out.println(c);
public static ConnectionStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getDisplayText()
public static ConnectionStrategy backwardsCompatible(boolean usePrivateDnsName, boolean connectUsingPublicIp, boolean associatePublicIp)
usePrivateDnsName
- whether or not to use a private dns to establish a connection.connectUsingPublicIp
- whether or not to use a public ip to establish a connection.associatePublicIp
- whether or not to associate to a public ip.ConnectionStrategy
based on provided parameters.Copyright © 2016–2022. All rights reserved.