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

com.amazonaws.services.securitylake.model.DataLakeException Maven / Gradle / Ivy

/*
 * 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.securitylake.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The details for an Amazon Security Lake exception. *

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

* The underlying exception of a Security Lake exception. *

*/ private String exception; /** *

* The Amazon Web Services Regions where the exception occurred. *

*/ private String region; /** *

* List of all remediation steps for a Security Lake exception. *

*/ private String remediation; /** *

* This error can occur if you configure the wrong timestamp format, or if the subset of entries used for validation * had errors or missing values. *

*/ private java.util.Date timestamp; /** *

* The underlying exception of a Security Lake exception. *

* * @param exception * The underlying exception of a Security Lake exception. */ public void setException(String exception) { this.exception = exception; } /** *

* The underlying exception of a Security Lake exception. *

* * @return The underlying exception of a Security Lake exception. */ public String getException() { return this.exception; } /** *

* The underlying exception of a Security Lake exception. *

* * @param exception * The underlying exception of a Security Lake exception. * @return Returns a reference to this object so that method calls can be chained together. */ public DataLakeException withException(String exception) { setException(exception); return this; } /** *

* The Amazon Web Services Regions where the exception occurred. *

* * @param region * The Amazon Web Services Regions where the exception occurred. */ public void setRegion(String region) { this.region = region; } /** *

* The Amazon Web Services Regions where the exception occurred. *

* * @return The Amazon Web Services Regions where the exception occurred. */ public String getRegion() { return this.region; } /** *

* The Amazon Web Services Regions where the exception occurred. *

* * @param region * The Amazon Web Services Regions where the exception occurred. * @return Returns a reference to this object so that method calls can be chained together. */ public DataLakeException withRegion(String region) { setRegion(region); return this; } /** *

* List of all remediation steps for a Security Lake exception. *

* * @param remediation * List of all remediation steps for a Security Lake exception. */ public void setRemediation(String remediation) { this.remediation = remediation; } /** *

* List of all remediation steps for a Security Lake exception. *

* * @return List of all remediation steps for a Security Lake exception. */ public String getRemediation() { return this.remediation; } /** *

* List of all remediation steps for a Security Lake exception. *

* * @param remediation * List of all remediation steps for a Security Lake exception. * @return Returns a reference to this object so that method calls can be chained together. */ public DataLakeException withRemediation(String remediation) { setRemediation(remediation); return this; } /** *

* This error can occur if you configure the wrong timestamp format, or if the subset of entries used for validation * had errors or missing values. *

* * @param timestamp * This error can occur if you configure the wrong timestamp format, or if the subset of entries used for * validation had errors or missing values. */ public void setTimestamp(java.util.Date timestamp) { this.timestamp = timestamp; } /** *

* This error can occur if you configure the wrong timestamp format, or if the subset of entries used for validation * had errors or missing values. *

* * @return This error can occur if you configure the wrong timestamp format, or if the subset of entries used for * validation had errors or missing values. */ public java.util.Date getTimestamp() { return this.timestamp; } /** *

* This error can occur if you configure the wrong timestamp format, or if the subset of entries used for validation * had errors or missing values. *

* * @param timestamp * This error can occur if you configure the wrong timestamp format, or if the subset of entries used for * validation had errors or missing values. * @return Returns a reference to this object so that method calls can be chained together. */ public DataLakeException withTimestamp(java.util.Date timestamp) { setTimestamp(timestamp); 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 (getException() != null) sb.append("Exception: ").append(getException()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getRemediation() != null) sb.append("Remediation: ").append(getRemediation()).append(","); if (getTimestamp() != null) sb.append("Timestamp: ").append(getTimestamp()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DataLakeException == false) return false; DataLakeException other = (DataLakeException) obj; if (other.getException() == null ^ this.getException() == null) return false; if (other.getException() != null && other.getException().equals(this.getException()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getRemediation() == null ^ this.getRemediation() == null) return false; if (other.getRemediation() != null && other.getRemediation().equals(this.getRemediation()) == false) return false; if (other.getTimestamp() == null ^ this.getTimestamp() == null) return false; if (other.getTimestamp() != null && other.getTimestamp().equals(this.getTimestamp()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getException() == null) ? 0 : getException().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getRemediation() == null) ? 0 : getRemediation().hashCode()); hashCode = prime * hashCode + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode()); return hashCode; } @Override public DataLakeException clone() { try { return (DataLakeException) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securitylake.model.transform.DataLakeExceptionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy