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

com.amazonaws.services.backup.model.RestoreTestingPlanForCreate 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* This contains metadata about a restore testing plan. *

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

* Required: Algorithm; Required: Recovery point types; IncludeVaults (one or more). Optional: SelectionWindowDays * ('30' if not specified); ExcludeVaults (list of selectors), defaults to empty list if not listed. *

*/ private RestoreTestingRecoveryPointSelection recoveryPointSelection; /** *

* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be * changed after creation, and it must consist of only alphanumeric characters and underscores. *

*/ private String restoreTestingPlanName; /** *

* A CRON expression in specified timezone when a restore testing plan is executed. *

*/ private String scheduleExpression; /** *

* Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in * UTC. You can modify this to a specified timezone. *

*/ private String scheduleExpressionTimezone; /** *

* Defaults to 24 hours. *

*

* A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start * successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours * (one week). *

*/ private Integer startWindowHours; /** *

* Required: Algorithm; Required: Recovery point types; IncludeVaults (one or more). Optional: SelectionWindowDays * ('30' if not specified); ExcludeVaults (list of selectors), defaults to empty list if not listed. *

* * @param recoveryPointSelection * Required: Algorithm; Required: Recovery point types; IncludeVaults (one or more). Optional: * SelectionWindowDays ('30' if not specified); ExcludeVaults (list of selectors), defaults to empty list if * not listed. */ public void setRecoveryPointSelection(RestoreTestingRecoveryPointSelection recoveryPointSelection) { this.recoveryPointSelection = recoveryPointSelection; } /** *

* Required: Algorithm; Required: Recovery point types; IncludeVaults (one or more). Optional: SelectionWindowDays * ('30' if not specified); ExcludeVaults (list of selectors), defaults to empty list if not listed. *

* * @return Required: Algorithm; Required: Recovery point types; IncludeVaults (one or more). Optional: * SelectionWindowDays ('30' if not specified); ExcludeVaults (list of selectors), defaults to empty list if * not listed. */ public RestoreTestingRecoveryPointSelection getRecoveryPointSelection() { return this.recoveryPointSelection; } /** *

* Required: Algorithm; Required: Recovery point types; IncludeVaults (one or more). Optional: SelectionWindowDays * ('30' if not specified); ExcludeVaults (list of selectors), defaults to empty list if not listed. *

* * @param recoveryPointSelection * Required: Algorithm; Required: Recovery point types; IncludeVaults (one or more). Optional: * SelectionWindowDays ('30' if not specified); ExcludeVaults (list of selectors), defaults to empty list if * not listed. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTestingPlanForCreate withRecoveryPointSelection(RestoreTestingRecoveryPointSelection recoveryPointSelection) { setRecoveryPointSelection(recoveryPointSelection); return this; } /** *

* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be * changed after creation, and it must consist of only alphanumeric characters and underscores. *

* * @param restoreTestingPlanName * The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be * changed after creation, and it must consist of only alphanumeric characters and underscores. */ public void setRestoreTestingPlanName(String restoreTestingPlanName) { this.restoreTestingPlanName = restoreTestingPlanName; } /** *

* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be * changed after creation, and it must consist of only alphanumeric characters and underscores. *

* * @return The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot * be changed after creation, and it must consist of only alphanumeric characters and underscores. */ public String getRestoreTestingPlanName() { return this.restoreTestingPlanName; } /** *

* The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be * changed after creation, and it must consist of only alphanumeric characters and underscores. *

* * @param restoreTestingPlanName * The RestoreTestingPlanName is a unique string that is the name of the restore testing plan. This cannot be * changed after creation, and it must consist of only alphanumeric characters and underscores. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTestingPlanForCreate withRestoreTestingPlanName(String restoreTestingPlanName) { setRestoreTestingPlanName(restoreTestingPlanName); return this; } /** *

* A CRON expression in specified timezone when a restore testing plan is executed. *

* * @param scheduleExpression * A CRON expression in specified timezone when a restore testing plan is executed. */ public void setScheduleExpression(String scheduleExpression) { this.scheduleExpression = scheduleExpression; } /** *

* A CRON expression in specified timezone when a restore testing plan is executed. *

* * @return A CRON expression in specified timezone when a restore testing plan is executed. */ public String getScheduleExpression() { return this.scheduleExpression; } /** *

* A CRON expression in specified timezone when a restore testing plan is executed. *

* * @param scheduleExpression * A CRON expression in specified timezone when a restore testing plan is executed. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTestingPlanForCreate withScheduleExpression(String scheduleExpression) { setScheduleExpression(scheduleExpression); return this; } /** *

* Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in * UTC. You can modify this to a specified timezone. *

* * @param scheduleExpressionTimezone * Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions * are in UTC. You can modify this to a specified timezone. */ public void setScheduleExpressionTimezone(String scheduleExpressionTimezone) { this.scheduleExpressionTimezone = scheduleExpressionTimezone; } /** *

* Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in * UTC. You can modify this to a specified timezone. *

* * @return Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions * are in UTC. You can modify this to a specified timezone. */ public String getScheduleExpressionTimezone() { return this.scheduleExpressionTimezone; } /** *

* Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions are in * UTC. You can modify this to a specified timezone. *

* * @param scheduleExpressionTimezone * Optional. This is the timezone in which the schedule expression is set. By default, ScheduleExpressions * are in UTC. You can modify this to a specified timezone. * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTestingPlanForCreate withScheduleExpressionTimezone(String scheduleExpressionTimezone) { setScheduleExpressionTimezone(scheduleExpressionTimezone); return this; } /** *

* Defaults to 24 hours. *

*

* A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start * successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours * (one week). *

* * @param startWindowHours * Defaults to 24 hours.

*

* A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start * successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 * hours (one week). */ public void setStartWindowHours(Integer startWindowHours) { this.startWindowHours = startWindowHours; } /** *

* Defaults to 24 hours. *

*

* A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start * successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours * (one week). *

* * @return Defaults to 24 hours.

*

* A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start * successfully. This value is optional. If this value is included, this parameter has a maximum value of * 168 hours (one week). */ public Integer getStartWindowHours() { return this.startWindowHours; } /** *

* Defaults to 24 hours. *

*

* A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start * successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours * (one week). *

* * @param startWindowHours * Defaults to 24 hours.

*

* A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start * successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 * hours (one week). * @return Returns a reference to this object so that method calls can be chained together. */ public RestoreTestingPlanForCreate withStartWindowHours(Integer startWindowHours) { setStartWindowHours(startWindowHours); 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 (getRecoveryPointSelection() != null) sb.append("RecoveryPointSelection: ").append(getRecoveryPointSelection()).append(","); if (getRestoreTestingPlanName() != null) sb.append("RestoreTestingPlanName: ").append(getRestoreTestingPlanName()).append(","); if (getScheduleExpression() != null) sb.append("ScheduleExpression: ").append(getScheduleExpression()).append(","); if (getScheduleExpressionTimezone() != null) sb.append("ScheduleExpressionTimezone: ").append(getScheduleExpressionTimezone()).append(","); if (getStartWindowHours() != null) sb.append("StartWindowHours: ").append(getStartWindowHours()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RestoreTestingPlanForCreate == false) return false; RestoreTestingPlanForCreate other = (RestoreTestingPlanForCreate) obj; if (other.getRecoveryPointSelection() == null ^ this.getRecoveryPointSelection() == null) return false; if (other.getRecoveryPointSelection() != null && other.getRecoveryPointSelection().equals(this.getRecoveryPointSelection()) == false) return false; if (other.getRestoreTestingPlanName() == null ^ this.getRestoreTestingPlanName() == null) return false; if (other.getRestoreTestingPlanName() != null && other.getRestoreTestingPlanName().equals(this.getRestoreTestingPlanName()) == false) return false; if (other.getScheduleExpression() == null ^ this.getScheduleExpression() == null) return false; if (other.getScheduleExpression() != null && other.getScheduleExpression().equals(this.getScheduleExpression()) == false) return false; if (other.getScheduleExpressionTimezone() == null ^ this.getScheduleExpressionTimezone() == null) return false; if (other.getScheduleExpressionTimezone() != null && other.getScheduleExpressionTimezone().equals(this.getScheduleExpressionTimezone()) == false) return false; if (other.getStartWindowHours() == null ^ this.getStartWindowHours() == null) return false; if (other.getStartWindowHours() != null && other.getStartWindowHours().equals(this.getStartWindowHours()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRecoveryPointSelection() == null) ? 0 : getRecoveryPointSelection().hashCode()); hashCode = prime * hashCode + ((getRestoreTestingPlanName() == null) ? 0 : getRestoreTestingPlanName().hashCode()); hashCode = prime * hashCode + ((getScheduleExpression() == null) ? 0 : getScheduleExpression().hashCode()); hashCode = prime * hashCode + ((getScheduleExpressionTimezone() == null) ? 0 : getScheduleExpressionTimezone().hashCode()); hashCode = prime * hashCode + ((getStartWindowHours() == null) ? 0 : getStartWindowHours().hashCode()); return hashCode; } @Override public RestoreTestingPlanForCreate clone() { try { return (RestoreTestingPlanForCreate) 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.backup.model.transform.RestoreTestingPlanForCreateMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy