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

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

/*
 * Copyright 2010-2014 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;

/**
 * 

* A scaling action that is scheduled for a future time and date. An * action can be scheduled up to thirty days in advance. *

*

* Starting with API version 2011-01-01, you can use * recurrence to specify that a scaling action occurs * regularly on a schedule. *

*/ public class DescribeScheduledActionsResult implements Serializable { /** * A list of scheduled actions designed to update an Auto Scaling group. */ private com.amazonaws.internal.ListWithAutoConstructFlag scheduledUpdateGroupActions; /** * A string that marks the start of the next batch of returned results. *

* Constraints:
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
*/ private String nextToken; /** * A list of scheduled actions designed to update an Auto Scaling group. * * @return A list of scheduled actions designed to update an Auto Scaling group. */ public java.util.List getScheduledUpdateGroupActions() { if (scheduledUpdateGroupActions == null) { scheduledUpdateGroupActions = new com.amazonaws.internal.ListWithAutoConstructFlag(); scheduledUpdateGroupActions.setAutoConstruct(true); } return scheduledUpdateGroupActions; } /** * A list of scheduled actions designed to update an Auto Scaling group. * * @param scheduledUpdateGroupActions A list of scheduled actions designed to update an Auto Scaling group. */ public void setScheduledUpdateGroupActions(java.util.Collection scheduledUpdateGroupActions) { if (scheduledUpdateGroupActions == null) { this.scheduledUpdateGroupActions = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag scheduledUpdateGroupActionsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(scheduledUpdateGroupActions.size()); scheduledUpdateGroupActionsCopy.addAll(scheduledUpdateGroupActions); this.scheduledUpdateGroupActions = scheduledUpdateGroupActionsCopy; } /** * A list of scheduled actions designed to update an Auto Scaling group. *

* Returns a reference to this object so that method calls can be chained together. * * @param scheduledUpdateGroupActions A list of scheduled actions designed to update an Auto Scaling group. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeScheduledActionsResult withScheduledUpdateGroupActions(ScheduledUpdateGroupAction... scheduledUpdateGroupActions) { if (getScheduledUpdateGroupActions() == null) setScheduledUpdateGroupActions(new java.util.ArrayList(scheduledUpdateGroupActions.length)); for (ScheduledUpdateGroupAction value : scheduledUpdateGroupActions) { getScheduledUpdateGroupActions().add(value); } return this; } /** * A list of scheduled actions designed to update an Auto Scaling group. *

* Returns a reference to this object so that method calls can be chained together. * * @param scheduledUpdateGroupActions A list of scheduled actions designed to update an Auto Scaling group. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeScheduledActionsResult withScheduledUpdateGroupActions(java.util.Collection scheduledUpdateGroupActions) { if (scheduledUpdateGroupActions == null) { this.scheduledUpdateGroupActions = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag scheduledUpdateGroupActionsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(scheduledUpdateGroupActions.size()); scheduledUpdateGroupActionsCopy.addAll(scheduledUpdateGroupActions); this.scheduledUpdateGroupActions = scheduledUpdateGroupActionsCopy; } return this; } /** * A string that marks the start of the next batch of returned results. *

* Constraints:
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @return A string that marks the start of the next batch of returned results. */ public String getNextToken() { return nextToken; } /** * A string that marks the start of the next batch of returned results. *

* Constraints:
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param nextToken A string that marks the start of the next batch of returned results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** * A string that marks the start of the next batch of returned results. *

* Returns a reference to this object so that method calls can be chained together. *

* Constraints:
* Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
* * @param nextToken A string that marks the start of the next batch of returned results. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeScheduledActionsResult withNextToken(String nextToken) { this.nextToken = nextToken; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getScheduledUpdateGroupActions() != null) sb.append("ScheduledUpdateGroupActions: " + getScheduledUpdateGroupActions() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken() ); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getScheduledUpdateGroupActions() == null) ? 0 : getScheduledUpdateGroupActions().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeScheduledActionsResult == false) return false; DescribeScheduledActionsResult other = (DescribeScheduledActionsResult)obj; if (other.getScheduledUpdateGroupActions() == null ^ this.getScheduledUpdateGroupActions() == null) return false; if (other.getScheduledUpdateGroupActions() != null && other.getScheduledUpdateGroupActions().equals(this.getScheduledUpdateGroupActions()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy