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

com.amazonaws.services.drs.model.DataReplicationInfoReplicatedDisk Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Elastic Disaster Recovery module holds the client classes that are used for communicating with Elastic Disaster Recovery Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.drs.model;

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

/**
 * 

* A disk that should be replicated. *

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

* The size of the replication backlog in bytes. *

*/ private Long backloggedStorageBytes; /** *

* The name of the device. *

*/ private String deviceName; /** *

* The amount of data replicated so far in bytes. *

*/ private Long replicatedStorageBytes; /** *

* The amount of data to be rescanned in bytes. *

*/ private Long rescannedStorageBytes; /** *

* The total amount of data to be replicated in bytes. *

*/ private Long totalStorageBytes; /** *

* The size of the replication backlog in bytes. *

* * @param backloggedStorageBytes * The size of the replication backlog in bytes. */ public void setBackloggedStorageBytes(Long backloggedStorageBytes) { this.backloggedStorageBytes = backloggedStorageBytes; } /** *

* The size of the replication backlog in bytes. *

* * @return The size of the replication backlog in bytes. */ public Long getBackloggedStorageBytes() { return this.backloggedStorageBytes; } /** *

* The size of the replication backlog in bytes. *

* * @param backloggedStorageBytes * The size of the replication backlog in bytes. * @return Returns a reference to this object so that method calls can be chained together. */ public DataReplicationInfoReplicatedDisk withBackloggedStorageBytes(Long backloggedStorageBytes) { setBackloggedStorageBytes(backloggedStorageBytes); return this; } /** *

* The name of the device. *

* * @param deviceName * The name of the device. */ public void setDeviceName(String deviceName) { this.deviceName = deviceName; } /** *

* The name of the device. *

* * @return The name of the device. */ public String getDeviceName() { return this.deviceName; } /** *

* The name of the device. *

* * @param deviceName * The name of the device. * @return Returns a reference to this object so that method calls can be chained together. */ public DataReplicationInfoReplicatedDisk withDeviceName(String deviceName) { setDeviceName(deviceName); return this; } /** *

* The amount of data replicated so far in bytes. *

* * @param replicatedStorageBytes * The amount of data replicated so far in bytes. */ public void setReplicatedStorageBytes(Long replicatedStorageBytes) { this.replicatedStorageBytes = replicatedStorageBytes; } /** *

* The amount of data replicated so far in bytes. *

* * @return The amount of data replicated so far in bytes. */ public Long getReplicatedStorageBytes() { return this.replicatedStorageBytes; } /** *

* The amount of data replicated so far in bytes. *

* * @param replicatedStorageBytes * The amount of data replicated so far in bytes. * @return Returns a reference to this object so that method calls can be chained together. */ public DataReplicationInfoReplicatedDisk withReplicatedStorageBytes(Long replicatedStorageBytes) { setReplicatedStorageBytes(replicatedStorageBytes); return this; } /** *

* The amount of data to be rescanned in bytes. *

* * @param rescannedStorageBytes * The amount of data to be rescanned in bytes. */ public void setRescannedStorageBytes(Long rescannedStorageBytes) { this.rescannedStorageBytes = rescannedStorageBytes; } /** *

* The amount of data to be rescanned in bytes. *

* * @return The amount of data to be rescanned in bytes. */ public Long getRescannedStorageBytes() { return this.rescannedStorageBytes; } /** *

* The amount of data to be rescanned in bytes. *

* * @param rescannedStorageBytes * The amount of data to be rescanned in bytes. * @return Returns a reference to this object so that method calls can be chained together. */ public DataReplicationInfoReplicatedDisk withRescannedStorageBytes(Long rescannedStorageBytes) { setRescannedStorageBytes(rescannedStorageBytes); return this; } /** *

* The total amount of data to be replicated in bytes. *

* * @param totalStorageBytes * The total amount of data to be replicated in bytes. */ public void setTotalStorageBytes(Long totalStorageBytes) { this.totalStorageBytes = totalStorageBytes; } /** *

* The total amount of data to be replicated in bytes. *

* * @return The total amount of data to be replicated in bytes. */ public Long getTotalStorageBytes() { return this.totalStorageBytes; } /** *

* The total amount of data to be replicated in bytes. *

* * @param totalStorageBytes * The total amount of data to be replicated in bytes. * @return Returns a reference to this object so that method calls can be chained together. */ public DataReplicationInfoReplicatedDisk withTotalStorageBytes(Long totalStorageBytes) { setTotalStorageBytes(totalStorageBytes); 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 (getBackloggedStorageBytes() != null) sb.append("BackloggedStorageBytes: ").append(getBackloggedStorageBytes()).append(","); if (getDeviceName() != null) sb.append("DeviceName: ").append(getDeviceName()).append(","); if (getReplicatedStorageBytes() != null) sb.append("ReplicatedStorageBytes: ").append(getReplicatedStorageBytes()).append(","); if (getRescannedStorageBytes() != null) sb.append("RescannedStorageBytes: ").append(getRescannedStorageBytes()).append(","); if (getTotalStorageBytes() != null) sb.append("TotalStorageBytes: ").append(getTotalStorageBytes()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DataReplicationInfoReplicatedDisk == false) return false; DataReplicationInfoReplicatedDisk other = (DataReplicationInfoReplicatedDisk) obj; if (other.getBackloggedStorageBytes() == null ^ this.getBackloggedStorageBytes() == null) return false; if (other.getBackloggedStorageBytes() != null && other.getBackloggedStorageBytes().equals(this.getBackloggedStorageBytes()) == false) return false; if (other.getDeviceName() == null ^ this.getDeviceName() == null) return false; if (other.getDeviceName() != null && other.getDeviceName().equals(this.getDeviceName()) == false) return false; if (other.getReplicatedStorageBytes() == null ^ this.getReplicatedStorageBytes() == null) return false; if (other.getReplicatedStorageBytes() != null && other.getReplicatedStorageBytes().equals(this.getReplicatedStorageBytes()) == false) return false; if (other.getRescannedStorageBytes() == null ^ this.getRescannedStorageBytes() == null) return false; if (other.getRescannedStorageBytes() != null && other.getRescannedStorageBytes().equals(this.getRescannedStorageBytes()) == false) return false; if (other.getTotalStorageBytes() == null ^ this.getTotalStorageBytes() == null) return false; if (other.getTotalStorageBytes() != null && other.getTotalStorageBytes().equals(this.getTotalStorageBytes()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackloggedStorageBytes() == null) ? 0 : getBackloggedStorageBytes().hashCode()); hashCode = prime * hashCode + ((getDeviceName() == null) ? 0 : getDeviceName().hashCode()); hashCode = prime * hashCode + ((getReplicatedStorageBytes() == null) ? 0 : getReplicatedStorageBytes().hashCode()); hashCode = prime * hashCode + ((getRescannedStorageBytes() == null) ? 0 : getRescannedStorageBytes().hashCode()); hashCode = prime * hashCode + ((getTotalStorageBytes() == null) ? 0 : getTotalStorageBytes().hashCode()); return hashCode; } @Override public DataReplicationInfoReplicatedDisk clone() { try { return (DataReplicationInfoReplicatedDisk) 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.drs.model.transform.DataReplicationInfoReplicatedDiskMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy