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

com.amazonaws.services.config.model.AggregatedSourceStatus 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.config.model;

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

/**
 * 

* The current sync status between the source and the aggregator account. *

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

* The source account ID or an organization. *

*/ private String sourceId; /** *

* The source account or an organization. *

*/ private String sourceType; /** *

* The region authorized to collect aggregated data. *

*/ private String awsRegion; /** *

* Filters the last updated status type. *

*
    *
  • *

    * Valid value FAILED indicates errors while moving data. *

    *
  • *
  • *

    * Valid value SUCCEEDED indicates the data was successfully moved. *

    *
  • *
  • *

    * Valid value OUTDATED indicates the data is not the most recent. *

    *
  • *
*/ private String lastUpdateStatus; /** *

* The time of the last update. *

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

* The error code that Config returned when the source account aggregation last failed. *

*/ private String lastErrorCode; /** *

* The message indicating that the source account aggregation failed due to an error. *

*/ private String lastErrorMessage; /** *

* The source account ID or an organization. *

* * @param sourceId * The source account ID or an organization. */ public void setSourceId(String sourceId) { this.sourceId = sourceId; } /** *

* The source account ID or an organization. *

* * @return The source account ID or an organization. */ public String getSourceId() { return this.sourceId; } /** *

* The source account ID or an organization. *

* * @param sourceId * The source account ID or an organization. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregatedSourceStatus withSourceId(String sourceId) { setSourceId(sourceId); return this; } /** *

* The source account or an organization. *

* * @param sourceType * The source account or an organization. * @see AggregatedSourceType */ public void setSourceType(String sourceType) { this.sourceType = sourceType; } /** *

* The source account or an organization. *

* * @return The source account or an organization. * @see AggregatedSourceType */ public String getSourceType() { return this.sourceType; } /** *

* The source account or an organization. *

* * @param sourceType * The source account or an organization. * @return Returns a reference to this object so that method calls can be chained together. * @see AggregatedSourceType */ public AggregatedSourceStatus withSourceType(String sourceType) { setSourceType(sourceType); return this; } /** *

* The source account or an organization. *

* * @param sourceType * The source account or an organization. * @return Returns a reference to this object so that method calls can be chained together. * @see AggregatedSourceType */ public AggregatedSourceStatus withSourceType(AggregatedSourceType sourceType) { this.sourceType = sourceType.toString(); return this; } /** *

* The region authorized to collect aggregated data. *

* * @param awsRegion * The region authorized to collect aggregated data. */ public void setAwsRegion(String awsRegion) { this.awsRegion = awsRegion; } /** *

* The region authorized to collect aggregated data. *

* * @return The region authorized to collect aggregated data. */ public String getAwsRegion() { return this.awsRegion; } /** *

* The region authorized to collect aggregated data. *

* * @param awsRegion * The region authorized to collect aggregated data. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregatedSourceStatus withAwsRegion(String awsRegion) { setAwsRegion(awsRegion); return this; } /** *

* Filters the last updated status type. *

*
    *
  • *

    * Valid value FAILED indicates errors while moving data. *

    *
  • *
  • *

    * Valid value SUCCEEDED indicates the data was successfully moved. *

    *
  • *
  • *

    * Valid value OUTDATED indicates the data is not the most recent. *

    *
  • *
* * @param lastUpdateStatus * Filters the last updated status type.

*
    *
  • *

    * Valid value FAILED indicates errors while moving data. *

    *
  • *
  • *

    * Valid value SUCCEEDED indicates the data was successfully moved. *

    *
  • *
  • *

    * Valid value OUTDATED indicates the data is not the most recent. *

    *
  • * @see AggregatedSourceStatusType */ public void setLastUpdateStatus(String lastUpdateStatus) { this.lastUpdateStatus = lastUpdateStatus; } /** *

    * Filters the last updated status type. *

    *
      *
    • *

      * Valid value FAILED indicates errors while moving data. *

      *
    • *
    • *

      * Valid value SUCCEEDED indicates the data was successfully moved. *

      *
    • *
    • *

      * Valid value OUTDATED indicates the data is not the most recent. *

      *
    • *
    * * @return Filters the last updated status type.

    *
      *
    • *

      * Valid value FAILED indicates errors while moving data. *

      *
    • *
    • *

      * Valid value SUCCEEDED indicates the data was successfully moved. *

      *
    • *
    • *

      * Valid value OUTDATED indicates the data is not the most recent. *

      *
    • * @see AggregatedSourceStatusType */ public String getLastUpdateStatus() { return this.lastUpdateStatus; } /** *

      * Filters the last updated status type. *

      *
        *
      • *

        * Valid value FAILED indicates errors while moving data. *

        *
      • *
      • *

        * Valid value SUCCEEDED indicates the data was successfully moved. *

        *
      • *
      • *

        * Valid value OUTDATED indicates the data is not the most recent. *

        *
      • *
      * * @param lastUpdateStatus * Filters the last updated status type.

      *
        *
      • *

        * Valid value FAILED indicates errors while moving data. *

        *
      • *
      • *

        * Valid value SUCCEEDED indicates the data was successfully moved. *

        *
      • *
      • *

        * Valid value OUTDATED indicates the data is not the most recent. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see AggregatedSourceStatusType */ public AggregatedSourceStatus withLastUpdateStatus(String lastUpdateStatus) { setLastUpdateStatus(lastUpdateStatus); return this; } /** *

        * Filters the last updated status type. *

        *
          *
        • *

          * Valid value FAILED indicates errors while moving data. *

          *
        • *
        • *

          * Valid value SUCCEEDED indicates the data was successfully moved. *

          *
        • *
        • *

          * Valid value OUTDATED indicates the data is not the most recent. *

          *
        • *
        * * @param lastUpdateStatus * Filters the last updated status type.

        *
          *
        • *

          * Valid value FAILED indicates errors while moving data. *

          *
        • *
        • *

          * Valid value SUCCEEDED indicates the data was successfully moved. *

          *
        • *
        • *

          * Valid value OUTDATED indicates the data is not the most recent. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see AggregatedSourceStatusType */ public AggregatedSourceStatus withLastUpdateStatus(AggregatedSourceStatusType lastUpdateStatus) { this.lastUpdateStatus = lastUpdateStatus.toString(); return this; } /** *

          * The time of the last update. *

          * * @param lastUpdateTime * The time of the last update. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** *

          * The time of the last update. *

          * * @return The time of the last update. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** *

          * The time of the last update. *

          * * @param lastUpdateTime * The time of the last update. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregatedSourceStatus withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** *

          * The error code that Config returned when the source account aggregation last failed. *

          * * @param lastErrorCode * The error code that Config returned when the source account aggregation last failed. */ public void setLastErrorCode(String lastErrorCode) { this.lastErrorCode = lastErrorCode; } /** *

          * The error code that Config returned when the source account aggregation last failed. *

          * * @return The error code that Config returned when the source account aggregation last failed. */ public String getLastErrorCode() { return this.lastErrorCode; } /** *

          * The error code that Config returned when the source account aggregation last failed. *

          * * @param lastErrorCode * The error code that Config returned when the source account aggregation last failed. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregatedSourceStatus withLastErrorCode(String lastErrorCode) { setLastErrorCode(lastErrorCode); return this; } /** *

          * The message indicating that the source account aggregation failed due to an error. *

          * * @param lastErrorMessage * The message indicating that the source account aggregation failed due to an error. */ public void setLastErrorMessage(String lastErrorMessage) { this.lastErrorMessage = lastErrorMessage; } /** *

          * The message indicating that the source account aggregation failed due to an error. *

          * * @return The message indicating that the source account aggregation failed due to an error. */ public String getLastErrorMessage() { return this.lastErrorMessage; } /** *

          * The message indicating that the source account aggregation failed due to an error. *

          * * @param lastErrorMessage * The message indicating that the source account aggregation failed due to an error. * @return Returns a reference to this object so that method calls can be chained together. */ public AggregatedSourceStatus withLastErrorMessage(String lastErrorMessage) { setLastErrorMessage(lastErrorMessage); 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 (getSourceId() != null) sb.append("SourceId: ").append(getSourceId()).append(","); if (getSourceType() != null) sb.append("SourceType: ").append(getSourceType()).append(","); if (getAwsRegion() != null) sb.append("AwsRegion: ").append(getAwsRegion()).append(","); if (getLastUpdateStatus() != null) sb.append("LastUpdateStatus: ").append(getLastUpdateStatus()).append(","); if (getLastUpdateTime() != null) sb.append("LastUpdateTime: ").append(getLastUpdateTime()).append(","); if (getLastErrorCode() != null) sb.append("LastErrorCode: ").append(getLastErrorCode()).append(","); if (getLastErrorMessage() != null) sb.append("LastErrorMessage: ").append(getLastErrorMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AggregatedSourceStatus == false) return false; AggregatedSourceStatus other = (AggregatedSourceStatus) obj; if (other.getSourceId() == null ^ this.getSourceId() == null) return false; if (other.getSourceId() != null && other.getSourceId().equals(this.getSourceId()) == false) return false; if (other.getSourceType() == null ^ this.getSourceType() == null) return false; if (other.getSourceType() != null && other.getSourceType().equals(this.getSourceType()) == false) return false; if (other.getAwsRegion() == null ^ this.getAwsRegion() == null) return false; if (other.getAwsRegion() != null && other.getAwsRegion().equals(this.getAwsRegion()) == false) return false; if (other.getLastUpdateStatus() == null ^ this.getLastUpdateStatus() == null) return false; if (other.getLastUpdateStatus() != null && other.getLastUpdateStatus().equals(this.getLastUpdateStatus()) == false) return false; if (other.getLastUpdateTime() == null ^ this.getLastUpdateTime() == null) return false; if (other.getLastUpdateTime() != null && other.getLastUpdateTime().equals(this.getLastUpdateTime()) == false) return false; if (other.getLastErrorCode() == null ^ this.getLastErrorCode() == null) return false; if (other.getLastErrorCode() != null && other.getLastErrorCode().equals(this.getLastErrorCode()) == false) return false; if (other.getLastErrorMessage() == null ^ this.getLastErrorMessage() == null) return false; if (other.getLastErrorMessage() != null && other.getLastErrorMessage().equals(this.getLastErrorMessage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceId() == null) ? 0 : getSourceId().hashCode()); hashCode = prime * hashCode + ((getSourceType() == null) ? 0 : getSourceType().hashCode()); hashCode = prime * hashCode + ((getAwsRegion() == null) ? 0 : getAwsRegion().hashCode()); hashCode = prime * hashCode + ((getLastUpdateStatus() == null) ? 0 : getLastUpdateStatus().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode()); hashCode = prime * hashCode + ((getLastErrorCode() == null) ? 0 : getLastErrorCode().hashCode()); hashCode = prime * hashCode + ((getLastErrorMessage() == null) ? 0 : getLastErrorMessage().hashCode()); return hashCode; } @Override public AggregatedSourceStatus clone() { try { return (AggregatedSourceStatus) 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.config.model.transform.AggregatedSourceStatusMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy