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

com.amazonaws.services.backup.model.StartBackupJobResult Maven / Gradle / Ivy

Go to download

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

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

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* Uniquely identifies a request to Backup to back up a resource. *

*/ private String backupJobId; /** *

* Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources. *

*

* An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. *

*/ private String recoveryPointArn; /** *

* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of * CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, * January 26, 2018 12:11:30.087 AM. *

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

* This is a returned boolean value indicating this is a parent (composite) backup job. *

*/ private Boolean isParent; /** *

* Uniquely identifies a request to Backup to back up a resource. *

* * @param backupJobId * Uniquely identifies a request to Backup to back up a resource. */ public void setBackupJobId(String backupJobId) { this.backupJobId = backupJobId; } /** *

* Uniquely identifies a request to Backup to back up a resource. *

* * @return Uniquely identifies a request to Backup to back up a resource. */ public String getBackupJobId() { return this.backupJobId; } /** *

* Uniquely identifies a request to Backup to back up a resource. *

* * @param backupJobId * Uniquely identifies a request to Backup to back up a resource. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobResult withBackupJobId(String backupJobId) { setBackupJobId(backupJobId); return this; } /** *

* Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources. *

*

* An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. *

* * @param recoveryPointArn * Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources.

*

* An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. */ public void setRecoveryPointArn(String recoveryPointArn) { this.recoveryPointArn = recoveryPointArn; } /** *

* Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources. *

*

* An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. *

* * @return Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources.

*

* An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. */ public String getRecoveryPointArn() { return this.recoveryPointArn; } /** *

* Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources. *

*

* An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. *

* * @param recoveryPointArn * Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources.

*

* An ARN that uniquely identifies a recovery point; for example, * arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobResult withRecoveryPointArn(String recoveryPointArn) { setRecoveryPointArn(recoveryPointArn); return this; } /** *

* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of * CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, * January 26, 2018 12:11:30.087 AM. *

* * @param creationDate * The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The * value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 * represents Friday, January 26, 2018 12:11:30.087 AM. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** *

* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of * CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, * January 26, 2018 12:11:30.087 AM. *

* * @return The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The * value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 * represents Friday, January 26, 2018 12:11:30.087 AM. */ public java.util.Date getCreationDate() { return this.creationDate; } /** *

* The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The value of * CreationDate is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, * January 26, 2018 12:11:30.087 AM. *

* * @param creationDate * The date and time that a backup job is created, in Unix format and Coordinated Universal Time (UTC). The * value of CreationDate is accurate to milliseconds. For example, the value 1516925490.087 * represents Friday, January 26, 2018 12:11:30.087 AM. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobResult withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** *

* This is a returned boolean value indicating this is a parent (composite) backup job. *

* * @param isParent * This is a returned boolean value indicating this is a parent (composite) backup job. */ public void setIsParent(Boolean isParent) { this.isParent = isParent; } /** *

* This is a returned boolean value indicating this is a parent (composite) backup job. *

* * @return This is a returned boolean value indicating this is a parent (composite) backup job. */ public Boolean getIsParent() { return this.isParent; } /** *

* This is a returned boolean value indicating this is a parent (composite) backup job. *

* * @param isParent * This is a returned boolean value indicating this is a parent (composite) backup job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartBackupJobResult withIsParent(Boolean isParent) { setIsParent(isParent); return this; } /** *

* This is a returned boolean value indicating this is a parent (composite) backup job. *

* * @return This is a returned boolean value indicating this is a parent (composite) backup job. */ public Boolean isParent() { return this.isParent; } /** * 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 (getBackupJobId() != null) sb.append("BackupJobId: ").append(getBackupJobId()).append(","); if (getRecoveryPointArn() != null) sb.append("RecoveryPointArn: ").append(getRecoveryPointArn()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getIsParent() != null) sb.append("IsParent: ").append(getIsParent()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartBackupJobResult == false) return false; StartBackupJobResult other = (StartBackupJobResult) obj; if (other.getBackupJobId() == null ^ this.getBackupJobId() == null) return false; if (other.getBackupJobId() != null && other.getBackupJobId().equals(this.getBackupJobId()) == false) return false; if (other.getRecoveryPointArn() == null ^ this.getRecoveryPointArn() == null) return false; if (other.getRecoveryPointArn() != null && other.getRecoveryPointArn().equals(this.getRecoveryPointArn()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getIsParent() == null ^ this.getIsParent() == null) return false; if (other.getIsParent() != null && other.getIsParent().equals(this.getIsParent()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupJobId() == null) ? 0 : getBackupJobId().hashCode()); hashCode = prime * hashCode + ((getRecoveryPointArn() == null) ? 0 : getRecoveryPointArn().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getIsParent() == null) ? 0 : getIsParent().hashCode()); return hashCode; } @Override public StartBackupJobResult clone() { try { return (StartBackupJobResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy