All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.networkfirewall.model.UpdateRuleGroupRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Network Firewall module holds the client classes that are used for communicating with AWS Network Firewall Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.networkfirewall.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS
 *      API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateRuleGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule * group. The token marks the state of the rule group resource at the time of the request. *

*

* To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to * ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation fails * with an InvalidTokenException. If this happens, retrieve the rule group again to get a current copy * of it with a current token. Reapply your changes as needed, then try the operation again using the new token. *

*/ private String updateToken; /** *

* The Amazon Resource Name (ARN) of the rule group. *

*

* You must specify the ARN or the name, and you can specify both. *

*/ private String ruleGroupArn; /** *

* The descriptive name of the rule group. You can't change the name of a rule group after you create it. *

*

* You must specify the ARN or the name, and you can specify both. *

*/ private String ruleGroupName; /** *

* An object that defines the rule group rules. *

* *

* You must provide either this rule group setting or a Rules setting, but not both. *

*
*/ private RuleGroup ruleGroup; /** *

* A string containing stateful rule group rules specifications in Suricata flat format, with one rule per line. Use * this to import your existing Suricata compatible rule groups. *

* *

* You must provide either this rules setting or a populated RuleGroup setting, but not both. *

*
*

* You can provide your rule group specification in Suricata flat format through this setting when you create or * update your rule group. The call response returns a RuleGroup object that Network Firewall has populated * from your string. *

*/ private String rules; /** *

* Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless * rules. If it is stateful, it contains stateful rules. *

* *

* This setting is required for requests that do not include the RuleGroupARN. *

*
*/ private String type; /** *

* A description of the rule group. *

*/ private String description; /** *

* Indicates whether you want Network Firewall to just check the validity of the request, rather than run the * request. *

*

* If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request would return if you ran it with * dry run set to FALSE, but doesn't make additions or changes to your resources. This option allows * you to make sure that you have the required permissions to run the request and that your request parameters are * valid. *

*

* If set to FALSE, Network Firewall makes the requested changes to your resources. *

*/ private Boolean dryRun; /** *

* A complex type that contains settings for encryption of your rule group resources. *

*/ private EncryptionConfiguration encryptionConfiguration; /** *

* A complex type that contains metadata about the rule group that your own rule group is copied from. You can use * the metadata to keep track of updates made to the originating rule group. *

*/ private SourceMetadata sourceMetadata; /** *

* Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule behavior * such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and then updates the * rule group for you. To run the stateless rule group analyzer without updating the rule group, set * DryRun to TRUE. *

*/ private Boolean analyzeRuleGroup; /** *

* A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule * group. The token marks the state of the rule group resource at the time of the request. *

*

* To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to * ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation fails * with an InvalidTokenException. If this happens, retrieve the rule group again to get a current copy * of it with a current token. Reapply your changes as needed, then try the operation again using the new token. *

* * @param updateToken * A token used for optimistic locking. Network Firewall returns a token to your requests that access the * rule group. The token marks the state of the rule group resource at the time of the request.

*

* To make changes to the rule group, you provide the token in your request. Network Firewall uses the token * to ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation * fails with an InvalidTokenException. If this happens, retrieve the rule group again to get a * current copy of it with a current token. Reapply your changes as needed, then try the operation again * using the new token. */ public void setUpdateToken(String updateToken) { this.updateToken = updateToken; } /** *

* A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule * group. The token marks the state of the rule group resource at the time of the request. *

*

* To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to * ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation fails * with an InvalidTokenException. If this happens, retrieve the rule group again to get a current copy * of it with a current token. Reapply your changes as needed, then try the operation again using the new token. *

* * @return A token used for optimistic locking. Network Firewall returns a token to your requests that access the * rule group. The token marks the state of the rule group resource at the time of the request.

*

* To make changes to the rule group, you provide the token in your request. Network Firewall uses the token * to ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the * operation fails with an InvalidTokenException. If this happens, retrieve the rule group * again to get a current copy of it with a current token. Reapply your changes as needed, then try the * operation again using the new token. */ public String getUpdateToken() { return this.updateToken; } /** *

* A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule * group. The token marks the state of the rule group resource at the time of the request. *

*

* To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to * ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation fails * with an InvalidTokenException. If this happens, retrieve the rule group again to get a current copy * of it with a current token. Reapply your changes as needed, then try the operation again using the new token. *

* * @param updateToken * A token used for optimistic locking. Network Firewall returns a token to your requests that access the * rule group. The token marks the state of the rule group resource at the time of the request.

*

* To make changes to the rule group, you provide the token in your request. Network Firewall uses the token * to ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation * fails with an InvalidTokenException. If this happens, retrieve the rule group again to get a * current copy of it with a current token. Reapply your changes as needed, then try the operation again * using the new token. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withUpdateToken(String updateToken) { setUpdateToken(updateToken); return this; } /** *

* The Amazon Resource Name (ARN) of the rule group. *

*

* You must specify the ARN or the name, and you can specify both. *

* * @param ruleGroupArn * The Amazon Resource Name (ARN) of the rule group.

*

* You must specify the ARN or the name, and you can specify both. */ public void setRuleGroupArn(String ruleGroupArn) { this.ruleGroupArn = ruleGroupArn; } /** *

* The Amazon Resource Name (ARN) of the rule group. *

*

* You must specify the ARN or the name, and you can specify both. *

* * @return The Amazon Resource Name (ARN) of the rule group.

*

* You must specify the ARN or the name, and you can specify both. */ public String getRuleGroupArn() { return this.ruleGroupArn; } /** *

* The Amazon Resource Name (ARN) of the rule group. *

*

* You must specify the ARN or the name, and you can specify both. *

* * @param ruleGroupArn * The Amazon Resource Name (ARN) of the rule group.

*

* You must specify the ARN or the name, and you can specify both. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withRuleGroupArn(String ruleGroupArn) { setRuleGroupArn(ruleGroupArn); return this; } /** *

* The descriptive name of the rule group. You can't change the name of a rule group after you create it. *

*

* You must specify the ARN or the name, and you can specify both. *

* * @param ruleGroupName * The descriptive name of the rule group. You can't change the name of a rule group after you create it.

*

* You must specify the ARN or the name, and you can specify both. */ public void setRuleGroupName(String ruleGroupName) { this.ruleGroupName = ruleGroupName; } /** *

* The descriptive name of the rule group. You can't change the name of a rule group after you create it. *

*

* You must specify the ARN or the name, and you can specify both. *

* * @return The descriptive name of the rule group. You can't change the name of a rule group after you create * it.

*

* You must specify the ARN or the name, and you can specify both. */ public String getRuleGroupName() { return this.ruleGroupName; } /** *

* The descriptive name of the rule group. You can't change the name of a rule group after you create it. *

*

* You must specify the ARN or the name, and you can specify both. *

* * @param ruleGroupName * The descriptive name of the rule group. You can't change the name of a rule group after you create it.

*

* You must specify the ARN or the name, and you can specify both. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withRuleGroupName(String ruleGroupName) { setRuleGroupName(ruleGroupName); return this; } /** *

* An object that defines the rule group rules. *

* *

* You must provide either this rule group setting or a Rules setting, but not both. *

*
* * @param ruleGroup * An object that defines the rule group rules.

*

* You must provide either this rule group setting or a Rules setting, but not both. *

*/ public void setRuleGroup(RuleGroup ruleGroup) { this.ruleGroup = ruleGroup; } /** *

* An object that defines the rule group rules. *

* *

* You must provide either this rule group setting or a Rules setting, but not both. *

*
* * @return An object that defines the rule group rules.

*

* You must provide either this rule group setting or a Rules setting, but not both. *

*/ public RuleGroup getRuleGroup() { return this.ruleGroup; } /** *

* An object that defines the rule group rules. *

* *

* You must provide either this rule group setting or a Rules setting, but not both. *

*
* * @param ruleGroup * An object that defines the rule group rules.

*

* You must provide either this rule group setting or a Rules setting, but not both. *

* @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withRuleGroup(RuleGroup ruleGroup) { setRuleGroup(ruleGroup); return this; } /** *

* A string containing stateful rule group rules specifications in Suricata flat format, with one rule per line. Use * this to import your existing Suricata compatible rule groups. *

* *

* You must provide either this rules setting or a populated RuleGroup setting, but not both. *

*
*

* You can provide your rule group specification in Suricata flat format through this setting when you create or * update your rule group. The call response returns a RuleGroup object that Network Firewall has populated * from your string. *

* * @param rules * A string containing stateful rule group rules specifications in Suricata flat format, with one rule per * line. Use this to import your existing Suricata compatible rule groups.

*

* You must provide either this rules setting or a populated RuleGroup setting, but not both. *

*
*

* You can provide your rule group specification in Suricata flat format through this setting when you create * or update your rule group. The call response returns a RuleGroup object that Network Firewall has * populated from your string. */ public void setRules(String rules) { this.rules = rules; } /** *

* A string containing stateful rule group rules specifications in Suricata flat format, with one rule per line. Use * this to import your existing Suricata compatible rule groups. *

* *

* You must provide either this rules setting or a populated RuleGroup setting, but not both. *

*
*

* You can provide your rule group specification in Suricata flat format through this setting when you create or * update your rule group. The call response returns a RuleGroup object that Network Firewall has populated * from your string. *

* * @return A string containing stateful rule group rules specifications in Suricata flat format, with one rule per * line. Use this to import your existing Suricata compatible rule groups.

*

* You must provide either this rules setting or a populated RuleGroup setting, but not both. *

*
*

* You can provide your rule group specification in Suricata flat format through this setting when you * create or update your rule group. The call response returns a RuleGroup object that Network * Firewall has populated from your string. */ public String getRules() { return this.rules; } /** *

* A string containing stateful rule group rules specifications in Suricata flat format, with one rule per line. Use * this to import your existing Suricata compatible rule groups. *

* *

* You must provide either this rules setting or a populated RuleGroup setting, but not both. *

*
*

* You can provide your rule group specification in Suricata flat format through this setting when you create or * update your rule group. The call response returns a RuleGroup object that Network Firewall has populated * from your string. *

* * @param rules * A string containing stateful rule group rules specifications in Suricata flat format, with one rule per * line. Use this to import your existing Suricata compatible rule groups.

*

* You must provide either this rules setting or a populated RuleGroup setting, but not both. *

*
*

* You can provide your rule group specification in Suricata flat format through this setting when you create * or update your rule group. The call response returns a RuleGroup object that Network Firewall has * populated from your string. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withRules(String rules) { setRules(rules); return this; } /** *

* Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless * rules. If it is stateful, it contains stateful rules. *

* *

* This setting is required for requests that do not include the RuleGroupARN. *

*
* * @param type * Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains * stateless rules. If it is stateful, it contains stateful rules.

*

* This setting is required for requests that do not include the RuleGroupARN. *

* @see RuleGroupType */ public void setType(String type) { this.type = type; } /** *

* Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless * rules. If it is stateful, it contains stateful rules. *

* *

* This setting is required for requests that do not include the RuleGroupARN. *

*
* * @return Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains * stateless rules. If it is stateful, it contains stateful rules.

*

* This setting is required for requests that do not include the RuleGroupARN. *

* @see RuleGroupType */ public String getType() { return this.type; } /** *

* Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless * rules. If it is stateful, it contains stateful rules. *

* *

* This setting is required for requests that do not include the RuleGroupARN. *

*
* * @param type * Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains * stateless rules. If it is stateful, it contains stateful rules.

*

* This setting is required for requests that do not include the RuleGroupARN. *

* @return Returns a reference to this object so that method calls can be chained together. * @see RuleGroupType */ public UpdateRuleGroupRequest withType(String type) { setType(type); return this; } /** *

* Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless * rules. If it is stateful, it contains stateful rules. *

* *

* This setting is required for requests that do not include the RuleGroupARN. *

*
* * @param type * Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains * stateless rules. If it is stateful, it contains stateful rules.

*

* This setting is required for requests that do not include the RuleGroupARN. *

* @return Returns a reference to this object so that method calls can be chained together. * @see RuleGroupType */ public UpdateRuleGroupRequest withType(RuleGroupType type) { this.type = type.toString(); return this; } /** *

* A description of the rule group. *

* * @param description * A description of the rule group. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the rule group. *

* * @return A description of the rule group. */ public String getDescription() { return this.description; } /** *

* A description of the rule group. *

* * @param description * A description of the rule group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withDescription(String description) { setDescription(description); return this; } /** *

* Indicates whether you want Network Firewall to just check the validity of the request, rather than run the * request. *

*

* If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request would return if you ran it with * dry run set to FALSE, but doesn't make additions or changes to your resources. This option allows * you to make sure that you have the required permissions to run the request and that your request parameters are * valid. *

*

* If set to FALSE, Network Firewall makes the requested changes to your resources. *

* * @param dryRun * Indicates whether you want Network Firewall to just check the validity of the request, rather than run the * request.

*

* If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request would return if you ran * it with dry run set to FALSE, but doesn't make additions or changes to your resources. This * option allows you to make sure that you have the required permissions to run the request and that your * request parameters are valid. *

*

* If set to FALSE, Network Firewall makes the requested changes to your resources. */ public void setDryRun(Boolean dryRun) { this.dryRun = dryRun; } /** *

* Indicates whether you want Network Firewall to just check the validity of the request, rather than run the * request. *

*

* If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request would return if you ran it with * dry run set to FALSE, but doesn't make additions or changes to your resources. This option allows * you to make sure that you have the required permissions to run the request and that your request parameters are * valid. *

*

* If set to FALSE, Network Firewall makes the requested changes to your resources. *

* * @return Indicates whether you want Network Firewall to just check the validity of the request, rather than run * the request.

*

* If set to TRUE, Network Firewall checks whether the request can run successfully, but * doesn't actually make the requested changes. The call returns the value that the request would return if * you ran it with dry run set to FALSE, but doesn't make additions or changes to your * resources. This option allows you to make sure that you have the required permissions to run the request * and that your request parameters are valid. *

*

* If set to FALSE, Network Firewall makes the requested changes to your resources. */ public Boolean getDryRun() { return this.dryRun; } /** *

* Indicates whether you want Network Firewall to just check the validity of the request, rather than run the * request. *

*

* If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request would return if you ran it with * dry run set to FALSE, but doesn't make additions or changes to your resources. This option allows * you to make sure that you have the required permissions to run the request and that your request parameters are * valid. *

*

* If set to FALSE, Network Firewall makes the requested changes to your resources. *

* * @param dryRun * Indicates whether you want Network Firewall to just check the validity of the request, rather than run the * request.

*

* If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request would return if you ran * it with dry run set to FALSE, but doesn't make additions or changes to your resources. This * option allows you to make sure that you have the required permissions to run the request and that your * request parameters are valid. *

*

* If set to FALSE, Network Firewall makes the requested changes to your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withDryRun(Boolean dryRun) { setDryRun(dryRun); return this; } /** *

* Indicates whether you want Network Firewall to just check the validity of the request, rather than run the * request. *

*

* If set to TRUE, Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request would return if you ran it with * dry run set to FALSE, but doesn't make additions or changes to your resources. This option allows * you to make sure that you have the required permissions to run the request and that your request parameters are * valid. *

*

* If set to FALSE, Network Firewall makes the requested changes to your resources. *

* * @return Indicates whether you want Network Firewall to just check the validity of the request, rather than run * the request.

*

* If set to TRUE, Network Firewall checks whether the request can run successfully, but * doesn't actually make the requested changes. The call returns the value that the request would return if * you ran it with dry run set to FALSE, but doesn't make additions or changes to your * resources. This option allows you to make sure that you have the required permissions to run the request * and that your request parameters are valid. *

*

* If set to FALSE, Network Firewall makes the requested changes to your resources. */ public Boolean isDryRun() { return this.dryRun; } /** *

* A complex type that contains settings for encryption of your rule group resources. *

* * @param encryptionConfiguration * A complex type that contains settings for encryption of your rule group resources. */ public void setEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration) { this.encryptionConfiguration = encryptionConfiguration; } /** *

* A complex type that contains settings for encryption of your rule group resources. *

* * @return A complex type that contains settings for encryption of your rule group resources. */ public EncryptionConfiguration getEncryptionConfiguration() { return this.encryptionConfiguration; } /** *

* A complex type that contains settings for encryption of your rule group resources. *

* * @param encryptionConfiguration * A complex type that contains settings for encryption of your rule group resources. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withEncryptionConfiguration(EncryptionConfiguration encryptionConfiguration) { setEncryptionConfiguration(encryptionConfiguration); return this; } /** *

* A complex type that contains metadata about the rule group that your own rule group is copied from. You can use * the metadata to keep track of updates made to the originating rule group. *

* * @param sourceMetadata * A complex type that contains metadata about the rule group that your own rule group is copied from. You * can use the metadata to keep track of updates made to the originating rule group. */ public void setSourceMetadata(SourceMetadata sourceMetadata) { this.sourceMetadata = sourceMetadata; } /** *

* A complex type that contains metadata about the rule group that your own rule group is copied from. You can use * the metadata to keep track of updates made to the originating rule group. *

* * @return A complex type that contains metadata about the rule group that your own rule group is copied from. You * can use the metadata to keep track of updates made to the originating rule group. */ public SourceMetadata getSourceMetadata() { return this.sourceMetadata; } /** *

* A complex type that contains metadata about the rule group that your own rule group is copied from. You can use * the metadata to keep track of updates made to the originating rule group. *

* * @param sourceMetadata * A complex type that contains metadata about the rule group that your own rule group is copied from. You * can use the metadata to keep track of updates made to the originating rule group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withSourceMetadata(SourceMetadata sourceMetadata) { setSourceMetadata(sourceMetadata); return this; } /** *

* Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule behavior * such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and then updates the * rule group for you. To run the stateless rule group analyzer without updating the rule group, set * DryRun to TRUE. *

* * @param analyzeRuleGroup * Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule * behavior such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and * then updates the rule group for you. To run the stateless rule group analyzer without updating the rule * group, set DryRun to TRUE. */ public void setAnalyzeRuleGroup(Boolean analyzeRuleGroup) { this.analyzeRuleGroup = analyzeRuleGroup; } /** *

* Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule behavior * such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and then updates the * rule group for you. To run the stateless rule group analyzer without updating the rule group, set * DryRun to TRUE. *

* * @return Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule * behavior such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and * then updates the rule group for you. To run the stateless rule group analyzer without updating the rule * group, set DryRun to TRUE. */ public Boolean getAnalyzeRuleGroup() { return this.analyzeRuleGroup; } /** *

* Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule behavior * such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and then updates the * rule group for you. To run the stateless rule group analyzer without updating the rule group, set * DryRun to TRUE. *

* * @param analyzeRuleGroup * Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule * behavior such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and * then updates the rule group for you. To run the stateless rule group analyzer without updating the rule * group, set DryRun to TRUE. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateRuleGroupRequest withAnalyzeRuleGroup(Boolean analyzeRuleGroup) { setAnalyzeRuleGroup(analyzeRuleGroup); return this; } /** *

* Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule behavior * such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and then updates the * rule group for you. To run the stateless rule group analyzer without updating the rule group, set * DryRun to TRUE. *

* * @return Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule * behavior such as asymmetric routing. If set to TRUE, Network Firewall runs the analysis and * then updates the rule group for you. To run the stateless rule group analyzer without updating the rule * group, set DryRun to TRUE. */ public Boolean isAnalyzeRuleGroup() { return this.analyzeRuleGroup; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getUpdateToken() != null) sb.append("UpdateToken: ").append(getUpdateToken()).append(","); if (getRuleGroupArn() != null) sb.append("RuleGroupArn: ").append(getRuleGroupArn()).append(","); if (getRuleGroupName() != null) sb.append("RuleGroupName: ").append(getRuleGroupName()).append(","); if (getRuleGroup() != null) sb.append("RuleGroup: ").append(getRuleGroup()).append(","); if (getRules() != null) sb.append("Rules: ").append(getRules()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getDryRun() != null) sb.append("DryRun: ").append(getDryRun()).append(","); if (getEncryptionConfiguration() != null) sb.append("EncryptionConfiguration: ").append(getEncryptionConfiguration()).append(","); if (getSourceMetadata() != null) sb.append("SourceMetadata: ").append(getSourceMetadata()).append(","); if (getAnalyzeRuleGroup() != null) sb.append("AnalyzeRuleGroup: ").append(getAnalyzeRuleGroup()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateRuleGroupRequest == false) return false; UpdateRuleGroupRequest other = (UpdateRuleGroupRequest) obj; if (other.getUpdateToken() == null ^ this.getUpdateToken() == null) return false; if (other.getUpdateToken() != null && other.getUpdateToken().equals(this.getUpdateToken()) == false) return false; if (other.getRuleGroupArn() == null ^ this.getRuleGroupArn() == null) return false; if (other.getRuleGroupArn() != null && other.getRuleGroupArn().equals(this.getRuleGroupArn()) == false) return false; if (other.getRuleGroupName() == null ^ this.getRuleGroupName() == null) return false; if (other.getRuleGroupName() != null && other.getRuleGroupName().equals(this.getRuleGroupName()) == false) return false; if (other.getRuleGroup() == null ^ this.getRuleGroup() == null) return false; if (other.getRuleGroup() != null && other.getRuleGroup().equals(this.getRuleGroup()) == false) return false; if (other.getRules() == null ^ this.getRules() == null) return false; if (other.getRules() != null && other.getRules().equals(this.getRules()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDryRun() == null ^ this.getDryRun() == null) return false; if (other.getDryRun() != null && other.getDryRun().equals(this.getDryRun()) == false) return false; if (other.getEncryptionConfiguration() == null ^ this.getEncryptionConfiguration() == null) return false; if (other.getEncryptionConfiguration() != null && other.getEncryptionConfiguration().equals(this.getEncryptionConfiguration()) == false) return false; if (other.getSourceMetadata() == null ^ this.getSourceMetadata() == null) return false; if (other.getSourceMetadata() != null && other.getSourceMetadata().equals(this.getSourceMetadata()) == false) return false; if (other.getAnalyzeRuleGroup() == null ^ this.getAnalyzeRuleGroup() == null) return false; if (other.getAnalyzeRuleGroup() != null && other.getAnalyzeRuleGroup().equals(this.getAnalyzeRuleGroup()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUpdateToken() == null) ? 0 : getUpdateToken().hashCode()); hashCode = prime * hashCode + ((getRuleGroupArn() == null) ? 0 : getRuleGroupArn().hashCode()); hashCode = prime * hashCode + ((getRuleGroupName() == null) ? 0 : getRuleGroupName().hashCode()); hashCode = prime * hashCode + ((getRuleGroup() == null) ? 0 : getRuleGroup().hashCode()); hashCode = prime * hashCode + ((getRules() == null) ? 0 : getRules().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDryRun() == null) ? 0 : getDryRun().hashCode()); hashCode = prime * hashCode + ((getEncryptionConfiguration() == null) ? 0 : getEncryptionConfiguration().hashCode()); hashCode = prime * hashCode + ((getSourceMetadata() == null) ? 0 : getSourceMetadata().hashCode()); hashCode = prime * hashCode + ((getAnalyzeRuleGroup() == null) ? 0 : getAnalyzeRuleGroup().hashCode()); return hashCode; } @Override public UpdateRuleGroupRequest clone() { return (UpdateRuleGroupRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy