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

com.amazonaws.services.datasync.model.TaskScheduleDetails Maven / Gradle / Ivy

Go to download

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

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

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

/**
 * 

* Provides information about your DataSync task schedule. *

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

* Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables * your schedule because of a repeated error, you can see when the schedule was disabled. *

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

* Provides a reason if the task schedule is disabled. *

*

* If your schedule is disabled by USER, you see a Manually disabled by user. message. *

*

* If your schedule is disabled by SERVICE, you see an error message to help you understand why the * task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers. *

*/ private String disabledReason; /** *

* Indicates how your task schedule was disabled. *

*
    *
  • *

    * USER - Your schedule was manually disabled by using the UpdateTask operation or * DataSync console. *

    *
  • *
  • *

    * SERVICE - Your schedule was automatically disabled by DataSync because the task failed repeatedly * with the same error. *

    *
  • *
*/ private String disabledBy; /** *

* Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables * your schedule because of a repeated error, you can see when the schedule was disabled. *

* * @param statusUpdateTime * Indicates the last time the status of your task schedule changed. For example, if DataSync automatically * disables your schedule because of a repeated error, you can see when the schedule was disabled. */ public void setStatusUpdateTime(java.util.Date statusUpdateTime) { this.statusUpdateTime = statusUpdateTime; } /** *

* Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables * your schedule because of a repeated error, you can see when the schedule was disabled. *

* * @return Indicates the last time the status of your task schedule changed. For example, if DataSync automatically * disables your schedule because of a repeated error, you can see when the schedule was disabled. */ public java.util.Date getStatusUpdateTime() { return this.statusUpdateTime; } /** *

* Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables * your schedule because of a repeated error, you can see when the schedule was disabled. *

* * @param statusUpdateTime * Indicates the last time the status of your task schedule changed. For example, if DataSync automatically * disables your schedule because of a repeated error, you can see when the schedule was disabled. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskScheduleDetails withStatusUpdateTime(java.util.Date statusUpdateTime) { setStatusUpdateTime(statusUpdateTime); return this; } /** *

* Provides a reason if the task schedule is disabled. *

*

* If your schedule is disabled by USER, you see a Manually disabled by user. message. *

*

* If your schedule is disabled by SERVICE, you see an error message to help you understand why the * task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers. *

* * @param disabledReason * Provides a reason if the task schedule is disabled.

*

* If your schedule is disabled by USER, you see a Manually disabled by user. * message. *

*

* If your schedule is disabled by SERVICE, you see an error message to help you understand why * the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers. */ public void setDisabledReason(String disabledReason) { this.disabledReason = disabledReason; } /** *

* Provides a reason if the task schedule is disabled. *

*

* If your schedule is disabled by USER, you see a Manually disabled by user. message. *

*

* If your schedule is disabled by SERVICE, you see an error message to help you understand why the * task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers. *

* * @return Provides a reason if the task schedule is disabled.

*

* If your schedule is disabled by USER, you see a Manually disabled by user. * message. *

*

* If your schedule is disabled by SERVICE, you see an error message to help you understand why * the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers. */ public String getDisabledReason() { return this.disabledReason; } /** *

* Provides a reason if the task schedule is disabled. *

*

* If your schedule is disabled by USER, you see a Manually disabled by user. message. *

*

* If your schedule is disabled by SERVICE, you see an error message to help you understand why the * task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers. *

* * @param disabledReason * Provides a reason if the task schedule is disabled.

*

* If your schedule is disabled by USER, you see a Manually disabled by user. * message. *

*

* If your schedule is disabled by SERVICE, you see an error message to help you understand why * the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers. * @return Returns a reference to this object so that method calls can be chained together. */ public TaskScheduleDetails withDisabledReason(String disabledReason) { setDisabledReason(disabledReason); return this; } /** *

* Indicates how your task schedule was disabled. *

*
    *
  • *

    * USER - Your schedule was manually disabled by using the UpdateTask operation or * DataSync console. *

    *
  • *
  • *

    * SERVICE - Your schedule was automatically disabled by DataSync because the task failed repeatedly * with the same error. *

    *
  • *
* * @param disabledBy * Indicates how your task schedule was disabled.

*
    *
  • *

    * USER - Your schedule was manually disabled by using the UpdateTask operation * or DataSync console. *

    *
  • *
  • *

    * SERVICE - Your schedule was automatically disabled by DataSync because the task failed * repeatedly with the same error. *

    *
  • * @see ScheduleDisabledBy */ public void setDisabledBy(String disabledBy) { this.disabledBy = disabledBy; } /** *

    * Indicates how your task schedule was disabled. *

    *
      *
    • *

      * USER - Your schedule was manually disabled by using the UpdateTask operation or * DataSync console. *

      *
    • *
    • *

      * SERVICE - Your schedule was automatically disabled by DataSync because the task failed repeatedly * with the same error. *

      *
    • *
    * * @return Indicates how your task schedule was disabled.

    *
      *
    • *

      * USER - Your schedule was manually disabled by using the UpdateTask operation * or DataSync console. *

      *
    • *
    • *

      * SERVICE - Your schedule was automatically disabled by DataSync because the task failed * repeatedly with the same error. *

      *
    • * @see ScheduleDisabledBy */ public String getDisabledBy() { return this.disabledBy; } /** *

      * Indicates how your task schedule was disabled. *

      *
        *
      • *

        * USER - Your schedule was manually disabled by using the UpdateTask operation or * DataSync console. *

        *
      • *
      • *

        * SERVICE - Your schedule was automatically disabled by DataSync because the task failed repeatedly * with the same error. *

        *
      • *
      * * @param disabledBy * Indicates how your task schedule was disabled.

      *
        *
      • *

        * USER - Your schedule was manually disabled by using the UpdateTask operation * or DataSync console. *

        *
      • *
      • *

        * SERVICE - Your schedule was automatically disabled by DataSync because the task failed * repeatedly with the same error. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see ScheduleDisabledBy */ public TaskScheduleDetails withDisabledBy(String disabledBy) { setDisabledBy(disabledBy); return this; } /** *

        * Indicates how your task schedule was disabled. *

        *
          *
        • *

          * USER - Your schedule was manually disabled by using the UpdateTask operation or * DataSync console. *

          *
        • *
        • *

          * SERVICE - Your schedule was automatically disabled by DataSync because the task failed repeatedly * with the same error. *

          *
        • *
        * * @param disabledBy * Indicates how your task schedule was disabled.

        *
          *
        • *

          * USER - Your schedule was manually disabled by using the UpdateTask operation * or DataSync console. *

          *
        • *
        • *

          * SERVICE - Your schedule was automatically disabled by DataSync because the task failed * repeatedly with the same error. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see ScheduleDisabledBy */ public TaskScheduleDetails withDisabledBy(ScheduleDisabledBy disabledBy) { this.disabledBy = disabledBy.toString(); 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 (getStatusUpdateTime() != null) sb.append("StatusUpdateTime: ").append(getStatusUpdateTime()).append(","); if (getDisabledReason() != null) sb.append("DisabledReason: ").append(getDisabledReason()).append(","); if (getDisabledBy() != null) sb.append("DisabledBy: ").append(getDisabledBy()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TaskScheduleDetails == false) return false; TaskScheduleDetails other = (TaskScheduleDetails) obj; if (other.getStatusUpdateTime() == null ^ this.getStatusUpdateTime() == null) return false; if (other.getStatusUpdateTime() != null && other.getStatusUpdateTime().equals(this.getStatusUpdateTime()) == false) return false; if (other.getDisabledReason() == null ^ this.getDisabledReason() == null) return false; if (other.getDisabledReason() != null && other.getDisabledReason().equals(this.getDisabledReason()) == false) return false; if (other.getDisabledBy() == null ^ this.getDisabledBy() == null) return false; if (other.getDisabledBy() != null && other.getDisabledBy().equals(this.getDisabledBy()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatusUpdateTime() == null) ? 0 : getStatusUpdateTime().hashCode()); hashCode = prime * hashCode + ((getDisabledReason() == null) ? 0 : getDisabledReason().hashCode()); hashCode = prime * hashCode + ((getDisabledBy() == null) ? 0 : getDisabledBy().hashCode()); return hashCode; } @Override public TaskScheduleDetails clone() { try { return (TaskScheduleDetails) 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.datasync.model.transform.TaskScheduleDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy