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

com.amazonaws.services.securityhub.model.AwsRedshiftClusterLoggingStatus 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 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.securityhub.model;

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

/**
 * 

* Provides information about the logging status of the cluster. *

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

* The name of the S3 bucket where the log files are stored. *

*/ private String bucketName; /** *

* The message indicating that the logs failed to be delivered. *

*/ private String lastFailureMessage; /** *

* The last time when logs failed to be delivered. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

*/ private String lastFailureTime; /** *

* The last time that logs were delivered successfully. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

*/ private String lastSuccessfulDeliveryTime; /** *

* Indicates whether logging is enabled. *

*/ private Boolean loggingEnabled; /** *

* Provides the prefix applied to the log file names. *

*/ private String s3KeyPrefix; /** *

* The name of the S3 bucket where the log files are stored. *

* * @param bucketName * The name of the S3 bucket where the log files are stored. */ public void setBucketName(String bucketName) { this.bucketName = bucketName; } /** *

* The name of the S3 bucket where the log files are stored. *

* * @return The name of the S3 bucket where the log files are stored. */ public String getBucketName() { return this.bucketName; } /** *

* The name of the S3 bucket where the log files are stored. *

* * @param bucketName * The name of the S3 bucket where the log files are stored. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterLoggingStatus withBucketName(String bucketName) { setBucketName(bucketName); return this; } /** *

* The message indicating that the logs failed to be delivered. *

* * @param lastFailureMessage * The message indicating that the logs failed to be delivered. */ public void setLastFailureMessage(String lastFailureMessage) { this.lastFailureMessage = lastFailureMessage; } /** *

* The message indicating that the logs failed to be delivered. *

* * @return The message indicating that the logs failed to be delivered. */ public String getLastFailureMessage() { return this.lastFailureMessage; } /** *

* The message indicating that the logs failed to be delivered. *

* * @param lastFailureMessage * The message indicating that the logs failed to be delivered. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterLoggingStatus withLastFailureMessage(String lastFailureMessage) { setLastFailureMessage(lastFailureMessage); return this; } /** *

* The last time when logs failed to be delivered. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @param lastFailureTime * The last time when logs failed to be delivered.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. */ public void setLastFailureTime(String lastFailureTime) { this.lastFailureTime = lastFailureTime; } /** *

* The last time when logs failed to be delivered. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @return The last time when logs failed to be delivered.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. */ public String getLastFailureTime() { return this.lastFailureTime; } /** *

* The last time when logs failed to be delivered. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @param lastFailureTime * The last time when logs failed to be delivered.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterLoggingStatus withLastFailureTime(String lastFailureTime) { setLastFailureTime(lastFailureTime); return this; } /** *

* The last time that logs were delivered successfully. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @param lastSuccessfulDeliveryTime * The last time that logs were delivered successfully.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. */ public void setLastSuccessfulDeliveryTime(String lastSuccessfulDeliveryTime) { this.lastSuccessfulDeliveryTime = lastSuccessfulDeliveryTime; } /** *

* The last time that logs were delivered successfully. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @return The last time that logs were delivered successfully.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. */ public String getLastSuccessfulDeliveryTime() { return this.lastSuccessfulDeliveryTime; } /** *

* The last time that logs were delivered successfully. *

*

* Uses the date-time format specified in RFC * 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be * separated by T. For example, 2020-03-22T13:22:13.933Z. *

* * @param lastSuccessfulDeliveryTime * The last time that logs were delivered successfully.

*

* Uses the date-time format specified in RFC 3339 section 5.6, Internet Date/Time * Format. The value cannot contain spaces, and date and time should be separated by T. For * example, 2020-03-22T13:22:13.933Z. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterLoggingStatus withLastSuccessfulDeliveryTime(String lastSuccessfulDeliveryTime) { setLastSuccessfulDeliveryTime(lastSuccessfulDeliveryTime); return this; } /** *

* Indicates whether logging is enabled. *

* * @param loggingEnabled * Indicates whether logging is enabled. */ public void setLoggingEnabled(Boolean loggingEnabled) { this.loggingEnabled = loggingEnabled; } /** *

* Indicates whether logging is enabled. *

* * @return Indicates whether logging is enabled. */ public Boolean getLoggingEnabled() { return this.loggingEnabled; } /** *

* Indicates whether logging is enabled. *

* * @param loggingEnabled * Indicates whether logging is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterLoggingStatus withLoggingEnabled(Boolean loggingEnabled) { setLoggingEnabled(loggingEnabled); return this; } /** *

* Indicates whether logging is enabled. *

* * @return Indicates whether logging is enabled. */ public Boolean isLoggingEnabled() { return this.loggingEnabled; } /** *

* Provides the prefix applied to the log file names. *

* * @param s3KeyPrefix * Provides the prefix applied to the log file names. */ public void setS3KeyPrefix(String s3KeyPrefix) { this.s3KeyPrefix = s3KeyPrefix; } /** *

* Provides the prefix applied to the log file names. *

* * @return Provides the prefix applied to the log file names. */ public String getS3KeyPrefix() { return this.s3KeyPrefix; } /** *

* Provides the prefix applied to the log file names. *

* * @param s3KeyPrefix * Provides the prefix applied to the log file names. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterLoggingStatus withS3KeyPrefix(String s3KeyPrefix) { setS3KeyPrefix(s3KeyPrefix); 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 (getBucketName() != null) sb.append("BucketName: ").append(getBucketName()).append(","); if (getLastFailureMessage() != null) sb.append("LastFailureMessage: ").append(getLastFailureMessage()).append(","); if (getLastFailureTime() != null) sb.append("LastFailureTime: ").append(getLastFailureTime()).append(","); if (getLastSuccessfulDeliveryTime() != null) sb.append("LastSuccessfulDeliveryTime: ").append(getLastSuccessfulDeliveryTime()).append(","); if (getLoggingEnabled() != null) sb.append("LoggingEnabled: ").append(getLoggingEnabled()).append(","); if (getS3KeyPrefix() != null) sb.append("S3KeyPrefix: ").append(getS3KeyPrefix()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsRedshiftClusterLoggingStatus == false) return false; AwsRedshiftClusterLoggingStatus other = (AwsRedshiftClusterLoggingStatus) obj; if (other.getBucketName() == null ^ this.getBucketName() == null) return false; if (other.getBucketName() != null && other.getBucketName().equals(this.getBucketName()) == false) return false; if (other.getLastFailureMessage() == null ^ this.getLastFailureMessage() == null) return false; if (other.getLastFailureMessage() != null && other.getLastFailureMessage().equals(this.getLastFailureMessage()) == false) return false; if (other.getLastFailureTime() == null ^ this.getLastFailureTime() == null) return false; if (other.getLastFailureTime() != null && other.getLastFailureTime().equals(this.getLastFailureTime()) == false) return false; if (other.getLastSuccessfulDeliveryTime() == null ^ this.getLastSuccessfulDeliveryTime() == null) return false; if (other.getLastSuccessfulDeliveryTime() != null && other.getLastSuccessfulDeliveryTime().equals(this.getLastSuccessfulDeliveryTime()) == false) return false; if (other.getLoggingEnabled() == null ^ this.getLoggingEnabled() == null) return false; if (other.getLoggingEnabled() != null && other.getLoggingEnabled().equals(this.getLoggingEnabled()) == false) return false; if (other.getS3KeyPrefix() == null ^ this.getS3KeyPrefix() == null) return false; if (other.getS3KeyPrefix() != null && other.getS3KeyPrefix().equals(this.getS3KeyPrefix()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBucketName() == null) ? 0 : getBucketName().hashCode()); hashCode = prime * hashCode + ((getLastFailureMessage() == null) ? 0 : getLastFailureMessage().hashCode()); hashCode = prime * hashCode + ((getLastFailureTime() == null) ? 0 : getLastFailureTime().hashCode()); hashCode = prime * hashCode + ((getLastSuccessfulDeliveryTime() == null) ? 0 : getLastSuccessfulDeliveryTime().hashCode()); hashCode = prime * hashCode + ((getLoggingEnabled() == null) ? 0 : getLoggingEnabled().hashCode()); hashCode = prime * hashCode + ((getS3KeyPrefix() == null) ? 0 : getS3KeyPrefix().hashCode()); return hashCode; } @Override public AwsRedshiftClusterLoggingStatus clone() { try { return (AwsRedshiftClusterLoggingStatus) 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.securityhub.model.transform.AwsRedshiftClusterLoggingStatusMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy