@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) |
boolean |
hasActions()
Returns true if the Actions property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
boolean |
hasConditions()
Returns true if the Conditions property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
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 boolean hasConditions()
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.
You can use hasConditions() to see if a value was sent in this field.
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 boolean hasActions()
public List<Action> actions()
The actions. Each rule must include exactly one of the following types of actions: forward,
fixed-response, or redirect, and it must be the last action to be performed.
If the action type is forward, you specify one or more target groups. 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.
You can use hasActions() to see if a value was sent in this field.
forward,
fixed-response, or redirect, and it must be the last action to be
performed.
If the action type is forward, you specify one or more target groups. 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 © 2020. All rights reserved.