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

com.amazonaws.services.dynamodbv2.model.BackupDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon DynamoDB module holds the client classes that are used for communicating with Amazon DynamoDB Service

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

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

/**
 * 

* Contains the details of the backup created for the table. *

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

* ARN associated with the backup. *

*/ private String backupArn; /** *

* Name of the requested backup. *

*/ private String backupName; /** *

* Size of the backup in bytes. *

*/ private Long backupSizeBytes; /** *

* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *

*/ private String backupStatus; /** *

* Time at which the backup was created. This is the request time of the backup. *

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

* ARN associated with the backup. *

* * @param backupArn * ARN associated with the backup. */ public void setBackupArn(String backupArn) { this.backupArn = backupArn; } /** *

* ARN associated with the backup. *

* * @return ARN associated with the backup. */ public String getBackupArn() { return this.backupArn; } /** *

* ARN associated with the backup. *

* * @param backupArn * ARN associated with the backup. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDetails withBackupArn(String backupArn) { setBackupArn(backupArn); return this; } /** *

* Name of the requested backup. *

* * @param backupName * Name of the requested backup. */ public void setBackupName(String backupName) { this.backupName = backupName; } /** *

* Name of the requested backup. *

* * @return Name of the requested backup. */ public String getBackupName() { return this.backupName; } /** *

* Name of the requested backup. *

* * @param backupName * Name of the requested backup. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDetails withBackupName(String backupName) { setBackupName(backupName); return this; } /** *

* Size of the backup in bytes. *

* * @param backupSizeBytes * Size of the backup in bytes. */ public void setBackupSizeBytes(Long backupSizeBytes) { this.backupSizeBytes = backupSizeBytes; } /** *

* Size of the backup in bytes. *

* * @return Size of the backup in bytes. */ public Long getBackupSizeBytes() { return this.backupSizeBytes; } /** *

* Size of the backup in bytes. *

* * @param backupSizeBytes * Size of the backup in bytes. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDetails withBackupSizeBytes(Long backupSizeBytes) { setBackupSizeBytes(backupSizeBytes); return this; } /** *

* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *

* * @param backupStatus * Backup can be in one of the following states: CREATING, ACTIVE, DELETED. * @see BackupStatus */ public void setBackupStatus(String backupStatus) { this.backupStatus = backupStatus; } /** *

* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *

* * @return Backup can be in one of the following states: CREATING, ACTIVE, DELETED. * @see BackupStatus */ public String getBackupStatus() { return this.backupStatus; } /** *

* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *

* * @param backupStatus * Backup can be in one of the following states: CREATING, ACTIVE, DELETED. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupStatus */ public BackupDetails withBackupStatus(String backupStatus) { setBackupStatus(backupStatus); return this; } /** *

* Backup can be in one of the following states: CREATING, ACTIVE, DELETED. *

* * @param backupStatus * Backup can be in one of the following states: CREATING, ACTIVE, DELETED. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupStatus */ public BackupDetails withBackupStatus(BackupStatus backupStatus) { this.backupStatus = backupStatus.toString(); return this; } /** *

* Time at which the backup was created. This is the request time of the backup. *

* * @param backupCreationDateTime * Time at which the backup was created. This is the request time of the backup. */ public void setBackupCreationDateTime(java.util.Date backupCreationDateTime) { this.backupCreationDateTime = backupCreationDateTime; } /** *

* Time at which the backup was created. This is the request time of the backup. *

* * @return Time at which the backup was created. This is the request time of the backup. */ public java.util.Date getBackupCreationDateTime() { return this.backupCreationDateTime; } /** *

* Time at which the backup was created. This is the request time of the backup. *

* * @param backupCreationDateTime * Time at which the backup was created. This is the request time of the backup. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDetails withBackupCreationDateTime(java.util.Date backupCreationDateTime) { setBackupCreationDateTime(backupCreationDateTime); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getBackupArn() != null) sb.append("BackupArn: ").append(getBackupArn()).append(","); if (getBackupName() != null) sb.append("BackupName: ").append(getBackupName()).append(","); if (getBackupSizeBytes() != null) sb.append("BackupSizeBytes: ").append(getBackupSizeBytes()).append(","); if (getBackupStatus() != null) sb.append("BackupStatus: ").append(getBackupStatus()).append(","); if (getBackupCreationDateTime() != null) sb.append("BackupCreationDateTime: ").append(getBackupCreationDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BackupDetails == false) return false; BackupDetails other = (BackupDetails) obj; if (other.getBackupArn() == null ^ this.getBackupArn() == null) return false; if (other.getBackupArn() != null && other.getBackupArn().equals(this.getBackupArn()) == false) return false; if (other.getBackupName() == null ^ this.getBackupName() == null) return false; if (other.getBackupName() != null && other.getBackupName().equals(this.getBackupName()) == false) return false; if (other.getBackupSizeBytes() == null ^ this.getBackupSizeBytes() == null) return false; if (other.getBackupSizeBytes() != null && other.getBackupSizeBytes().equals(this.getBackupSizeBytes()) == false) return false; if (other.getBackupStatus() == null ^ this.getBackupStatus() == null) return false; if (other.getBackupStatus() != null && other.getBackupStatus().equals(this.getBackupStatus()) == false) return false; if (other.getBackupCreationDateTime() == null ^ this.getBackupCreationDateTime() == null) return false; if (other.getBackupCreationDateTime() != null && other.getBackupCreationDateTime().equals(this.getBackupCreationDateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupArn() == null) ? 0 : getBackupArn().hashCode()); hashCode = prime * hashCode + ((getBackupName() == null) ? 0 : getBackupName().hashCode()); hashCode = prime * hashCode + ((getBackupSizeBytes() == null) ? 0 : getBackupSizeBytes().hashCode()); hashCode = prime * hashCode + ((getBackupStatus() == null) ? 0 : getBackupStatus().hashCode()); hashCode = prime * hashCode + ((getBackupCreationDateTime() == null) ? 0 : getBackupCreationDateTime().hashCode()); return hashCode; } @Override public BackupDetails clone() { try { return (BackupDetails) 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.dynamodbv2.model.transform.BackupDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy