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

com.amazonaws.services.redshiftserverless.model.UpdateScheduledActionRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Redshift Serverless module holds the client classes that are used for communicating with Redshift Serverless 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.redshiftserverless.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* Specifies whether to enable the scheduled action. *

*/ private Boolean enabled; /** *

* The end time in UTC of the scheduled action to update. *

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

* The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the * Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon Redshift * scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume permissions on * your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using * Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management Guide *

*/ private String roleArn; /** *

* The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule * invocations must be separated by at least one hour. Times are in UTC. *

*
    *
  • *

    * Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00. *

    *
  • *
  • *

    * Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For example, * "(0 10 ? * MON *)". For more information, see Cron * Expressions in the Amazon CloudWatch Events User Guide. *

    *
  • *
*/ private Schedule schedule; /** *

* The descripion of the scheduled action to update to. *

*/ private String scheduledActionDescription; /** *

* The name of the scheduled action to update to. *

*/ private String scheduledActionName; /** *

* The start time in UTC of the scheduled action to update to. *

*/ private java.util.Date startTime; private TargetAction targetAction; /** *

* Specifies whether to enable the scheduled action. *

* * @param enabled * Specifies whether to enable the scheduled action. */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** *

* Specifies whether to enable the scheduled action. *

* * @return Specifies whether to enable the scheduled action. */ public Boolean getEnabled() { return this.enabled; } /** *

* Specifies whether to enable the scheduled action. *

* * @param enabled * Specifies whether to enable the scheduled action. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withEnabled(Boolean enabled) { setEnabled(enabled); return this; } /** *

* Specifies whether to enable the scheduled action. *

* * @return Specifies whether to enable the scheduled action. */ public Boolean isEnabled() { return this.enabled; } /** *

* The end time in UTC of the scheduled action to update. *

* * @param endTime * The end time in UTC of the scheduled action to update. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end time in UTC of the scheduled action to update. *

* * @return The end time in UTC of the scheduled action to update. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end time in UTC of the scheduled action to update. *

* * @param endTime * The end time in UTC of the scheduled action to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the * Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon Redshift * scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume permissions on * your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using * Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management Guide *

* * @param roleArn * The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run * the Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon * Redshift scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume * permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift * scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management Guide */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the * Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon Redshift * scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume permissions on * your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using * Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management Guide *

* * @return The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run * the Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon * Redshift scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume * permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift * scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management Guide */ public String getRoleArn() { return this.roleArn; } /** *

* The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run the * Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon Redshift * scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume permissions on * your behalf. For more information about the IAM role to use with the Amazon Redshift scheduler, see Using * Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management Guide *

* * @param roleArn * The ARN of the IAM role to assume to run the scheduled action. This IAM role must have permission to run * the Amazon Redshift Serverless API operation in the scheduled action. This IAM role must allow the Amazon * Redshift scheduler to schedule creating snapshots (Principal scheduler.redshift.amazonaws.com) to assume * permissions on your behalf. For more information about the IAM role to use with the Amazon Redshift * scheduler, see Using Identity-Based Policies for Amazon Redshift in the Amazon Redshift Management Guide * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule * invocations must be separated by at least one hour. Times are in UTC. *

*
    *
  • *

    * Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00. *

    *
  • *
  • *

    * Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For example, * "(0 10 ? * MON *)". For more information, see Cron * Expressions in the Amazon CloudWatch Events User Guide. *

    *
  • *
* * @param schedule * The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule * invocations must be separated by at least one hour. Times are in UTC.

*
    *
  • *

    * Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00. *

    *
  • *
  • *

    * Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For * example, "(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide. *

    *
  • */ public void setSchedule(Schedule schedule) { this.schedule = schedule; } /** *

    * The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule * invocations must be separated by at least one hour. Times are in UTC. *

    *
      *
    • *

      * Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00. *

      *
    • *
    • *

      * Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For example, * "(0 10 ? * MON *)". For more information, see Cron * Expressions in the Amazon CloudWatch Events User Guide. *

      *
    • *
    * * @return The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule * invocations must be separated by at least one hour. Times are in UTC.

    *
      *
    • *

      * Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00 * . *

      *
    • *
    • *

      * Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For * example, "(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide. *

      *
    • */ public Schedule getSchedule() { return this.schedule; } /** *

      * The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule * invocations must be separated by at least one hour. Times are in UTC. *

      *
        *
      • *

        * Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00. *

        *
      • *
      • *

        * Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For example, * "(0 10 ? * MON *)". For more information, see Cron * Expressions in the Amazon CloudWatch Events User Guide. *

        *
      • *
      * * @param schedule * The schedule for a one-time (at timestamp format) or recurring (cron format) scheduled action. Schedule * invocations must be separated by at least one hour. Times are in UTC.

      *
        *
      • *

        * Format of at timestamp is yyyy-mm-ddThh:mm:ss. For example, 2016-03-04T17:27:00. *

        *
      • *
      • *

        * Format of cron expression is (Minutes Hours Day-of-month Month Day-of-week Year). For * example, "(0 10 ? * MON *)". For more information, see Cron Expressions in the Amazon CloudWatch Events User Guide. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withSchedule(Schedule schedule) { setSchedule(schedule); return this; } /** *

        * The descripion of the scheduled action to update to. *

        * * @param scheduledActionDescription * The descripion of the scheduled action to update to. */ public void setScheduledActionDescription(String scheduledActionDescription) { this.scheduledActionDescription = scheduledActionDescription; } /** *

        * The descripion of the scheduled action to update to. *

        * * @return The descripion of the scheduled action to update to. */ public String getScheduledActionDescription() { return this.scheduledActionDescription; } /** *

        * The descripion of the scheduled action to update to. *

        * * @param scheduledActionDescription * The descripion of the scheduled action to update to. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withScheduledActionDescription(String scheduledActionDescription) { setScheduledActionDescription(scheduledActionDescription); return this; } /** *

        * The name of the scheduled action to update to. *

        * * @param scheduledActionName * The name of the scheduled action to update to. */ public void setScheduledActionName(String scheduledActionName) { this.scheduledActionName = scheduledActionName; } /** *

        * The name of the scheduled action to update to. *

        * * @return The name of the scheduled action to update to. */ public String getScheduledActionName() { return this.scheduledActionName; } /** *

        * The name of the scheduled action to update to. *

        * * @param scheduledActionName * The name of the scheduled action to update to. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withScheduledActionName(String scheduledActionName) { setScheduledActionName(scheduledActionName); return this; } /** *

        * The start time in UTC of the scheduled action to update to. *

        * * @param startTime * The start time in UTC of the scheduled action to update to. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

        * The start time in UTC of the scheduled action to update to. *

        * * @return The start time in UTC of the scheduled action to update to. */ public java.util.Date getStartTime() { return this.startTime; } /** *

        * The start time in UTC of the scheduled action to update to. *

        * * @param startTime * The start time in UTC of the scheduled action to update to. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** * @param targetAction */ public void setTargetAction(TargetAction targetAction) { this.targetAction = targetAction; } /** * @return */ public TargetAction getTargetAction() { return this.targetAction; } /** * @param targetAction * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateScheduledActionRequest withTargetAction(TargetAction targetAction) { setTargetAction(targetAction); 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 (getEnabled() != null) sb.append("Enabled: ").append(getEnabled()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getSchedule() != null) sb.append("Schedule: ").append(getSchedule()).append(","); if (getScheduledActionDescription() != null) sb.append("ScheduledActionDescription: ").append(getScheduledActionDescription()).append(","); if (getScheduledActionName() != null) sb.append("ScheduledActionName: ").append(getScheduledActionName()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getTargetAction() != null) sb.append("TargetAction: ").append(getTargetAction()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateScheduledActionRequest == false) return false; UpdateScheduledActionRequest other = (UpdateScheduledActionRequest) obj; if (other.getEnabled() == null ^ this.getEnabled() == null) return false; if (other.getEnabled() != null && other.getEnabled().equals(this.getEnabled()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getSchedule() == null ^ this.getSchedule() == null) return false; if (other.getSchedule() != null && other.getSchedule().equals(this.getSchedule()) == false) return false; if (other.getScheduledActionDescription() == null ^ this.getScheduledActionDescription() == null) return false; if (other.getScheduledActionDescription() != null && other.getScheduledActionDescription().equals(this.getScheduledActionDescription()) == false) return false; if (other.getScheduledActionName() == null ^ this.getScheduledActionName() == null) return false; if (other.getScheduledActionName() != null && other.getScheduledActionName().equals(this.getScheduledActionName()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getTargetAction() == null ^ this.getTargetAction() == null) return false; if (other.getTargetAction() != null && other.getTargetAction().equals(this.getTargetAction()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEnabled() == null) ? 0 : getEnabled().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getSchedule() == null) ? 0 : getSchedule().hashCode()); hashCode = prime * hashCode + ((getScheduledActionDescription() == null) ? 0 : getScheduledActionDescription().hashCode()); hashCode = prime * hashCode + ((getScheduledActionName() == null) ? 0 : getScheduledActionName().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getTargetAction() == null) ? 0 : getTargetAction().hashCode()); return hashCode; } @Override public UpdateScheduledActionRequest clone() { return (UpdateScheduledActionRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy