com.amazonaws.services.wafv2.model.DeleteLoggingConfigurationRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-wafv2 Show documentation
/*
* 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.wafv2.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 DeleteLoggingConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the web ACL from which you want to delete the LoggingConfiguration.
*
*/
private String resourceArn;
/**
*
* Used to distinguish between various logging options. Currently, there is one option.
*
*
* Default: WAF_LOGS
*
*/
private String logType;
/**
*
* The owner of the logging configuration, which must be set to CUSTOMER
for the configurations that
* you manage.
*
*
* The log scope SECURITY_LAKE
indicates a configuration that is managed through Amazon Security Lake.
* You can use Security Lake to collect log and event data from various sources for normalization, analysis, and
* management. For information, see Collecting data from
* Amazon Web Services services in the Amazon Security Lake user guide.
*
*
* Default: CUSTOMER
*
*/
private String logScope;
/**
*
* The Amazon Resource Name (ARN) of the web ACL from which you want to delete the LoggingConfiguration.
*
*
* @param resourceArn
* The Amazon Resource Name (ARN) of the web ACL from which you want to delete the
* LoggingConfiguration.
*/
public void setResourceArn(String resourceArn) {
this.resourceArn = resourceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the web ACL from which you want to delete the LoggingConfiguration.
*
*
* @return The Amazon Resource Name (ARN) of the web ACL from which you want to delete the
* LoggingConfiguration.
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the web ACL from which you want to delete the LoggingConfiguration.
*
*
* @param resourceArn
* The Amazon Resource Name (ARN) of the web ACL from which you want to delete the
* LoggingConfiguration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteLoggingConfigurationRequest withResourceArn(String resourceArn) {
setResourceArn(resourceArn);
return this;
}
/**
*
* Used to distinguish between various logging options. Currently, there is one option.
*
*
* Default: WAF_LOGS
*
*
* @param logType
* Used to distinguish between various logging options. Currently, there is one option.
*
* Default: WAF_LOGS
* @see LogType
*/
public void setLogType(String logType) {
this.logType = logType;
}
/**
*
* Used to distinguish between various logging options. Currently, there is one option.
*
*
* Default: WAF_LOGS
*
*
* @return Used to distinguish between various logging options. Currently, there is one option.
*
* Default: WAF_LOGS
* @see LogType
*/
public String getLogType() {
return this.logType;
}
/**
*
* Used to distinguish between various logging options. Currently, there is one option.
*
*
* Default: WAF_LOGS
*
*
* @param logType
* Used to distinguish between various logging options. Currently, there is one option.
*
* Default: WAF_LOGS
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogType
*/
public DeleteLoggingConfigurationRequest withLogType(String logType) {
setLogType(logType);
return this;
}
/**
*
* Used to distinguish between various logging options. Currently, there is one option.
*
*
* Default: WAF_LOGS
*
*
* @param logType
* Used to distinguish between various logging options. Currently, there is one option.
*
* Default: WAF_LOGS
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogType
*/
public DeleteLoggingConfigurationRequest withLogType(LogType logType) {
this.logType = logType.toString();
return this;
}
/**
*
* The owner of the logging configuration, which must be set to CUSTOMER
for the configurations that
* you manage.
*
*
* The log scope SECURITY_LAKE
indicates a configuration that is managed through Amazon Security Lake.
* You can use Security Lake to collect log and event data from various sources for normalization, analysis, and
* management. For information, see Collecting data from
* Amazon Web Services services in the Amazon Security Lake user guide.
*
*
* Default: CUSTOMER
*
*
* @param logScope
* The owner of the logging configuration, which must be set to CUSTOMER
for the configurations
* that you manage.
*
* The log scope SECURITY_LAKE
indicates a configuration that is managed through Amazon Security
* Lake. You can use Security Lake to collect log and event data from various sources for normalization,
* analysis, and management. For information, see Collecting data
* from Amazon Web Services services in the Amazon Security Lake user guide.
*
*
* Default: CUSTOMER
* @see LogScope
*/
public void setLogScope(String logScope) {
this.logScope = logScope;
}
/**
*
* The owner of the logging configuration, which must be set to CUSTOMER
for the configurations that
* you manage.
*
*
* The log scope SECURITY_LAKE
indicates a configuration that is managed through Amazon Security Lake.
* You can use Security Lake to collect log and event data from various sources for normalization, analysis, and
* management. For information, see Collecting data from
* Amazon Web Services services in the Amazon Security Lake user guide.
*
*
* Default: CUSTOMER
*
*
* @return The owner of the logging configuration, which must be set to CUSTOMER
for the configurations
* that you manage.
*
* The log scope SECURITY_LAKE
indicates a configuration that is managed through Amazon
* Security Lake. You can use Security Lake to collect log and event data from various sources for
* normalization, analysis, and management. For information, see Collecting data
* from Amazon Web Services services in the Amazon Security Lake user guide.
*
*
* Default: CUSTOMER
* @see LogScope
*/
public String getLogScope() {
return this.logScope;
}
/**
*
* The owner of the logging configuration, which must be set to CUSTOMER
for the configurations that
* you manage.
*
*
* The log scope SECURITY_LAKE
indicates a configuration that is managed through Amazon Security Lake.
* You can use Security Lake to collect log and event data from various sources for normalization, analysis, and
* management. For information, see Collecting data from
* Amazon Web Services services in the Amazon Security Lake user guide.
*
*
* Default: CUSTOMER
*
*
* @param logScope
* The owner of the logging configuration, which must be set to CUSTOMER
for the configurations
* that you manage.
*
* The log scope SECURITY_LAKE
indicates a configuration that is managed through Amazon Security
* Lake. You can use Security Lake to collect log and event data from various sources for normalization,
* analysis, and management. For information, see Collecting data
* from Amazon Web Services services in the Amazon Security Lake user guide.
*
*
* Default: CUSTOMER
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogScope
*/
public DeleteLoggingConfigurationRequest withLogScope(String logScope) {
setLogScope(logScope);
return this;
}
/**
*
* The owner of the logging configuration, which must be set to CUSTOMER
for the configurations that
* you manage.
*
*
* The log scope SECURITY_LAKE
indicates a configuration that is managed through Amazon Security Lake.
* You can use Security Lake to collect log and event data from various sources for normalization, analysis, and
* management. For information, see Collecting data from
* Amazon Web Services services in the Amazon Security Lake user guide.
*
*
* Default: CUSTOMER
*
*
* @param logScope
* The owner of the logging configuration, which must be set to CUSTOMER
for the configurations
* that you manage.
*
* The log scope SECURITY_LAKE
indicates a configuration that is managed through Amazon Security
* Lake. You can use Security Lake to collect log and event data from various sources for normalization,
* analysis, and management. For information, see Collecting data
* from Amazon Web Services services in the Amazon Security Lake user guide.
*
*
* Default: CUSTOMER
* @return Returns a reference to this object so that method calls can be chained together.
* @see LogScope
*/
public DeleteLoggingConfigurationRequest withLogScope(LogScope logScope) {
this.logScope = logScope.toString();
return this;
}
/**
* 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 (getResourceArn() != null)
sb.append("ResourceArn: ").append(getResourceArn()).append(",");
if (getLogType() != null)
sb.append("LogType: ").append(getLogType()).append(",");
if (getLogScope() != null)
sb.append("LogScope: ").append(getLogScope());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteLoggingConfigurationRequest == false)
return false;
DeleteLoggingConfigurationRequest other = (DeleteLoggingConfigurationRequest) obj;
if (other.getResourceArn() == null ^ this.getResourceArn() == null)
return false;
if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false)
return false;
if (other.getLogType() == null ^ this.getLogType() == null)
return false;
if (other.getLogType() != null && other.getLogType().equals(this.getLogType()) == false)
return false;
if (other.getLogScope() == null ^ this.getLogScope() == null)
return false;
if (other.getLogScope() != null && other.getLogScope().equals(this.getLogScope()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode());
hashCode = prime * hashCode + ((getLogType() == null) ? 0 : getLogType().hashCode());
hashCode = prime * hashCode + ((getLogScope() == null) ? 0 : getLogScope().hashCode());
return hashCode;
}
@Override
public DeleteLoggingConfigurationRequest clone() {
return (DeleteLoggingConfigurationRequest) super.clone();
}
}