Interface CreateRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateRuleRequest.Builder,,CreateRuleRequest> NetworkSecurityManagerRequest.Builder,SdkBuilder<CreateRuleRequest.Builder,,CreateRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time.configuration(Document configuration) The firewall configuration for the rule, as a JSON document.firewallType(String firewallType) The firewall type associated with the resource.firewallType(RuleFirewallType firewallType) The firewall type associated with the resource.isPublished(Boolean isPublished) Specifies whether to publish the resource.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.ruleDescription(String ruleDescription) A description of the rule.The name of the rule.The type of the rule.The type of the rule.The tags to add to the resource when it is created.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.networksecuritymanager.model.NetworkSecurityManagerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.
- Parameters:
clientToken- A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleName
The name of the rule.
- Parameters:
ruleName- The name of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
firewallType
The firewall type associated with the resource.
- Parameters:
firewallType- The firewall type associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
firewallType
The firewall type associated with the resource.
- Parameters:
firewallType- The firewall type associated with the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleType
The type of the rule.
CONFIGURATIONrules contain firewall settings, andINSPECTIONrules contain rule groups.- Parameters:
ruleType- The type of the rule.CONFIGURATIONrules contain firewall settings, andINSPECTIONrules contain rule groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleType
The type of the rule.
CONFIGURATIONrules contain firewall settings, andINSPECTIONrules contain rule groups.- Parameters:
ruleType- The type of the rule.CONFIGURATIONrules contain firewall settings, andINSPECTIONrules contain rule groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleDescription
A description of the rule.
- Parameters:
ruleDescription- A description of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
The firewall configuration for the rule, as a JSON document. The structure depends on the rule's firewall type and rule type. For an AWS WAF
INSPECTIONrule, provide an AWS WAF rule group. For an AWS WAFCONFIGURATIONrule, provide a single web ACL setting, such asDefaultActionorVisibilityConfig; usewafConfigDataTypeto declare which setting the document contains. For the schema of each setting and complete examples, see Writing rule configurations in the AWS Network Security Manager Developer Guide.- Parameters:
configuration- The firewall configuration for the rule, as a JSON document. The structure depends on the rule's firewall type and rule type. For an AWS WAFINSPECTIONrule, provide an AWS WAF rule group. For an AWS WAFCONFIGURATIONrule, provide a single web ACL setting, such asDefaultActionorVisibilityConfig; usewafConfigDataTypeto declare which setting the document contains. For the schema of each setting and complete examples, see Writing rule configurations in the AWS Network Security Manager Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPublished
Specifies whether to publish the resource. When
true, the resource is saved in published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT). Default:true.- Parameters:
isPublished- Specifies whether to publish the resource. Whentrue, the resource is saved in published (ACTIVE) state. Whenfalse, it is saved as a draft (DRAFT). Default:true.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags to add to the resource when it is created.
- Parameters:
tags- The tags to add to the resource when it is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-