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

com.amazonaws.services.databasemigrationservice.model.RefreshSchemasStatus 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.databasemigrationservice.model;

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

/**
 * 

* Provides information that describes status of a schema at an endpoint specified by the * DescribeRefreshSchemaStatus operation. *

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

* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. *

*/ private String endpointArn; /** *

* The Amazon Resource Name (ARN) of the replication instance. *

*/ private String replicationInstanceArn; /** *

* The status of the schema. *

*/ private String status; /** *

* The date the schema was last refreshed. *

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

* The last failure message for the schema. *

*/ private String lastFailureMessage; /** *

* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. *

* * @param endpointArn * The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. */ public void setEndpointArn(String endpointArn) { this.endpointArn = endpointArn; } /** *

* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. *

* * @return The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. */ public String getEndpointArn() { return this.endpointArn; } /** *

* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. *

* * @param endpointArn * The Amazon Resource Name (ARN) string that uniquely identifies the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public RefreshSchemasStatus withEndpointArn(String endpointArn) { setEndpointArn(endpointArn); return this; } /** *

* The Amazon Resource Name (ARN) of the replication instance. *

* * @param replicationInstanceArn * The Amazon Resource Name (ARN) of the replication instance. */ public void setReplicationInstanceArn(String replicationInstanceArn) { this.replicationInstanceArn = replicationInstanceArn; } /** *

* The Amazon Resource Name (ARN) of the replication instance. *

* * @return The Amazon Resource Name (ARN) of the replication instance. */ public String getReplicationInstanceArn() { return this.replicationInstanceArn; } /** *

* The Amazon Resource Name (ARN) of the replication instance. *

* * @param replicationInstanceArn * The Amazon Resource Name (ARN) of the replication instance. * @return Returns a reference to this object so that method calls can be chained together. */ public RefreshSchemasStatus withReplicationInstanceArn(String replicationInstanceArn) { setReplicationInstanceArn(replicationInstanceArn); return this; } /** *

* The status of the schema. *

* * @param status * The status of the schema. * @see RefreshSchemasStatusTypeValue */ public void setStatus(String status) { this.status = status; } /** *

* The status of the schema. *

* * @return The status of the schema. * @see RefreshSchemasStatusTypeValue */ public String getStatus() { return this.status; } /** *

* The status of the schema. *

* * @param status * The status of the schema. * @return Returns a reference to this object so that method calls can be chained together. * @see RefreshSchemasStatusTypeValue */ public RefreshSchemasStatus withStatus(String status) { setStatus(status); return this; } /** *

* The status of the schema. *

* * @param status * The status of the schema. * @see RefreshSchemasStatusTypeValue */ public void setStatus(RefreshSchemasStatusTypeValue status) { withStatus(status); } /** *

* The status of the schema. *

* * @param status * The status of the schema. * @return Returns a reference to this object so that method calls can be chained together. * @see RefreshSchemasStatusTypeValue */ public RefreshSchemasStatus withStatus(RefreshSchemasStatusTypeValue status) { this.status = status.toString(); return this; } /** *

* The date the schema was last refreshed. *

* * @param lastRefreshDate * The date the schema was last refreshed. */ public void setLastRefreshDate(java.util.Date lastRefreshDate) { this.lastRefreshDate = lastRefreshDate; } /** *

* The date the schema was last refreshed. *

* * @return The date the schema was last refreshed. */ public java.util.Date getLastRefreshDate() { return this.lastRefreshDate; } /** *

* The date the schema was last refreshed. *

* * @param lastRefreshDate * The date the schema was last refreshed. * @return Returns a reference to this object so that method calls can be chained together. */ public RefreshSchemasStatus withLastRefreshDate(java.util.Date lastRefreshDate) { setLastRefreshDate(lastRefreshDate); return this; } /** *

* The last failure message for the schema. *

* * @param lastFailureMessage * The last failure message for the schema. */ public void setLastFailureMessage(String lastFailureMessage) { this.lastFailureMessage = lastFailureMessage; } /** *

* The last failure message for the schema. *

* * @return The last failure message for the schema. */ public String getLastFailureMessage() { return this.lastFailureMessage; } /** *

* The last failure message for the schema. *

* * @param lastFailureMessage * The last failure message for the schema. * @return Returns a reference to this object so that method calls can be chained together. */ public RefreshSchemasStatus withLastFailureMessage(String lastFailureMessage) { setLastFailureMessage(lastFailureMessage); 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 (getEndpointArn() != null) sb.append("EndpointArn: ").append(getEndpointArn()).append(","); if (getReplicationInstanceArn() != null) sb.append("ReplicationInstanceArn: ").append(getReplicationInstanceArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getLastRefreshDate() != null) sb.append("LastRefreshDate: ").append(getLastRefreshDate()).append(","); if (getLastFailureMessage() != null) sb.append("LastFailureMessage: ").append(getLastFailureMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RefreshSchemasStatus == false) return false; RefreshSchemasStatus other = (RefreshSchemasStatus) obj; if (other.getEndpointArn() == null ^ this.getEndpointArn() == null) return false; if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == false) return false; if (other.getReplicationInstanceArn() == null ^ this.getReplicationInstanceArn() == null) return false; if (other.getReplicationInstanceArn() != null && other.getReplicationInstanceArn().equals(this.getReplicationInstanceArn()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getLastRefreshDate() == null ^ this.getLastRefreshDate() == null) return false; if (other.getLastRefreshDate() != null && other.getLastRefreshDate().equals(this.getLastRefreshDate()) == false) return false; if (other.getLastFailureMessage() == null ^ this.getLastFailureMessage() == null) return false; if (other.getLastFailureMessage() != null && other.getLastFailureMessage().equals(this.getLastFailureMessage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode()); hashCode = prime * hashCode + ((getReplicationInstanceArn() == null) ? 0 : getReplicationInstanceArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getLastRefreshDate() == null) ? 0 : getLastRefreshDate().hashCode()); hashCode = prime * hashCode + ((getLastFailureMessage() == null) ? 0 : getLastFailureMessage().hashCode()); return hashCode; } @Override public RefreshSchemasStatus clone() { try { return (RefreshSchemasStatus) 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.databasemigrationservice.model.transform.RefreshSchemasStatusMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy