/* * 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.fsx.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Describes a specific Amazon FSx administrative action for the current Windows, Lustre, or OpenZFS file system. *

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

* The percentage-complete status of a STORAGE_OPTIMIZATION administrative action. Does not apply to * any other administrative action type. *

*/ private Integer progressPercent; /** *

* The time that the administrative action request was received. *

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

* Describes the status of the administrative action, as follows: *

* */ private String status; /** *

* Describes the target value for the administration action, provided in the UpdateFileSystem * operation. Returned for FILE_SYSTEM_UPDATE administrative actions. *

*/ private FileSystem targetFileSystemValues; private AdministrativeActionFailureDetails failureDetails; private Volume targetVolumeValues; private Snapshot targetSnapshotValues; /** * @param administrativeActionType * @see AdministrativeActionType */ public void setAdministrativeActionType(String administrativeActionType) { this.administrativeActionType = administrativeActionType; } /** * @return * @see AdministrativeActionType */ public String getAdministrativeActionType() { return this.administrativeActionType; } /** * @param administrativeActionType * @return Returns a reference to this object so that method calls can be chained together. * @see AdministrativeActionType */ public AdministrativeAction withAdministrativeActionType(String administrativeActionType) { setAdministrativeActionType(administrativeActionType); return this; } /** * @param administrativeActionType * @return Returns a reference to this object so that method calls can be chained together. * @see AdministrativeActionType */ public AdministrativeAction withAdministrativeActionType(AdministrativeActionType administrativeActionType) { this.administrativeActionType = administrativeActionType.toString(); return this; } /** *

* The percentage-complete status of a STORAGE_OPTIMIZATION administrative action. Does not apply to * any other administrative action type. *

* * @param progressPercent * The percentage-complete status of a STORAGE_OPTIMIZATION administrative action. Does not * apply to any other administrative action type. */ public void setProgressPercent(Integer progressPercent) { this.progressPercent = progressPercent; } /** *

* The percentage-complete status of a STORAGE_OPTIMIZATION administrative action. Does not apply to * any other administrative action type. *

* * @return The percentage-complete status of a STORAGE_OPTIMIZATION administrative action. Does not * apply to any other administrative action type. */ public Integer getProgressPercent() { return this.progressPercent; } /** *

* The percentage-complete status of a STORAGE_OPTIMIZATION administrative action. Does not apply to * any other administrative action type. *

* * @param progressPercent * The percentage-complete status of a STORAGE_OPTIMIZATION administrative action. Does not * apply to any other administrative action type. * @return Returns a reference to this object so that method calls can be chained together. */ public AdministrativeAction withProgressPercent(Integer progressPercent) { setProgressPercent(progressPercent); return this; } /** *

* The time that the administrative action request was received. *

* * @param requestTime * The time that the administrative action request was received. */ public void setRequestTime(java.util.Date requestTime) { this.requestTime = requestTime; } /** *

* The time that the administrative action request was received. *

* * @return The time that the administrative action request was received. */ public java.util.Date getRequestTime() { return this.requestTime; } /** *

* The time that the administrative action request was received. *

* * @param requestTime * The time that the administrative action request was received. * @return Returns a reference to this object so that method calls can be chained together. */ public AdministrativeAction withRequestTime(java.util.Date requestTime) { setRequestTime(requestTime); return this; } /** *

* Describes the status of the administrative action, as follows: *

* * * @param status * Describes the status of the administrative action, as follows:

*