public static final class CfnListenerRule.RuleConditionProperty.Builder
extends java.lang.Object
CfnListenerRule.RuleConditionProperty
Constructor and Description |
---|
Builder() |
public CfnListenerRule.RuleConditionProperty.Builder field(java.lang.String field)
CfnListenerRule.RuleConditionProperty.getField()
field
- The field in the HTTP request. The following are the possible values:.
http-header
http-request-method
host-header
path-pattern
query-string
source-ip
this
public CfnListenerRule.RuleConditionProperty.Builder hostHeaderConfig(IResolvable hostHeaderConfig)
CfnListenerRule.RuleConditionProperty.getHostHeaderConfig()
hostHeaderConfig
- Information for a host header condition.
Specify only when Field
is host-header
.this
public CfnListenerRule.RuleConditionProperty.Builder hostHeaderConfig(CfnListenerRule.HostHeaderConfigProperty hostHeaderConfig)
CfnListenerRule.RuleConditionProperty.getHostHeaderConfig()
hostHeaderConfig
- Information for a host header condition.
Specify only when Field
is host-header
.this
public CfnListenerRule.RuleConditionProperty.Builder httpHeaderConfig(IResolvable httpHeaderConfig)
CfnListenerRule.RuleConditionProperty.getHttpHeaderConfig()
httpHeaderConfig
- Information for an HTTP header condition.
Specify only when Field
is http-header
.this
public CfnListenerRule.RuleConditionProperty.Builder httpHeaderConfig(CfnListenerRule.HttpHeaderConfigProperty httpHeaderConfig)
CfnListenerRule.RuleConditionProperty.getHttpHeaderConfig()
httpHeaderConfig
- Information for an HTTP header condition.
Specify only when Field
is http-header
.this
public CfnListenerRule.RuleConditionProperty.Builder httpRequestMethodConfig(IResolvable httpRequestMethodConfig)
CfnListenerRule.RuleConditionProperty.getHttpRequestMethodConfig()
httpRequestMethodConfig
- Information for an HTTP method condition.
Specify only when Field
is http-request-method
.this
public CfnListenerRule.RuleConditionProperty.Builder httpRequestMethodConfig(CfnListenerRule.HttpRequestMethodConfigProperty httpRequestMethodConfig)
CfnListenerRule.RuleConditionProperty.getHttpRequestMethodConfig()
httpRequestMethodConfig
- Information for an HTTP method condition.
Specify only when Field
is http-request-method
.this
public CfnListenerRule.RuleConditionProperty.Builder pathPatternConfig(IResolvable pathPatternConfig)
CfnListenerRule.RuleConditionProperty.getPathPatternConfig()
pathPatternConfig
- Information for a path pattern condition.
Specify only when Field
is path-pattern
.this
public CfnListenerRule.RuleConditionProperty.Builder pathPatternConfig(CfnListenerRule.PathPatternConfigProperty pathPatternConfig)
CfnListenerRule.RuleConditionProperty.getPathPatternConfig()
pathPatternConfig
- Information for a path pattern condition.
Specify only when Field
is path-pattern
.this
public CfnListenerRule.RuleConditionProperty.Builder queryStringConfig(IResolvable queryStringConfig)
CfnListenerRule.RuleConditionProperty.getQueryStringConfig()
queryStringConfig
- Information for a query string condition.
Specify only when Field
is query-string
.this
public CfnListenerRule.RuleConditionProperty.Builder queryStringConfig(CfnListenerRule.QueryStringConfigProperty queryStringConfig)
CfnListenerRule.RuleConditionProperty.getQueryStringConfig()
queryStringConfig
- Information for a query string condition.
Specify only when Field
is query-string
.this
public CfnListenerRule.RuleConditionProperty.Builder sourceIpConfig(IResolvable sourceIpConfig)
CfnListenerRule.RuleConditionProperty.getSourceIpConfig()
sourceIpConfig
- Information for a source IP condition.
Specify only when Field
is source-ip
.this
public CfnListenerRule.RuleConditionProperty.Builder sourceIpConfig(CfnListenerRule.SourceIpConfigProperty sourceIpConfig)
CfnListenerRule.RuleConditionProperty.getSourceIpConfig()
sourceIpConfig
- Information for a source IP condition.
Specify only when Field
is source-ip
.this
public CfnListenerRule.RuleConditionProperty.Builder values(java.util.List<java.lang.String> values)
CfnListenerRule.RuleConditionProperty.getValues()
values
- The condition value.
Specify only when Field
is host-header
or path-pattern
. Alternatively, to specify multiple host names or multiple path patterns, use HostHeaderConfig
or PathPatternConfig
.
If Field
is host-header
and you're not using HostHeaderConfig
, you can specify a single host name (for example, my.example.com). A host name is case insensitive, can be up to 128 characters in length, and can contain any of the following characters.
If Field
is path-pattern
and you're not using PathPatternConfig
, you can specify a single path pattern (for example, /img/*). A path pattern is case-sensitive, can be up to 128 characters in length, and can contain any of the following characters.
this
public CfnListenerRule.RuleConditionProperty build()
CfnListenerRule.RuleConditionProperty
java.lang.NullPointerException
- if any required attribute was not provided