@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateListenerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateListenerRequest() |
Modifier and Type | Method and Description |
---|---|
CreateListenerRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateListenerRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateListenerRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
RuleAction |
getDefaultAction()
The action for the default rule.
|
String |
getName()
The name of the listener.
|
Integer |
getPort()
The listener port.
|
String |
getProtocol()
The listener protocol.
|
String |
getServiceIdentifier()
The ID or Amazon Resource Name (ARN) of the service.
|
Map<String,String> |
getTags()
The tags for the listener.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setDefaultAction(RuleAction defaultAction)
The action for the default rule.
|
void |
setName(String name)
The name of the listener.
|
void |
setPort(Integer port)
The listener port.
|
void |
setProtocol(String protocol)
The listener protocol.
|
void |
setServiceIdentifier(String serviceIdentifier)
The ID or Amazon Resource Name (ARN) of the service.
|
void |
setTags(Map<String,String> tags)
The tags for the listener.
|
String |
toString()
Returns a string representation of this object.
|
CreateListenerRequest |
withClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateListenerRequest |
withDefaultAction(RuleAction defaultAction)
The action for the default rule.
|
CreateListenerRequest |
withName(String name)
The name of the listener.
|
CreateListenerRequest |
withPort(Integer port)
The listener port.
|
CreateListenerRequest |
withProtocol(ListenerProtocol protocol)
The listener protocol.
|
CreateListenerRequest |
withProtocol(String protocol)
The listener protocol.
|
CreateListenerRequest |
withServiceIdentifier(String serviceIdentifier)
The ID or Amazon Resource Name (ARN) of the service.
|
CreateListenerRequest |
withTags(Map<String,String> tags)
The tags for the listener.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you
retry a request that completed successfully using the same client token and parameters, the retry succeeds
without performing any actions. If the parameters aren't identical, the retry fails.public String getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.
public CreateListenerRequest withClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you
retry a request that completed successfully using the same client token and parameters, the retry succeeds
without performing any actions. If the parameters aren't identical, the retry fails.public void setDefaultAction(RuleAction defaultAction)
The action for the default rule. Each listener has a default rule. The default rule is used if no other rules match.
defaultAction
- The action for the default rule. Each listener has a default rule. The default rule is used if no other
rules match.public RuleAction getDefaultAction()
The action for the default rule. Each listener has a default rule. The default rule is used if no other rules match.
public CreateListenerRequest withDefaultAction(RuleAction defaultAction)
The action for the default rule. Each listener has a default rule. The default rule is used if no other rules match.
defaultAction
- The action for the default rule. Each listener has a default rule. The default rule is used if no other
rules match.public void setName(String name)
The name of the listener. A listener name must be unique within a service. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
name
- The name of the listener. A listener name must be unique within a service. The valid characters are a-z,
0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another
hyphen.public String getName()
The name of the listener. A listener name must be unique within a service. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
public CreateListenerRequest withName(String name)
The name of the listener. A listener name must be unique within a service. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
name
- The name of the listener. A listener name must be unique within a service. The valid characters are a-z,
0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another
hyphen.public void setPort(Integer port)
The listener port. You can specify a value from 1 to 65535. For HTTP, the default is 80. For HTTPS, the default is 443.
port
- The listener port. You can specify a value from 1 to 65535. For HTTP, the default is 80. For HTTPS, the
default is 443.public Integer getPort()
The listener port. You can specify a value from 1 to 65535. For HTTP, the default is 80. For HTTPS, the default is 443.
public CreateListenerRequest withPort(Integer port)
The listener port. You can specify a value from 1 to 65535. For HTTP, the default is 80. For HTTPS, the default is 443.
port
- The listener port. You can specify a value from 1 to 65535. For HTTP, the default is 80. For HTTPS, the
default is 443.public void setProtocol(String protocol)
The listener protocol.
protocol
- The listener protocol.ListenerProtocol
public String getProtocol()
The listener protocol.
ListenerProtocol
public CreateListenerRequest withProtocol(String protocol)
The listener protocol.
protocol
- The listener protocol.ListenerProtocol
public CreateListenerRequest withProtocol(ListenerProtocol protocol)
The listener protocol.
protocol
- The listener protocol.ListenerProtocol
public void setServiceIdentifier(String serviceIdentifier)
The ID or Amazon Resource Name (ARN) of the service.
serviceIdentifier
- The ID or Amazon Resource Name (ARN) of the service.public String getServiceIdentifier()
The ID or Amazon Resource Name (ARN) of the service.
public CreateListenerRequest withServiceIdentifier(String serviceIdentifier)
The ID or Amazon Resource Name (ARN) of the service.
serviceIdentifier
- The ID or Amazon Resource Name (ARN) of the service.public Map<String,String> getTags()
The tags for the listener.
public void setTags(Map<String,String> tags)
The tags for the listener.
tags
- The tags for the listener.public CreateListenerRequest withTags(Map<String,String> tags)
The tags for the listener.
tags
- The tags for the listener.public CreateListenerRequest addTagsEntry(String key, String value)
public CreateListenerRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateListenerRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()