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

com.amazonaws.services.autoscaling.model.PutScheduledUpdateGroupActionRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2016-2021 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.autoscaling.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 PutScheduledUpdateGroupActionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the Auto Scaling group. *

*/ private String autoScalingGroupName; /** *

* The name of this scaling action. *

*/ private String scheduledActionName; /** *

* This parameter is no longer used. *

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

* The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes (for * example, "2019-06-01T00:00:00Z"). *

*

* If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the action at * this time, and then performs the action based on the specified recurrence. *

*

* If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message. *

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

* The date and time for the recurring schedule to end, in UTC. *

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

* The recurring schedule for this action. This format consists of five fields separated by white spaces: [Minute] * [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, * "30 0 1 1,6,12 *"). For more information about this format, see Crontab. *

*

* When StartTime and EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops. *

*

* Cron expressions use Universal Coordinated Time (UTC) by default. *

*/ private String recurrence; /** *

* The minimum size of the Auto Scaling group. *

*/ private Integer minSize; /** *

* The maximum size of the Auto Scaling group. *

*/ private Integer maxSize; /** *

* The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the * capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling conditions. *

*/ private Integer desiredCapacity; /** *

* Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. *

*

* Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. *

*/ private String timeZone; /** *

* The name of the Auto Scaling group. *

* * @param autoScalingGroupName * The name of the Auto Scaling group. */ public void setAutoScalingGroupName(String autoScalingGroupName) { this.autoScalingGroupName = autoScalingGroupName; } /** *

* The name of the Auto Scaling group. *

* * @return The name of the Auto Scaling group. */ public String getAutoScalingGroupName() { return this.autoScalingGroupName; } /** *

* The name of the Auto Scaling group. *

* * @param autoScalingGroupName * The name of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public PutScheduledUpdateGroupActionRequest withAutoScalingGroupName(String autoScalingGroupName) { setAutoScalingGroupName(autoScalingGroupName); return this; } /** *

* The name of this scaling action. *

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

* The name of this scaling action. *

* * @return The name of this scaling action. */ public String getScheduledActionName() { return this.scheduledActionName; } /** *

* The name of this scaling action. *

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

* This parameter is no longer used. *

* * @param time * This parameter is no longer used. */ public void setTime(java.util.Date time) { this.time = time; } /** *

* This parameter is no longer used. *

* * @return This parameter is no longer used. */ public java.util.Date getTime() { return this.time; } /** *

* This parameter is no longer used. *

* * @param time * This parameter is no longer used. * @return Returns a reference to this object so that method calls can be chained together. */ public PutScheduledUpdateGroupActionRequest withTime(java.util.Date time) { setTime(time); return this; } /** *

* The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes (for * example, "2019-06-01T00:00:00Z"). *

*

* If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the action at * this time, and then performs the action based on the specified recurrence. *

*

* If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message. *

* * @param startTime * The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes * (for example, "2019-06-01T00:00:00Z").

*

* If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the * action at this time, and then performs the action based on the specified recurrence. *

*

* If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes (for * example, "2019-06-01T00:00:00Z"). *

*

* If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the action at * this time, and then performs the action based on the specified recurrence. *

*

* If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message. *

* * @return The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes * (for example, "2019-06-01T00:00:00Z").

*

* If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the * action at this time, and then performs the action based on the specified recurrence. *

*

* If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes (for * example, "2019-06-01T00:00:00Z"). *

*

* If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the action at * this time, and then performs the action based on the specified recurrence. *

*

* If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message. *

* * @param startTime * The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes * (for example, "2019-06-01T00:00:00Z").

*

* If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the * action at this time, and then performs the action based on the specified recurrence. *

*

* If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message. * @return Returns a reference to this object so that method calls can be chained together. */ public PutScheduledUpdateGroupActionRequest withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The date and time for the recurring schedule to end, in UTC. *

* * @param endTime * The date and time for the recurring schedule to end, in UTC. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The date and time for the recurring schedule to end, in UTC. *

* * @return The date and time for the recurring schedule to end, in UTC. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The date and time for the recurring schedule to end, in UTC. *

* * @param endTime * The date and time for the recurring schedule to end, in UTC. * @return Returns a reference to this object so that method calls can be chained together. */ public PutScheduledUpdateGroupActionRequest withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The recurring schedule for this action. This format consists of five fields separated by white spaces: [Minute] * [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, * "30 0 1 1,6,12 *"). For more information about this format, see Crontab. *

*

* When StartTime and EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops. *

*

* Cron expressions use Universal Coordinated Time (UTC) by default. *

* * @param recurrence * The recurring schedule for this action. This format consists of five fields separated by white spaces: * [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, * "30 0 1 1,6,12 *"). For more information about this format, see Crontab.

*

* When StartTime and EndTime are specified with Recurrence, they form * the boundaries of when the recurring action starts and stops. *

*

* Cron expressions use Universal Coordinated Time (UTC) by default. */ public void setRecurrence(String recurrence) { this.recurrence = recurrence; } /** *

* The recurring schedule for this action. This format consists of five fields separated by white spaces: [Minute] * [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, * "30 0 1 1,6,12 *"). For more information about this format, see Crontab. *

*

* When StartTime and EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops. *

*

* Cron expressions use Universal Coordinated Time (UTC) by default. *

* * @return The recurring schedule for this action. This format consists of five fields separated by white spaces: * [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, * "30 0 1 1,6,12 *"). For more information about this format, see Crontab.

*

* When StartTime and EndTime are specified with Recurrence, they * form the boundaries of when the recurring action starts and stops. *

*

* Cron expressions use Universal Coordinated Time (UTC) by default. */ public String getRecurrence() { return this.recurrence; } /** *

* The recurring schedule for this action. This format consists of five fields separated by white spaces: [Minute] * [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, * "30 0 1 1,6,12 *"). For more information about this format, see Crontab. *

*

* When StartTime and EndTime are specified with Recurrence, they form the * boundaries of when the recurring action starts and stops. *

*

* Cron expressions use Universal Coordinated Time (UTC) by default. *

* * @param recurrence * The recurring schedule for this action. This format consists of five fields separated by white spaces: * [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, * "30 0 1 1,6,12 *"). For more information about this format, see Crontab.

*

* When StartTime and EndTime are specified with Recurrence, they form * the boundaries of when the recurring action starts and stops. *

*

* Cron expressions use Universal Coordinated Time (UTC) by default. * @return Returns a reference to this object so that method calls can be chained together. */ public PutScheduledUpdateGroupActionRequest withRecurrence(String recurrence) { setRecurrence(recurrence); return this; } /** *

* The minimum size of the Auto Scaling group. *

* * @param minSize * The minimum size of the Auto Scaling group. */ public void setMinSize(Integer minSize) { this.minSize = minSize; } /** *

* The minimum size of the Auto Scaling group. *

* * @return The minimum size of the Auto Scaling group. */ public Integer getMinSize() { return this.minSize; } /** *

* The minimum size of the Auto Scaling group. *

* * @param minSize * The minimum size of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public PutScheduledUpdateGroupActionRequest withMinSize(Integer minSize) { setMinSize(minSize); return this; } /** *

* The maximum size of the Auto Scaling group. *

* * @param maxSize * The maximum size of the Auto Scaling group. */ public void setMaxSize(Integer maxSize) { this.maxSize = maxSize; } /** *

* The maximum size of the Auto Scaling group. *

* * @return The maximum size of the Auto Scaling group. */ public Integer getMaxSize() { return this.maxSize; } /** *

* The maximum size of the Auto Scaling group. *

* * @param maxSize * The maximum size of the Auto Scaling group. * @return Returns a reference to this object so that method calls can be chained together. */ public PutScheduledUpdateGroupActionRequest withMaxSize(Integer maxSize) { setMaxSize(maxSize); return this; } /** *

* The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the * capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling conditions. *

* * @param desiredCapacity * The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and * the capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling * conditions. */ public void setDesiredCapacity(Integer desiredCapacity) { this.desiredCapacity = desiredCapacity; } /** *

* The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the * capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling conditions. *

* * @return The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs * and the capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling * conditions. */ public Integer getDesiredCapacity() { return this.desiredCapacity; } /** *

* The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the * capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling conditions. *

* * @param desiredCapacity * The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and * the capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling * conditions. * @return Returns a reference to this object so that method calls can be chained together. */ public PutScheduledUpdateGroupActionRequest withDesiredCapacity(Integer desiredCapacity) { setDesiredCapacity(desiredCapacity); return this; } /** *

* Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. *

*

* Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. *

* * @param timeZone * Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. *

*

* Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database * (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. */ public void setTimeZone(String timeZone) { this.timeZone = timeZone; } /** *

* Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. *

*

* Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. *

* * @return Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. *

*

* Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database * (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. */ public String getTimeZone() { return this.timeZone; } /** *

* Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. *

*

* Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as * Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. *

* * @param timeZone * Specifies the time zone for a cron expression. If a time zone is not provided, UTC is used by default. *

*

* Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database * (such as Etc/GMT+9 or Pacific/Tahiti). For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. * @return Returns a reference to this object so that method calls can be chained together. */ public PutScheduledUpdateGroupActionRequest withTimeZone(String timeZone) { setTimeZone(timeZone); 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 (getAutoScalingGroupName() != null) sb.append("AutoScalingGroupName: ").append(getAutoScalingGroupName()).append(","); if (getScheduledActionName() != null) sb.append("ScheduledActionName: ").append(getScheduledActionName()).append(","); if (getTime() != null) sb.append("Time: ").append(getTime()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getRecurrence() != null) sb.append("Recurrence: ").append(getRecurrence()).append(","); if (getMinSize() != null) sb.append("MinSize: ").append(getMinSize()).append(","); if (getMaxSize() != null) sb.append("MaxSize: ").append(getMaxSize()).append(","); if (getDesiredCapacity() != null) sb.append("DesiredCapacity: ").append(getDesiredCapacity()).append(","); if (getTimeZone() != null) sb.append("TimeZone: ").append(getTimeZone()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutScheduledUpdateGroupActionRequest == false) return false; PutScheduledUpdateGroupActionRequest other = (PutScheduledUpdateGroupActionRequest) obj; if (other.getAutoScalingGroupName() == null ^ this.getAutoScalingGroupName() == null) return false; if (other.getAutoScalingGroupName() != null && other.getAutoScalingGroupName().equals(this.getAutoScalingGroupName()) == 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.getTime() == null ^ this.getTime() == null) return false; if (other.getTime() != null && other.getTime().equals(this.getTime()) == 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.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getRecurrence() == null ^ this.getRecurrence() == null) return false; if (other.getRecurrence() != null && other.getRecurrence().equals(this.getRecurrence()) == false) return false; if (other.getMinSize() == null ^ this.getMinSize() == null) return false; if (other.getMinSize() != null && other.getMinSize().equals(this.getMinSize()) == false) return false; if (other.getMaxSize() == null ^ this.getMaxSize() == null) return false; if (other.getMaxSize() != null && other.getMaxSize().equals(this.getMaxSize()) == false) return false; if (other.getDesiredCapacity() == null ^ this.getDesiredCapacity() == null) return false; if (other.getDesiredCapacity() != null && other.getDesiredCapacity().equals(this.getDesiredCapacity()) == false) return false; if (other.getTimeZone() == null ^ this.getTimeZone() == null) return false; if (other.getTimeZone() != null && other.getTimeZone().equals(this.getTimeZone()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAutoScalingGroupName() == null) ? 0 : getAutoScalingGroupName().hashCode()); hashCode = prime * hashCode + ((getScheduledActionName() == null) ? 0 : getScheduledActionName().hashCode()); hashCode = prime * hashCode + ((getTime() == null) ? 0 : getTime().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getRecurrence() == null) ? 0 : getRecurrence().hashCode()); hashCode = prime * hashCode + ((getMinSize() == null) ? 0 : getMinSize().hashCode()); hashCode = prime * hashCode + ((getMaxSize() == null) ? 0 : getMaxSize().hashCode()); hashCode = prime * hashCode + ((getDesiredCapacity() == null) ? 0 : getDesiredCapacity().hashCode()); hashCode = prime * hashCode + ((getTimeZone() == null) ? 0 : getTimeZone().hashCode()); return hashCode; } @Override public PutScheduledUpdateGroupActionRequest clone() { return (PutScheduledUpdateGroupActionRequest) super.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy