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

com.amazonaws.services.elasticbeanstalk.model.DescribeEventsRequest 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.elasticbeanstalk.model;

import java.io.Serializable;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * Container for the parameters to the {@link com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalk#describeEvents(DescribeEventsRequest) DescribeEvents operation}.
 * 

* Returns list of event descriptions matching criteria up to the last 6 * weeks. *

*

* NOTE: This action returns the most recent 1,000 events from the * specified NextToken. *

* * @see com.amazonaws.services.elasticbeanstalk.AWSElasticBeanstalk#describeEvents(DescribeEventsRequest) */ public class DescribeEventsRequest extends AmazonWebServiceRequest implements Serializable { /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to include only those associated with this application. *

* Constraints:
* Length: 1 - 100
*/ private String applicationName; /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this application version. *

* Constraints:
* Length: 1 - 100
*/ private String versionLabel; /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that are associated with this environment * configuration. *

* Constraints:
* Length: 1 - 100
*/ private String templateName; /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. */ private String environmentId; /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. *

* Constraints:
* Length: 4 - 23
*/ private String environmentName; /** * If specified, AWS Elastic Beanstalk restricts the described events to * include only those associated with this request ID. */ private String requestId; /** * If specified, limits the events returned from this call to include * only those with the specified severity or higher. *

* Constraints:
* Allowed Values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL */ private String severity; /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur on or after this time. */ private java.util.Date startTime; /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur up to, but not including, the * EndTime. */ private java.util.Date endTime; /** * Specifies the maximum number of events that can be returned, beginning * with the most recent event. *

* Constraints:
* Range: 1 - 1000
*/ private Integer maxRecords; /** * Pagination token. If specified, the events return the next batch of * results. */ private String nextToken; /** * Default constructor for a new DescribeEventsRequest object. Callers should use the * setter or fluent setter (with...) methods to initialize this object after creating it. */ public DescribeEventsRequest() {} /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to include only those associated with this application. *

* Constraints:
* Length: 1 - 100
* * @return If specified, AWS Elastic Beanstalk restricts the returned * descriptions to include only those associated with this application. */ public String getApplicationName() { return applicationName; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to include only those associated with this application. *

* Constraints:
* Length: 1 - 100
* * @param applicationName If specified, AWS Elastic Beanstalk restricts the returned * descriptions to include only those associated with this application. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to include only those associated with this application. *

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

* Constraints:
* Length: 1 - 100
* * @param applicationName If specified, AWS Elastic Beanstalk restricts the returned * descriptions to include only those associated with this application. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest withApplicationName(String applicationName) { this.applicationName = applicationName; return this; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this application version. *

* Constraints:
* Length: 1 - 100
* * @return If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this application version. */ public String getVersionLabel() { return versionLabel; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this application version. *

* Constraints:
* Length: 1 - 100
* * @param versionLabel If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this application version. */ public void setVersionLabel(String versionLabel) { this.versionLabel = versionLabel; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this application version. *

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

* Constraints:
* Length: 1 - 100
* * @param versionLabel If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this application version. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest withVersionLabel(String versionLabel) { this.versionLabel = versionLabel; return this; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that are associated with this environment * configuration. *

* Constraints:
* Length: 1 - 100
* * @return If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that are associated with this environment * configuration. */ public String getTemplateName() { return templateName; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that are associated with this environment * configuration. *

* Constraints:
* Length: 1 - 100
* * @param templateName If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that are associated with this environment * configuration. */ public void setTemplateName(String templateName) { this.templateName = templateName; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that are associated with this environment * configuration. *

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

* Constraints:
* Length: 1 - 100
* * @param templateName If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that are associated with this environment * configuration. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest withTemplateName(String templateName) { this.templateName = templateName; return this; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. * * @return If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. */ public String getEnvironmentId() { return environmentId; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. * * @param environmentId If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. */ public void setEnvironmentId(String environmentId) { this.environmentId = environmentId; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. *

* Returns a reference to this object so that method calls can be chained together. * * @param environmentId If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest withEnvironmentId(String environmentId) { this.environmentId = environmentId; return this; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. *

* Constraints:
* Length: 4 - 23
* * @return If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. */ public String getEnvironmentName() { return environmentName; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. *

* Constraints:
* Length: 4 - 23
* * @param environmentName If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. */ public void setEnvironmentName(String environmentName) { this.environmentName = environmentName; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. *

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

* Constraints:
* Length: 4 - 23
* * @param environmentName If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those associated with this environment. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest withEnvironmentName(String environmentName) { this.environmentName = environmentName; return this; } /** * If specified, AWS Elastic Beanstalk restricts the described events to * include only those associated with this request ID. * * @return If specified, AWS Elastic Beanstalk restricts the described events to * include only those associated with this request ID. */ public String getRequestId() { return requestId; } /** * If specified, AWS Elastic Beanstalk restricts the described events to * include only those associated with this request ID. * * @param requestId If specified, AWS Elastic Beanstalk restricts the described events to * include only those associated with this request ID. */ public void setRequestId(String requestId) { this.requestId = requestId; } /** * If specified, AWS Elastic Beanstalk restricts the described events to * include only those associated with this request ID. *

* Returns a reference to this object so that method calls can be chained together. * * @param requestId If specified, AWS Elastic Beanstalk restricts the described events to * include only those associated with this request ID. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest withRequestId(String requestId) { this.requestId = requestId; return this; } /** * If specified, limits the events returned from this call to include * only those with the specified severity or higher. *

* Constraints:
* Allowed Values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL * * @return If specified, limits the events returned from this call to include * only those with the specified severity or higher. * * @see EventSeverity */ public String getSeverity() { return severity; } /** * If specified, limits the events returned from this call to include * only those with the specified severity or higher. *

* Constraints:
* Allowed Values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL * * @param severity If specified, limits the events returned from this call to include * only those with the specified severity or higher. * * @see EventSeverity */ public void setSeverity(String severity) { this.severity = severity; } /** * If specified, limits the events returned from this call to include * only those with the specified severity or higher. *

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

* Constraints:
* Allowed Values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL * * @param severity If specified, limits the events returned from this call to include * only those with the specified severity or higher. * * @return A reference to this updated object so that method calls can be chained * together. * * @see EventSeverity */ public DescribeEventsRequest withSeverity(String severity) { this.severity = severity; return this; } /** * If specified, limits the events returned from this call to include * only those with the specified severity or higher. *

* Constraints:
* Allowed Values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL * * @param severity If specified, limits the events returned from this call to include * only those with the specified severity or higher. * * @see EventSeverity */ public void setSeverity(EventSeverity severity) { this.severity = severity.toString(); } /** * If specified, limits the events returned from this call to include * only those with the specified severity or higher. *

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

* Constraints:
* Allowed Values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL * * @param severity If specified, limits the events returned from this call to include * only those with the specified severity or higher. * * @return A reference to this updated object so that method calls can be chained * together. * * @see EventSeverity */ public DescribeEventsRequest withSeverity(EventSeverity severity) { this.severity = severity.toString(); return this; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur on or after this time. * * @return If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur on or after this time. */ public java.util.Date getStartTime() { return startTime; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur on or after this time. * * @param startTime If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur on or after this time. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur on or after this time. *

* Returns a reference to this object so that method calls can be chained together. * * @param startTime If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur on or after this time. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest withStartTime(java.util.Date startTime) { this.startTime = startTime; return this; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur up to, but not including, the * EndTime. * * @return If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur up to, but not including, the * EndTime. */ public java.util.Date getEndTime() { return endTime; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur up to, but not including, the * EndTime. * * @param endTime If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur up to, but not including, the * EndTime. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** * If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur up to, but not including, the * EndTime. *

* Returns a reference to this object so that method calls can be chained together. * * @param endTime If specified, AWS Elastic Beanstalk restricts the returned * descriptions to those that occur up to, but not including, the * EndTime. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest withEndTime(java.util.Date endTime) { this.endTime = endTime; return this; } /** * Specifies the maximum number of events that can be returned, beginning * with the most recent event. *

* Constraints:
* Range: 1 - 1000
* * @return Specifies the maximum number of events that can be returned, beginning * with the most recent event. */ public Integer getMaxRecords() { return maxRecords; } /** * Specifies the maximum number of events that can be returned, beginning * with the most recent event. *

* Constraints:
* Range: 1 - 1000
* * @param maxRecords Specifies the maximum number of events that can be returned, beginning * with the most recent event. */ public void setMaxRecords(Integer maxRecords) { this.maxRecords = maxRecords; } /** * Specifies the maximum number of events that can be returned, beginning * with the most recent event. *

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

* Constraints:
* Range: 1 - 1000
* * @param maxRecords Specifies the maximum number of events that can be returned, beginning * with the most recent event. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest withMaxRecords(Integer maxRecords) { this.maxRecords = maxRecords; return this; } /** * Pagination token. If specified, the events return the next batch of * results. * * @return Pagination token. If specified, the events return the next batch of * results. */ public String getNextToken() { return nextToken; } /** * Pagination token. If specified, the events return the next batch of * results. * * @param nextToken Pagination token. If specified, the events return the next batch of * results. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** * Pagination token. If specified, the events return the next batch of * results. *

* Returns a reference to this object so that method calls can be chained together. * * @param nextToken Pagination token. If specified, the events return the next batch of * results. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeEventsRequest 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 (getApplicationName() != null) sb.append("ApplicationName: " + getApplicationName() + ","); if (getVersionLabel() != null) sb.append("VersionLabel: " + getVersionLabel() + ","); if (getTemplateName() != null) sb.append("TemplateName: " + getTemplateName() + ","); if (getEnvironmentId() != null) sb.append("EnvironmentId: " + getEnvironmentId() + ","); if (getEnvironmentName() != null) sb.append("EnvironmentName: " + getEnvironmentName() + ","); if (getRequestId() != null) sb.append("RequestId: " + getRequestId() + ","); if (getSeverity() != null) sb.append("Severity: " + getSeverity() + ","); if (getStartTime() != null) sb.append("StartTime: " + getStartTime() + ","); if (getEndTime() != null) sb.append("EndTime: " + getEndTime() + ","); if (getMaxRecords() != null) sb.append("MaxRecords: " + getMaxRecords() + ","); 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 + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); hashCode = prime * hashCode + ((getVersionLabel() == null) ? 0 : getVersionLabel().hashCode()); hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); hashCode = prime * hashCode + ((getEnvironmentId() == null) ? 0 : getEnvironmentId().hashCode()); hashCode = prime * hashCode + ((getEnvironmentName() == null) ? 0 : getEnvironmentName().hashCode()); hashCode = prime * hashCode + ((getRequestId() == null) ? 0 : getRequestId().hashCode()); hashCode = prime * hashCode + ((getSeverity() == null) ? 0 : getSeverity().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().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 DescribeEventsRequest == false) return false; DescribeEventsRequest other = (DescribeEventsRequest)obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getVersionLabel() == null ^ this.getVersionLabel() == null) return false; if (other.getVersionLabel() != null && other.getVersionLabel().equals(this.getVersionLabel()) == false) return false; if (other.getTemplateName() == null ^ this.getTemplateName() == null) return false; if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == false) return false; if (other.getEnvironmentId() == null ^ this.getEnvironmentId() == null) return false; if (other.getEnvironmentId() != null && other.getEnvironmentId().equals(this.getEnvironmentId()) == false) return false; if (other.getEnvironmentName() == null ^ this.getEnvironmentName() == null) return false; if (other.getEnvironmentName() != null && other.getEnvironmentName().equals(this.getEnvironmentName()) == false) return false; if (other.getRequestId() == null ^ this.getRequestId() == null) return false; if (other.getRequestId() != null && other.getRequestId().equals(this.getRequestId()) == false) return false; if (other.getSeverity() == null ^ this.getSeverity() == null) return false; if (other.getSeverity() != null && other.getSeverity().equals(this.getSeverity()) == 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.getMaxRecords() == null ^ this.getMaxRecords() == null) return false; if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == 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