/* * 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.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. *

* */ 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. *

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

*