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

com.amazonaws.services.securityhub.model.BatchDeleteAutomationRulesResult Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2018-2023 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.securityhub.model;

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

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

    /**
     * 

* A list of properly processed rule ARNs. *

*/ private java.util.List processedAutomationRules; /** *

* A list of objects containing RuleArn, ErrorCode, and ErrorMessage. This * parameter tells you which automation rules the request didn't delete and why. *

*/ private java.util.List unprocessedAutomationRules; /** *

* A list of properly processed rule ARNs. *

* * @return A list of properly processed rule ARNs. */ public java.util.List getProcessedAutomationRules() { return processedAutomationRules; } /** *

* A list of properly processed rule ARNs. *

* * @param processedAutomationRules * A list of properly processed rule ARNs. */ public void setProcessedAutomationRules(java.util.Collection processedAutomationRules) { if (processedAutomationRules == null) { this.processedAutomationRules = null; return; } this.processedAutomationRules = new java.util.ArrayList(processedAutomationRules); } /** *

* A list of properly processed rule ARNs. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setProcessedAutomationRules(java.util.Collection)} or * {@link #withProcessedAutomationRules(java.util.Collection)} if you want to override the existing values. *

* * @param processedAutomationRules * A list of properly processed rule ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchDeleteAutomationRulesResult withProcessedAutomationRules(String... processedAutomationRules) { if (this.processedAutomationRules == null) { setProcessedAutomationRules(new java.util.ArrayList(processedAutomationRules.length)); } for (String ele : processedAutomationRules) { this.processedAutomationRules.add(ele); } return this; } /** *

* A list of properly processed rule ARNs. *

* * @param processedAutomationRules * A list of properly processed rule ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchDeleteAutomationRulesResult withProcessedAutomationRules(java.util.Collection processedAutomationRules) { setProcessedAutomationRules(processedAutomationRules); return this; } /** *

* A list of objects containing RuleArn, ErrorCode, and ErrorMessage. This * parameter tells you which automation rules the request didn't delete and why. *

* * @return A list of objects containing RuleArn, ErrorCode, and ErrorMessage. * This parameter tells you which automation rules the request didn't delete and why. */ public java.util.List getUnprocessedAutomationRules() { return unprocessedAutomationRules; } /** *

* A list of objects containing RuleArn, ErrorCode, and ErrorMessage. This * parameter tells you which automation rules the request didn't delete and why. *

* * @param unprocessedAutomationRules * A list of objects containing RuleArn, ErrorCode, and ErrorMessage. * This parameter tells you which automation rules the request didn't delete and why. */ public void setUnprocessedAutomationRules(java.util.Collection unprocessedAutomationRules) { if (unprocessedAutomationRules == null) { this.unprocessedAutomationRules = null; return; } this.unprocessedAutomationRules = new java.util.ArrayList(unprocessedAutomationRules); } /** *

* A list of objects containing RuleArn, ErrorCode, and ErrorMessage. This * parameter tells you which automation rules the request didn't delete and why. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setUnprocessedAutomationRules(java.util.Collection)} or * {@link #withUnprocessedAutomationRules(java.util.Collection)} if you want to override the existing values. *

* * @param unprocessedAutomationRules * A list of objects containing RuleArn, ErrorCode, and ErrorMessage. * This parameter tells you which automation rules the request didn't delete and why. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchDeleteAutomationRulesResult withUnprocessedAutomationRules(UnprocessedAutomationRule... unprocessedAutomationRules) { if (this.unprocessedAutomationRules == null) { setUnprocessedAutomationRules(new java.util.ArrayList(unprocessedAutomationRules.length)); } for (UnprocessedAutomationRule ele : unprocessedAutomationRules) { this.unprocessedAutomationRules.add(ele); } return this; } /** *

* A list of objects containing RuleArn, ErrorCode, and ErrorMessage. This * parameter tells you which automation rules the request didn't delete and why. *

* * @param unprocessedAutomationRules * A list of objects containing RuleArn, ErrorCode, and ErrorMessage. * This parameter tells you which automation rules the request didn't delete and why. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchDeleteAutomationRulesResult withUnprocessedAutomationRules(java.util.Collection unprocessedAutomationRules) { setUnprocessedAutomationRules(unprocessedAutomationRules); 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 (getProcessedAutomationRules() != null) sb.append("ProcessedAutomationRules: ").append(getProcessedAutomationRules()).append(","); if (getUnprocessedAutomationRules() != null) sb.append("UnprocessedAutomationRules: ").append(getUnprocessedAutomationRules()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchDeleteAutomationRulesResult == false) return false; BatchDeleteAutomationRulesResult other = (BatchDeleteAutomationRulesResult) obj; if (other.getProcessedAutomationRules() == null ^ this.getProcessedAutomationRules() == null) return false; if (other.getProcessedAutomationRules() != null && other.getProcessedAutomationRules().equals(this.getProcessedAutomationRules()) == false) return false; if (other.getUnprocessedAutomationRules() == null ^ this.getUnprocessedAutomationRules() == null) return false; if (other.getUnprocessedAutomationRules() != null && other.getUnprocessedAutomationRules().equals(this.getUnprocessedAutomationRules()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProcessedAutomationRules() == null) ? 0 : getProcessedAutomationRules().hashCode()); hashCode = prime * hashCode + ((getUnprocessedAutomationRules() == null) ? 0 : getUnprocessedAutomationRules().hashCode()); return hashCode; } @Override public BatchDeleteAutomationRulesResult clone() { try { return (BatchDeleteAutomationRulesResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy