@Generated(value="software.amazon.awssdk:codegen") public final class CreateRuleRequest extends ElasticLoadBalancingV2Request implements ToCopyableBuilder<CreateRuleRequest.Builder,CreateRuleRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateRuleRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<Action> |
actions()
The actions.
|
static CreateRuleRequest.Builder |
builder() |
List<RuleCondition> |
conditions()
The conditions.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
listenerArn()
The Amazon Resource Name (ARN) of the listener.
|
Integer |
priority()
The rule priority.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateRuleRequest.Builder> |
serializableBuilderClass() |
CreateRuleRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String listenerArn()
The Amazon Resource Name (ARN) of the listener.
public List<RuleCondition> conditions()
The conditions. Each rule can include zero or one of the following conditions: http-request-method,
host-header, path-pattern, and source-ip, and zero or more of the
following conditions: http-header and query-string.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
http-request-method, host-header, path-pattern, and
source-ip, and zero or more of the following conditions: http-header and
query-string.public Integer priority()
The rule priority. A listener can't have multiple rules with the same priority.
public List<Action> actions()
The actions. Each rule must include exactly one of the following types of actions: forward,
fixed-response, or redirect.
If the action type is forward, you specify a target group. The protocol of the target group must be
HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must be TCP, TLS, UDP, or
TCP_UDP for a Network Load Balancer.
[HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
identity provider that is OpenID Connect (OIDC) compliant.
[HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through the
user pools supported by Amazon Cognito.
[Application Load Balancer] If the action type is redirect, you redirect specified client requests
from one URL to another.
[Application Load Balancer] If the action type is fixed-response, you drop specified client requests
and return a custom HTTP response.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
forward,
fixed-response, or redirect.
If the action type is forward, you specify a target group. The protocol of the target group
must be HTTP or HTTPS for an Application Load Balancer. The protocol of the target group must be TCP,
TLS, UDP, or TCP_UDP for a Network Load Balancer.
[HTTPS listeners] If the action type is authenticate-oidc, you authenticate users through an
identity provider that is OpenID Connect (OIDC) compliant.
[HTTPS listeners] If the action type is authenticate-cognito, you authenticate users through
the user pools supported by Amazon Cognito.
[Application Load Balancer] If the action type is redirect, you redirect specified client
requests from one URL to another.
[Application Load Balancer] If the action type is fixed-response, you drop specified client
requests and return a custom HTTP response.
public CreateRuleRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateRuleRequest.Builder,CreateRuleRequest>toBuilder in class ElasticLoadBalancingV2Requestpublic static CreateRuleRequest.Builder builder()
public static Class<? extends CreateRuleRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2019. All rights reserved.