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

com.amazonaws.services.opsworkscm.model.Backup Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
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.opsworkscm.model;

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

/**
 * 

* Describes a single backup. *

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

* The ARN of the backup. *

*/ private String backupArn; /** *

* The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS *

*/ private String backupId; /** *

* The backup type. Valid values are automated or manual. *

*/ private String backupType; /** *

* The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z *

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

* A user-provided description for a manual backup. This field is empty for automated backups. *

*/ private String description; /** *

* The engine type that is obtained from the server when the backup is created. *

*/ private String engine; /** *

* The engine model that is obtained from the server when the backup is created. *

*/ private String engineModel; /** *

* The engine version that is obtained from the server when the backup is created. *

*/ private String engineVersion; /** *

* The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this value is * stored, you are not required to provide the InstanceProfileArn again if you restore a backup. *

*/ private String instanceProfileArn; /** *

* The instance type that is obtained from the server when the backup is created. *

*/ private String instanceType; /** *

* The key pair that is obtained from the server when the backup is created. *

*/ private String keyPair; /** *

* The preferred backup period that is obtained from the server when the backup is created. *

*/ private String preferredBackupWindow; /** *

* The preferred maintenance period that is obtained from the server when the backup is created. *

*/ private String preferredMaintenanceWindow; /** *

* This field is deprecated and is no longer used. *

*/ @Deprecated private Integer s3DataSize; /** *

* This field is deprecated and is no longer used. *

*/ @Deprecated private String s3DataUrl; /** *

* The Amazon S3 URL of the backup's log file. *

*/ private String s3LogUrl; /** *

* The security group IDs that are obtained from the server when the backup is created. *

*/ private java.util.List securityGroupIds; /** *

* The name of the server from which the backup was made. *

*/ private String serverName; /** *

* The service role ARN that is obtained from the server when the backup is created. *

*/ private String serviceRoleArn; /** *

* The status of a backup while in progress. *

*/ private String status; /** *

* An informational message about backup status. *

*/ private String statusDescription; /** *

* The subnet IDs that are obtained from the server when the backup is created. *

*/ private java.util.List subnetIds; /** *

* The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created. *

*/ private String toolsVersion; /** *

* The IAM user ARN of the requester for manual backups. This field is empty for automated backups. *

*/ private String userArn; /** *

* The ARN of the backup. *

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

* The ARN of the backup. *

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

* The ARN of the backup. *

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

* The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS *

* * @param backupId * The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS */ public void setBackupId(String backupId) { this.backupId = backupId; } /** *

* The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS *

* * @return The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS */ public String getBackupId() { return this.backupId; } /** *

* The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS *

* * @param backupId * The generated ID of the backup. Example: myServerName-yyyyMMddHHmmssSSS * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withBackupId(String backupId) { setBackupId(backupId); return this; } /** *

* The backup type. Valid values are automated or manual. *

* * @param backupType * The backup type. Valid values are automated or manual. * @see BackupType */ public void setBackupType(String backupType) { this.backupType = backupType; } /** *

* The backup type. Valid values are automated or manual. *

* * @return The backup type. Valid values are automated or manual. * @see BackupType */ public String getBackupType() { return this.backupType; } /** *

* The backup type. Valid values are automated or manual. *

* * @param backupType * The backup type. Valid values are automated or manual. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupType */ public Backup withBackupType(String backupType) { setBackupType(backupType); return this; } /** *

* The backup type. Valid values are automated or manual. *

* * @param backupType * The backup type. Valid values are automated or manual. * @see BackupType */ public void setBackupType(BackupType backupType) { withBackupType(backupType); } /** *

* The backup type. Valid values are automated or manual. *

* * @param backupType * The backup type. Valid values are automated or manual. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupType */ public Backup withBackupType(BackupType backupType) { this.backupType = backupType.toString(); return this; } /** *

* The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z *

* * @param createdAt * The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z *

* * @return The time stamp when the backup was created in the database. Example: * 2016-07-29T13:38:47.520Z */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z *

* * @param createdAt * The time stamp when the backup was created in the database. Example: 2016-07-29T13:38:47.520Z * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* A user-provided description for a manual backup. This field is empty for automated backups. *

* * @param description * A user-provided description for a manual backup. This field is empty for automated backups. */ public void setDescription(String description) { this.description = description; } /** *

* A user-provided description for a manual backup. This field is empty for automated backups. *

* * @return A user-provided description for a manual backup. This field is empty for automated backups. */ public String getDescription() { return this.description; } /** *

* A user-provided description for a manual backup. This field is empty for automated backups. *

* * @param description * A user-provided description for a manual backup. This field is empty for automated backups. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withDescription(String description) { setDescription(description); return this; } /** *

* The engine type that is obtained from the server when the backup is created. *

* * @param engine * The engine type that is obtained from the server when the backup is created. */ public void setEngine(String engine) { this.engine = engine; } /** *

* The engine type that is obtained from the server when the backup is created. *

* * @return The engine type that is obtained from the server when the backup is created. */ public String getEngine() { return this.engine; } /** *

* The engine type that is obtained from the server when the backup is created. *

* * @param engine * The engine type that is obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withEngine(String engine) { setEngine(engine); return this; } /** *

* The engine model that is obtained from the server when the backup is created. *

* * @param engineModel * The engine model that is obtained from the server when the backup is created. */ public void setEngineModel(String engineModel) { this.engineModel = engineModel; } /** *

* The engine model that is obtained from the server when the backup is created. *

* * @return The engine model that is obtained from the server when the backup is created. */ public String getEngineModel() { return this.engineModel; } /** *

* The engine model that is obtained from the server when the backup is created. *

* * @param engineModel * The engine model that is obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withEngineModel(String engineModel) { setEngineModel(engineModel); return this; } /** *

* The engine version that is obtained from the server when the backup is created. *

* * @param engineVersion * The engine version that is obtained from the server when the backup is created. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* The engine version that is obtained from the server when the backup is created. *

* * @return The engine version that is obtained from the server when the backup is created. */ public String getEngineVersion() { return this.engineVersion; } /** *

* The engine version that is obtained from the server when the backup is created. *

* * @param engineVersion * The engine version that is obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *

* The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this value is * stored, you are not required to provide the InstanceProfileArn again if you restore a backup. *

* * @param instanceProfileArn * The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this * value is stored, you are not required to provide the InstanceProfileArn again if you restore a backup. */ public void setInstanceProfileArn(String instanceProfileArn) { this.instanceProfileArn = instanceProfileArn; } /** *

* The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this value is * stored, you are not required to provide the InstanceProfileArn again if you restore a backup. *

* * @return The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this * value is stored, you are not required to provide the InstanceProfileArn again if you restore a backup. */ public String getInstanceProfileArn() { return this.instanceProfileArn; } /** *

* The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this value is * stored, you are not required to provide the InstanceProfileArn again if you restore a backup. *

* * @param instanceProfileArn * The EC2 instance profile ARN that is obtained from the server when the backup is created. Because this * value is stored, you are not required to provide the InstanceProfileArn again if you restore a backup. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withInstanceProfileArn(String instanceProfileArn) { setInstanceProfileArn(instanceProfileArn); return this; } /** *

* The instance type that is obtained from the server when the backup is created. *

* * @param instanceType * The instance type that is obtained from the server when the backup is created. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** *

* The instance type that is obtained from the server when the backup is created. *

* * @return The instance type that is obtained from the server when the backup is created. */ public String getInstanceType() { return this.instanceType; } /** *

* The instance type that is obtained from the server when the backup is created. *

* * @param instanceType * The instance type that is obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *

* The key pair that is obtained from the server when the backup is created. *

* * @param keyPair * The key pair that is obtained from the server when the backup is created. */ public void setKeyPair(String keyPair) { this.keyPair = keyPair; } /** *

* The key pair that is obtained from the server when the backup is created. *

* * @return The key pair that is obtained from the server when the backup is created. */ public String getKeyPair() { return this.keyPair; } /** *

* The key pair that is obtained from the server when the backup is created. *

* * @param keyPair * The key pair that is obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withKeyPair(String keyPair) { setKeyPair(keyPair); return this; } /** *

* The preferred backup period that is obtained from the server when the backup is created. *

* * @param preferredBackupWindow * The preferred backup period that is obtained from the server when the backup is created. */ public void setPreferredBackupWindow(String preferredBackupWindow) { this.preferredBackupWindow = preferredBackupWindow; } /** *

* The preferred backup period that is obtained from the server when the backup is created. *

* * @return The preferred backup period that is obtained from the server when the backup is created. */ public String getPreferredBackupWindow() { return this.preferredBackupWindow; } /** *

* The preferred backup period that is obtained from the server when the backup is created. *

* * @param preferredBackupWindow * The preferred backup period that is obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withPreferredBackupWindow(String preferredBackupWindow) { setPreferredBackupWindow(preferredBackupWindow); return this; } /** *

* The preferred maintenance period that is obtained from the server when the backup is created. *

* * @param preferredMaintenanceWindow * The preferred maintenance period that is obtained from the server when the backup is created. */ public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = preferredMaintenanceWindow; } /** *

* The preferred maintenance period that is obtained from the server when the backup is created. *

* * @return The preferred maintenance period that is obtained from the server when the backup is created. */ public String getPreferredMaintenanceWindow() { return this.preferredMaintenanceWindow; } /** *

* The preferred maintenance period that is obtained from the server when the backup is created. *

* * @param preferredMaintenanceWindow * The preferred maintenance period that is obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withPreferredMaintenanceWindow(String preferredMaintenanceWindow) { setPreferredMaintenanceWindow(preferredMaintenanceWindow); return this; } /** *

* This field is deprecated and is no longer used. *

* * @param s3DataSize * This field is deprecated and is no longer used. */ @Deprecated public void setS3DataSize(Integer s3DataSize) { this.s3DataSize = s3DataSize; } /** *

* This field is deprecated and is no longer used. *

* * @return This field is deprecated and is no longer used. */ @Deprecated public Integer getS3DataSize() { return this.s3DataSize; } /** *

* This field is deprecated and is no longer used. *

* * @param s3DataSize * This field is deprecated and is no longer used. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public Backup withS3DataSize(Integer s3DataSize) { setS3DataSize(s3DataSize); return this; } /** *

* This field is deprecated and is no longer used. *

* * @param s3DataUrl * This field is deprecated and is no longer used. */ @Deprecated public void setS3DataUrl(String s3DataUrl) { this.s3DataUrl = s3DataUrl; } /** *

* This field is deprecated and is no longer used. *

* * @return This field is deprecated and is no longer used. */ @Deprecated public String getS3DataUrl() { return this.s3DataUrl; } /** *

* This field is deprecated and is no longer used. *

* * @param s3DataUrl * This field is deprecated and is no longer used. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public Backup withS3DataUrl(String s3DataUrl) { setS3DataUrl(s3DataUrl); return this; } /** *

* The Amazon S3 URL of the backup's log file. *

* * @param s3LogUrl * The Amazon S3 URL of the backup's log file. */ public void setS3LogUrl(String s3LogUrl) { this.s3LogUrl = s3LogUrl; } /** *

* The Amazon S3 URL of the backup's log file. *

* * @return The Amazon S3 URL of the backup's log file. */ public String getS3LogUrl() { return this.s3LogUrl; } /** *

* The Amazon S3 URL of the backup's log file. *

* * @param s3LogUrl * The Amazon S3 URL of the backup's log file. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withS3LogUrl(String s3LogUrl) { setS3LogUrl(s3LogUrl); return this; } /** *

* The security group IDs that are obtained from the server when the backup is created. *

* * @return The security group IDs that are obtained from the server when the backup is created. */ public java.util.List getSecurityGroupIds() { return securityGroupIds; } /** *

* The security group IDs that are obtained from the server when the backup is created. *

* * @param securityGroupIds * The security group IDs that are obtained from the server when the backup is created. */ public void setSecurityGroupIds(java.util.Collection securityGroupIds) { if (securityGroupIds == null) { this.securityGroupIds = null; return; } this.securityGroupIds = new java.util.ArrayList(securityGroupIds); } /** *

* The security group IDs that are obtained from the server when the backup is created. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSecurityGroupIds(java.util.Collection)} or {@link #withSecurityGroupIds(java.util.Collection)} if you * want to override the existing values. *

* * @param securityGroupIds * The security group IDs that are obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withSecurityGroupIds(String... securityGroupIds) { if (this.securityGroupIds == null) { setSecurityGroupIds(new java.util.ArrayList(securityGroupIds.length)); } for (String ele : securityGroupIds) { this.securityGroupIds.add(ele); } return this; } /** *

* The security group IDs that are obtained from the server when the backup is created. *

* * @param securityGroupIds * The security group IDs that are obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withSecurityGroupIds(java.util.Collection securityGroupIds) { setSecurityGroupIds(securityGroupIds); return this; } /** *

* The name of the server from which the backup was made. *

* * @param serverName * The name of the server from which the backup was made. */ public void setServerName(String serverName) { this.serverName = serverName; } /** *

* The name of the server from which the backup was made. *

* * @return The name of the server from which the backup was made. */ public String getServerName() { return this.serverName; } /** *

* The name of the server from which the backup was made. *

* * @param serverName * The name of the server from which the backup was made. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withServerName(String serverName) { setServerName(serverName); return this; } /** *

* The service role ARN that is obtained from the server when the backup is created. *

* * @param serviceRoleArn * The service role ARN that is obtained from the server when the backup is created. */ public void setServiceRoleArn(String serviceRoleArn) { this.serviceRoleArn = serviceRoleArn; } /** *

* The service role ARN that is obtained from the server when the backup is created. *

* * @return The service role ARN that is obtained from the server when the backup is created. */ public String getServiceRoleArn() { return this.serviceRoleArn; } /** *

* The service role ARN that is obtained from the server when the backup is created. *

* * @param serviceRoleArn * The service role ARN that is obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withServiceRoleArn(String serviceRoleArn) { setServiceRoleArn(serviceRoleArn); return this; } /** *

* The status of a backup while in progress. *

* * @param status * The status of a backup while in progress. * @see BackupStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of a backup while in progress. *

* * @return The status of a backup while in progress. * @see BackupStatus */ public String getStatus() { return this.status; } /** *

* The status of a backup while in progress. *

* * @param status * The status of a backup while in progress. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupStatus */ public Backup withStatus(String status) { setStatus(status); return this; } /** *

* The status of a backup while in progress. *

* * @param status * The status of a backup while in progress. * @see BackupStatus */ public void setStatus(BackupStatus status) { withStatus(status); } /** *

* The status of a backup while in progress. *

* * @param status * The status of a backup while in progress. * @return Returns a reference to this object so that method calls can be chained together. * @see BackupStatus */ public Backup withStatus(BackupStatus status) { this.status = status.toString(); return this; } /** *

* An informational message about backup status. *

* * @param statusDescription * An informational message about backup status. */ public void setStatusDescription(String statusDescription) { this.statusDescription = statusDescription; } /** *

* An informational message about backup status. *

* * @return An informational message about backup status. */ public String getStatusDescription() { return this.statusDescription; } /** *

* An informational message about backup status. *

* * @param statusDescription * An informational message about backup status. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withStatusDescription(String statusDescription) { setStatusDescription(statusDescription); return this; } /** *

* The subnet IDs that are obtained from the server when the backup is created. *

* * @return The subnet IDs that are obtained from the server when the backup is created. */ public java.util.List getSubnetIds() { return subnetIds; } /** *

* The subnet IDs that are obtained from the server when the backup is created. *

* * @param subnetIds * The subnet IDs that are obtained from the server when the backup is created. */ public void setSubnetIds(java.util.Collection subnetIds) { if (subnetIds == null) { this.subnetIds = null; return; } this.subnetIds = new java.util.ArrayList(subnetIds); } /** *

* The subnet IDs that are obtained from the server when the backup is created. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to * override the existing values. *

* * @param subnetIds * The subnet IDs that are obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withSubnetIds(String... subnetIds) { if (this.subnetIds == null) { setSubnetIds(new java.util.ArrayList(subnetIds.length)); } for (String ele : subnetIds) { this.subnetIds.add(ele); } return this; } /** *

* The subnet IDs that are obtained from the server when the backup is created. *

* * @param subnetIds * The subnet IDs that are obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withSubnetIds(java.util.Collection subnetIds) { setSubnetIds(subnetIds); return this; } /** *

* The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created. *

* * @param toolsVersion * The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created. */ public void setToolsVersion(String toolsVersion) { this.toolsVersion = toolsVersion; } /** *

* The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created. *

* * @return The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is * created. */ public String getToolsVersion() { return this.toolsVersion; } /** *

* The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created. *

* * @param toolsVersion * The version of AWS OpsWorks CM-specific tools that is obtained from the server when the backup is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withToolsVersion(String toolsVersion) { setToolsVersion(toolsVersion); return this; } /** *

* The IAM user ARN of the requester for manual backups. This field is empty for automated backups. *

* * @param userArn * The IAM user ARN of the requester for manual backups. This field is empty for automated backups. */ public void setUserArn(String userArn) { this.userArn = userArn; } /** *

* The IAM user ARN of the requester for manual backups. This field is empty for automated backups. *

* * @return The IAM user ARN of the requester for manual backups. This field is empty for automated backups. */ public String getUserArn() { return this.userArn; } /** *

* The IAM user ARN of the requester for manual backups. This field is empty for automated backups. *

* * @param userArn * The IAM user ARN of the requester for manual backups. This field is empty for automated backups. * @return Returns a reference to this object so that method calls can be chained together. */ public Backup withUserArn(String userArn) { setUserArn(userArn); 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 (getBackupArn() != null) sb.append("BackupArn: ").append(getBackupArn()).append(","); if (getBackupId() != null) sb.append("BackupId: ").append(getBackupId()).append(","); if (getBackupType() != null) sb.append("BackupType: ").append(getBackupType()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getEngine() != null) sb.append("Engine: ").append(getEngine()).append(","); if (getEngineModel() != null) sb.append("EngineModel: ").append(getEngineModel()).append(","); if (getEngineVersion() != null) sb.append("EngineVersion: ").append(getEngineVersion()).append(","); if (getInstanceProfileArn() != null) sb.append("InstanceProfileArn: ").append(getInstanceProfileArn()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getKeyPair() != null) sb.append("KeyPair: ").append(getKeyPair()).append(","); if (getPreferredBackupWindow() != null) sb.append("PreferredBackupWindow: ").append(getPreferredBackupWindow()).append(","); if (getPreferredMaintenanceWindow() != null) sb.append("PreferredMaintenanceWindow: ").append(getPreferredMaintenanceWindow()).append(","); if (getS3DataSize() != null) sb.append("S3DataSize: ").append(getS3DataSize()).append(","); if (getS3DataUrl() != null) sb.append("S3DataUrl: ").append(getS3DataUrl()).append(","); if (getS3LogUrl() != null) sb.append("S3LogUrl: ").append(getS3LogUrl()).append(","); if (getSecurityGroupIds() != null) sb.append("SecurityGroupIds: ").append(getSecurityGroupIds()).append(","); if (getServerName() != null) sb.append("ServerName: ").append(getServerName()).append(","); if (getServiceRoleArn() != null) sb.append("ServiceRoleArn: ").append(getServiceRoleArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusDescription() != null) sb.append("StatusDescription: ").append(getStatusDescription()).append(","); if (getSubnetIds() != null) sb.append("SubnetIds: ").append(getSubnetIds()).append(","); if (getToolsVersion() != null) sb.append("ToolsVersion: ").append(getToolsVersion()).append(","); if (getUserArn() != null) sb.append("UserArn: ").append(getUserArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Backup == false) return false; Backup other = (Backup) obj; if (other.getBackupArn() == null ^ this.getBackupArn() == null) return false; if (other.getBackupArn() != null && other.getBackupArn().equals(this.getBackupArn()) == false) return false; if (other.getBackupId() == null ^ this.getBackupId() == null) return false; if (other.getBackupId() != null && other.getBackupId().equals(this.getBackupId()) == false) return false; if (other.getBackupType() == null ^ this.getBackupType() == null) return false; if (other.getBackupType() != null && other.getBackupType().equals(this.getBackupType()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getEngine() == null ^ this.getEngine() == null) return false; if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == false) return false; if (other.getEngineModel() == null ^ this.getEngineModel() == null) return false; if (other.getEngineModel() != null && other.getEngineModel().equals(this.getEngineModel()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getInstanceProfileArn() == null ^ this.getInstanceProfileArn() == null) return false; if (other.getInstanceProfileArn() != null && other.getInstanceProfileArn().equals(this.getInstanceProfileArn()) == false) return false; if (other.getInstanceType() == null ^ this.getInstanceType() == null) return false; if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false) return false; if (other.getKeyPair() == null ^ this.getKeyPair() == null) return false; if (other.getKeyPair() != null && other.getKeyPair().equals(this.getKeyPair()) == false) return false; if (other.getPreferredBackupWindow() == null ^ this.getPreferredBackupWindow() == null) return false; if (other.getPreferredBackupWindow() != null && other.getPreferredBackupWindow().equals(this.getPreferredBackupWindow()) == false) return false; if (other.getPreferredMaintenanceWindow() == null ^ this.getPreferredMaintenanceWindow() == null) return false; if (other.getPreferredMaintenanceWindow() != null && other.getPreferredMaintenanceWindow().equals(this.getPreferredMaintenanceWindow()) == false) return false; if (other.getS3DataSize() == null ^ this.getS3DataSize() == null) return false; if (other.getS3DataSize() != null && other.getS3DataSize().equals(this.getS3DataSize()) == false) return false; if (other.getS3DataUrl() == null ^ this.getS3DataUrl() == null) return false; if (other.getS3DataUrl() != null && other.getS3DataUrl().equals(this.getS3DataUrl()) == false) return false; if (other.getS3LogUrl() == null ^ this.getS3LogUrl() == null) return false; if (other.getS3LogUrl() != null && other.getS3LogUrl().equals(this.getS3LogUrl()) == false) return false; if (other.getSecurityGroupIds() == null ^ this.getSecurityGroupIds() == null) return false; if (other.getSecurityGroupIds() != null && other.getSecurityGroupIds().equals(this.getSecurityGroupIds()) == false) return false; if (other.getServerName() == null ^ this.getServerName() == null) return false; if (other.getServerName() != null && other.getServerName().equals(this.getServerName()) == false) return false; if (other.getServiceRoleArn() == null ^ this.getServiceRoleArn() == null) return false; if (other.getServiceRoleArn() != null && other.getServiceRoleArn().equals(this.getServiceRoleArn()) == 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.getStatusDescription() == null ^ this.getStatusDescription() == null) return false; if (other.getStatusDescription() != null && other.getStatusDescription().equals(this.getStatusDescription()) == false) return false; if (other.getSubnetIds() == null ^ this.getSubnetIds() == null) return false; if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == false) return false; if (other.getToolsVersion() == null ^ this.getToolsVersion() == null) return false; if (other.getToolsVersion() != null && other.getToolsVersion().equals(this.getToolsVersion()) == false) return false; if (other.getUserArn() == null ^ this.getUserArn() == null) return false; if (other.getUserArn() != null && other.getUserArn().equals(this.getUserArn()) == 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 + ((getBackupId() == null) ? 0 : getBackupId().hashCode()); hashCode = prime * hashCode + ((getBackupType() == null) ? 0 : getBackupType().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getEngineModel() == null) ? 0 : getEngineModel().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); hashCode = prime * hashCode + ((getInstanceProfileArn() == null) ? 0 : getInstanceProfileArn().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getKeyPair() == null) ? 0 : getKeyPair().hashCode()); hashCode = prime * hashCode + ((getPreferredBackupWindow() == null) ? 0 : getPreferredBackupWindow().hashCode()); hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getS3DataSize() == null) ? 0 : getS3DataSize().hashCode()); hashCode = prime * hashCode + ((getS3DataUrl() == null) ? 0 : getS3DataUrl().hashCode()); hashCode = prime * hashCode + ((getS3LogUrl() == null) ? 0 : getS3LogUrl().hashCode()); hashCode = prime * hashCode + ((getSecurityGroupIds() == null) ? 0 : getSecurityGroupIds().hashCode()); hashCode = prime * hashCode + ((getServerName() == null) ? 0 : getServerName().hashCode()); hashCode = prime * hashCode + ((getServiceRoleArn() == null) ? 0 : getServiceRoleArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusDescription() == null) ? 0 : getStatusDescription().hashCode()); hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode()); hashCode = prime * hashCode + ((getToolsVersion() == null) ? 0 : getToolsVersion().hashCode()); hashCode = prime * hashCode + ((getUserArn() == null) ? 0 : getUserArn().hashCode()); return hashCode; } @Override public Backup clone() { try { return (Backup) 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.opsworkscm.model.transform.BackupMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy