/* * 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.ec2.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* Describes fast snapshot restores that were successfully enabled. *

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

* The ID of the snapshot. *

*/ private String snapshotId; /** *

* The Availability Zone. *

*/ private String availabilityZone; /** *

* The state of fast snapshot restores. *

*/ private String state; /** *

* The reason for the state transition. The possible values are as follows: *

* */ private String stateTransitionReason; /** *

* The ID of the Amazon Web Services account that enabled fast snapshot restores on the snapshot. *

*/ private String ownerId; /** *

* The Amazon Web Services owner alias that enabled fast snapshot restores on the snapshot. This is intended for * future use. *

*/ private String ownerAlias; /** *

* The time at which fast snapshot restores entered the enabling state. *

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

* The time at which fast snapshot restores entered the optimizing state. *

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

* The time at which fast snapshot restores entered the enabled state. *

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

* The time at which fast snapshot restores entered the disabling state. *

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

* The time at which fast snapshot restores entered the disabled state. *

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

* The ID of the snapshot. *

* * @param snapshotId * The ID of the snapshot. */ public void setSnapshotId(String snapshotId) { this.snapshotId = snapshotId; } /** *

* The ID of the snapshot. *

* * @return The ID of the snapshot. */ public String getSnapshotId() { return this.snapshotId; } /** *

* The ID of the snapshot. *

* * @param snapshotId * The ID of the snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public EnableFastSnapshotRestoreSuccessItem withSnapshotId(String snapshotId) { setSnapshotId(snapshotId); return this; } /** *

* The Availability Zone. *

* * @param availabilityZone * The Availability Zone. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** *

* The Availability Zone. *

* * @return The Availability Zone. */ public String getAvailabilityZone() { return this.availabilityZone; } /** *

* The Availability Zone. *

* * @param availabilityZone * The Availability Zone. * @return Returns a reference to this object so that method calls can be chained together. */ public EnableFastSnapshotRestoreSuccessItem withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** *

* The state of fast snapshot restores. *

* * @param state * The state of fast snapshot restores. * @see FastSnapshotRestoreStateCode */ public void setState(String state) { this.state = state; } /** *

* The state of fast snapshot restores. *

* * @return The state of fast snapshot restores. * @see FastSnapshotRestoreStateCode */ public String getState() { return this.state; } /** *

* The state of fast snapshot restores. *

* * @param state * The state of fast snapshot restores. * @return Returns a reference to this object so that method calls can be chained together. * @see FastSnapshotRestoreStateCode */ public EnableFastSnapshotRestoreSuccessItem withState(String state) { setState(state); return this; } /** *

* The state of fast snapshot restores. *

* * @param state * The state of fast snapshot restores. * @return Returns a reference to this object so that method calls can be chained together. * @see FastSnapshotRestoreStateCode */ public EnableFastSnapshotRestoreSuccessItem withState(FastSnapshotRestoreStateCode state) { this.state = state.toString(); return this; } /** *

* The reason for the state transition. The possible values are as follows: *

* * * @param stateTransitionReason * The reason for the state transition. The possible values are as follows:

*