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

com.amazonaws.services.ssmincidents.model.ListTimelineEventsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Systems Manager Incident Manager module holds the client classes that are used for communicating with AWS Systems Manager Incident Manager 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.ssmincidents.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 ListTimelineEventsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Filters the timeline events based on the provided conditional values. You can filter timeline events with the * following keys: *

*
    *
  • *

    * eventReference *

    *
  • *
  • *

    * eventTime *

    *
  • *
  • *

    * eventType *

    *
  • *
*

* Note the following when deciding how to use Filters: *

*
    *
  • *

    * If you don't specify a Filter, the response includes all timeline events. *

    *
  • *
  • *

    * If you specify more than one filter in a single request, the response returns timeline events that match all * filters. *

    *
  • *
  • *

    * If you specify a filter with more than one value, the response returns timeline events that match any of the * values provided. *

    *
  • *
*/ private java.util.List filters; /** *

* The Amazon Resource Name (ARN) of the incident that includes the timeline event. *

*/ private String incidentRecordArn; /** *

* The maximum number of results per page. *

*/ private Integer maxResults; /** *

* The pagination token for the next set of items to return. (You received this token from a previous call.) *

*/ private String nextToken; /** *

* Sort timeline events by the specified key value pair. *

*/ private String sortBy; /** *

* Sorts the order of timeline events by the value specified in the sortBy field. *

*/ private String sortOrder; /** *

* Filters the timeline events based on the provided conditional values. You can filter timeline events with the * following keys: *

*
    *
  • *

    * eventReference *

    *
  • *
  • *

    * eventTime *

    *
  • *
  • *

    * eventType *

    *
  • *
*

* Note the following when deciding how to use Filters: *

*
    *
  • *

    * If you don't specify a Filter, the response includes all timeline events. *

    *
  • *
  • *

    * If you specify more than one filter in a single request, the response returns timeline events that match all * filters. *

    *
  • *
  • *

    * If you specify a filter with more than one value, the response returns timeline events that match any of the * values provided. *

    *
  • *
* * @return Filters the timeline events based on the provided conditional values. You can filter timeline events with * the following keys:

*
    *
  • *

    * eventReference *

    *
  • *
  • *

    * eventTime *

    *
  • *
  • *

    * eventType *

    *
  • *
*

* Note the following when deciding how to use Filters: *

*
    *
  • *

    * If you don't specify a Filter, the response includes all timeline events. *

    *
  • *
  • *

    * If you specify more than one filter in a single request, the response returns timeline events that match * all filters. *

    *
  • *
  • *

    * If you specify a filter with more than one value, the response returns timeline events that match any of * the values provided. *

    *
  • */ public java.util.List getFilters() { return filters; } /** *

    * Filters the timeline events based on the provided conditional values. You can filter timeline events with the * following keys: *

    *
      *
    • *

      * eventReference *

      *
    • *
    • *

      * eventTime *

      *
    • *
    • *

      * eventType *

      *
    • *
    *

    * Note the following when deciding how to use Filters: *

    *
      *
    • *

      * If you don't specify a Filter, the response includes all timeline events. *

      *
    • *
    • *

      * If you specify more than one filter in a single request, the response returns timeline events that match all * filters. *

      *
    • *
    • *

      * If you specify a filter with more than one value, the response returns timeline events that match any of the * values provided. *

      *
    • *
    * * @param filters * Filters the timeline events based on the provided conditional values. You can filter timeline events with * the following keys:

    *
      *
    • *

      * eventReference *

      *
    • *
    • *

      * eventTime *

      *
    • *
    • *

      * eventType *

      *
    • *
    *

    * Note the following when deciding how to use Filters: *

    *
      *
    • *

      * If you don't specify a Filter, the response includes all timeline events. *

      *
    • *
    • *

      * If you specify more than one filter in a single request, the response returns timeline events that match * all filters. *

      *
    • *
    • *

      * If you specify a filter with more than one value, the response returns timeline events that match any of * the values provided. *

      *
    • */ public void setFilters(java.util.Collection filters) { if (filters == null) { this.filters = null; return; } this.filters = new java.util.ArrayList(filters); } /** *

      * Filters the timeline events based on the provided conditional values. You can filter timeline events with the * following keys: *

      *
        *
      • *

        * eventReference *

        *
      • *
      • *

        * eventTime *

        *
      • *
      • *

        * eventType *

        *
      • *
      *

      * Note the following when deciding how to use Filters: *

      *
        *
      • *

        * If you don't specify a Filter, the response includes all timeline events. *

        *
      • *
      • *

        * If you specify more than one filter in a single request, the response returns timeline events that match all * filters. *

        *
      • *
      • *

        * If you specify a filter with more than one value, the response returns timeline events that match any of the * values provided. *

        *
      • *
      *

      * NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override * the existing values. *

      * * @param filters * Filters the timeline events based on the provided conditional values. You can filter timeline events with * the following keys:

      *
        *
      • *

        * eventReference *

        *
      • *
      • *

        * eventTime *

        *
      • *
      • *

        * eventType *

        *
      • *
      *

      * Note the following when deciding how to use Filters: *

      *
        *
      • *

        * If you don't specify a Filter, the response includes all timeline events. *

        *
      • *
      • *

        * If you specify more than one filter in a single request, the response returns timeline events that match * all filters. *

        *
      • *
      • *

        * If you specify a filter with more than one value, the response returns timeline events that match any of * the values provided. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public ListTimelineEventsRequest withFilters(Filter... filters) { if (this.filters == null) { setFilters(new java.util.ArrayList(filters.length)); } for (Filter ele : filters) { this.filters.add(ele); } return this; } /** *

        * Filters the timeline events based on the provided conditional values. You can filter timeline events with the * following keys: *

        *
          *
        • *

          * eventReference *

          *
        • *
        • *

          * eventTime *

          *
        • *
        • *

          * eventType *

          *
        • *
        *

        * Note the following when deciding how to use Filters: *

        *
          *
        • *

          * If you don't specify a Filter, the response includes all timeline events. *

          *
        • *
        • *

          * If you specify more than one filter in a single request, the response returns timeline events that match all * filters. *

          *
        • *
        • *

          * If you specify a filter with more than one value, the response returns timeline events that match any of the * values provided. *

          *
        • *
        * * @param filters * Filters the timeline events based on the provided conditional values. You can filter timeline events with * the following keys:

        *
          *
        • *

          * eventReference *

          *
        • *
        • *

          * eventTime *

          *
        • *
        • *

          * eventType *

          *
        • *
        *

        * Note the following when deciding how to use Filters: *

        *
          *
        • *

          * If you don't specify a Filter, the response includes all timeline events. *

          *
        • *
        • *

          * If you specify more than one filter in a single request, the response returns timeline events that match * all filters. *

          *
        • *
        • *

          * If you specify a filter with more than one value, the response returns timeline events that match any of * the values provided. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. */ public ListTimelineEventsRequest withFilters(java.util.Collection filters) { setFilters(filters); return this; } /** *

          * The Amazon Resource Name (ARN) of the incident that includes the timeline event. *

          * * @param incidentRecordArn * The Amazon Resource Name (ARN) of the incident that includes the timeline event. */ public void setIncidentRecordArn(String incidentRecordArn) { this.incidentRecordArn = incidentRecordArn; } /** *

          * The Amazon Resource Name (ARN) of the incident that includes the timeline event. *

          * * @return The Amazon Resource Name (ARN) of the incident that includes the timeline event. */ public String getIncidentRecordArn() { return this.incidentRecordArn; } /** *

          * The Amazon Resource Name (ARN) of the incident that includes the timeline event. *

          * * @param incidentRecordArn * The Amazon Resource Name (ARN) of the incident that includes the timeline event. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTimelineEventsRequest withIncidentRecordArn(String incidentRecordArn) { setIncidentRecordArn(incidentRecordArn); return this; } /** *

          * The maximum number of results per page. *

          * * @param maxResults * The maximum number of results per page. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

          * The maximum number of results per page. *

          * * @return The maximum number of results per page. */ public Integer getMaxResults() { return this.maxResults; } /** *

          * The maximum number of results per page. *

          * * @param maxResults * The maximum number of results per page. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTimelineEventsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

          * The pagination token for the next set of items to return. (You received this token from a previous call.) *

          * * @param nextToken * The pagination token for the next set of items to return. (You received this token from a previous call.) */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

          * The pagination token for the next set of items to return. (You received this token from a previous call.) *

          * * @return The pagination token for the next set of items to return. (You received this token from a previous call.) */ public String getNextToken() { return this.nextToken; } /** *

          * The pagination token for the next set of items to return. (You received this token from a previous call.) *

          * * @param nextToken * The pagination token for the next set of items to return. (You received this token from a previous call.) * @return Returns a reference to this object so that method calls can be chained together. */ public ListTimelineEventsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

          * Sort timeline events by the specified key value pair. *

          * * @param sortBy * Sort timeline events by the specified key value pair. * @see TimelineEventSort */ public void setSortBy(String sortBy) { this.sortBy = sortBy; } /** *

          * Sort timeline events by the specified key value pair. *

          * * @return Sort timeline events by the specified key value pair. * @see TimelineEventSort */ public String getSortBy() { return this.sortBy; } /** *

          * Sort timeline events by the specified key value pair. *

          * * @param sortBy * Sort timeline events by the specified key value pair. * @return Returns a reference to this object so that method calls can be chained together. * @see TimelineEventSort */ public ListTimelineEventsRequest withSortBy(String sortBy) { setSortBy(sortBy); return this; } /** *

          * Sort timeline events by the specified key value pair. *

          * * @param sortBy * Sort timeline events by the specified key value pair. * @return Returns a reference to this object so that method calls can be chained together. * @see TimelineEventSort */ public ListTimelineEventsRequest withSortBy(TimelineEventSort sortBy) { this.sortBy = sortBy.toString(); return this; } /** *

          * Sorts the order of timeline events by the value specified in the sortBy field. *

          * * @param sortOrder * Sorts the order of timeline events by the value specified in the sortBy field. * @see SortOrder */ public void setSortOrder(String sortOrder) { this.sortOrder = sortOrder; } /** *

          * Sorts the order of timeline events by the value specified in the sortBy field. *

          * * @return Sorts the order of timeline events by the value specified in the sortBy field. * @see SortOrder */ public String getSortOrder() { return this.sortOrder; } /** *

          * Sorts the order of timeline events by the value specified in the sortBy field. *

          * * @param sortOrder * Sorts the order of timeline events by the value specified in the sortBy field. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListTimelineEventsRequest withSortOrder(String sortOrder) { setSortOrder(sortOrder); return this; } /** *

          * Sorts the order of timeline events by the value specified in the sortBy field. *

          * * @param sortOrder * Sorts the order of timeline events by the value specified in the sortBy field. * @return Returns a reference to this object so that method calls can be chained together. * @see SortOrder */ public ListTimelineEventsRequest withSortOrder(SortOrder sortOrder) { this.sortOrder = sortOrder.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 (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getIncidentRecordArn() != null) sb.append("IncidentRecordArn: ").append(getIncidentRecordArn()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getSortBy() != null) sb.append("SortBy: ").append(getSortBy()).append(","); if (getSortOrder() != null) sb.append("SortOrder: ").append(getSortOrder()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTimelineEventsRequest == false) return false; ListTimelineEventsRequest other = (ListTimelineEventsRequest) obj; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getIncidentRecordArn() == null ^ this.getIncidentRecordArn() == null) return false; if (other.getIncidentRecordArn() != null && other.getIncidentRecordArn().equals(this.getIncidentRecordArn()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getSortBy() == null ^ this.getSortBy() == null) return false; if (other.getSortBy() != null && other.getSortBy().equals(this.getSortBy()) == false) return false; if (other.getSortOrder() == null ^ this.getSortOrder() == null) return false; if (other.getSortOrder() != null && other.getSortOrder().equals(this.getSortOrder()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getIncidentRecordArn() == null) ? 0 : getIncidentRecordArn().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getSortBy() == null) ? 0 : getSortBy().hashCode()); hashCode = prime * hashCode + ((getSortOrder() == null) ? 0 : getSortOrder().hashCode()); return hashCode; } @Override public ListTimelineEventsRequest clone() { return (ListTimelineEventsRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy