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

com.amazonaws.services.applicationsignals.model.ListServiceOperationsResult Maven / Gradle / Ivy

/*
 * 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.applicationsignals.model;

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

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

    /**
     * 

* The start of the time period that the returned information applies to. When used in a raw HTTP Query API, it is * formatted as be epoch time in seconds. For example: 1698778057 *

*

* This displays the time that Application Signals used for the request. It might not match your request exactly, * because it was rounded to the nearest hour. *

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

* The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it is * formatted as be epoch time in seconds. For example: 1698778057 *

*

* This displays the time that Application Signals used for the request. It might not match your request exactly, * because it was rounded to the nearest hour. *

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

* An array of structures that each contain information about one operation of this service. *

*/ private java.util.List serviceOperations; /** *

* Include this value in your next use of this API to get next set of service operations. *

*/ private String nextToken; /** *

* The start of the time period that the returned information applies to. When used in a raw HTTP Query API, it is * formatted as be epoch time in seconds. For example: 1698778057 *

*

* This displays the time that Application Signals used for the request. It might not match your request exactly, * because it was rounded to the nearest hour. *

* * @param startTime * The start of the time period that the returned information applies to. When used in a raw HTTP Query API, * it is formatted as be epoch time in seconds. For example: 1698778057

*

* This displays the time that Application Signals used for the request. It might not match your request * exactly, because it was rounded to the nearest hour. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start of the time period that the returned information applies to. When used in a raw HTTP Query API, it is * formatted as be epoch time in seconds. For example: 1698778057 *

*

* This displays the time that Application Signals used for the request. It might not match your request exactly, * because it was rounded to the nearest hour. *

* * @return The start of the time period that the returned information applies to. When used in a raw HTTP Query API, * it is formatted as be epoch time in seconds. For example: 1698778057

*

* This displays the time that Application Signals used for the request. It might not match your request * exactly, because it was rounded to the nearest hour. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start of the time period that the returned information applies to. When used in a raw HTTP Query API, it is * formatted as be epoch time in seconds. For example: 1698778057 *

*

* This displays the time that Application Signals used for the request. It might not match your request exactly, * because it was rounded to the nearest hour. *

* * @param startTime * The start of the time period that the returned information applies to. When used in a raw HTTP Query API, * it is formatted as be epoch time in seconds. For example: 1698778057

*

* This displays the time that Application Signals used for the request. It might not match your request * exactly, because it was rounded to the nearest hour. * @return Returns a reference to this object so that method calls can be chained together. */ public ListServiceOperationsResult withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it is * formatted as be epoch time in seconds. For example: 1698778057 *

*

* This displays the time that Application Signals used for the request. It might not match your request exactly, * because it was rounded to the nearest hour. *

* * @param endTime * The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it * is formatted as be epoch time in seconds. For example: 1698778057

*

* This displays the time that Application Signals used for the request. It might not match your request * exactly, because it was rounded to the nearest hour. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it is * formatted as be epoch time in seconds. For example: 1698778057 *

*

* This displays the time that Application Signals used for the request. It might not match your request exactly, * because it was rounded to the nearest hour. *

* * @return The end of the time period that the returned information applies to. When used in a raw HTTP Query API, * it is formatted as be epoch time in seconds. For example: 1698778057

*

* This displays the time that Application Signals used for the request. It might not match your request * exactly, because it was rounded to the nearest hour. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it is * formatted as be epoch time in seconds. For example: 1698778057 *

*

* This displays the time that Application Signals used for the request. It might not match your request exactly, * because it was rounded to the nearest hour. *

* * @param endTime * The end of the time period that the returned information applies to. When used in a raw HTTP Query API, it * is formatted as be epoch time in seconds. For example: 1698778057

*

* This displays the time that Application Signals used for the request. It might not match your request * exactly, because it was rounded to the nearest hour. * @return Returns a reference to this object so that method calls can be chained together. */ public ListServiceOperationsResult withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* An array of structures that each contain information about one operation of this service. *

* * @return An array of structures that each contain information about one operation of this service. */ public java.util.List getServiceOperations() { return serviceOperations; } /** *

* An array of structures that each contain information about one operation of this service. *

* * @param serviceOperations * An array of structures that each contain information about one operation of this service. */ public void setServiceOperations(java.util.Collection serviceOperations) { if (serviceOperations == null) { this.serviceOperations = null; return; } this.serviceOperations = new java.util.ArrayList(serviceOperations); } /** *

* An array of structures that each contain information about one operation of this service. *

*

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

* * @param serviceOperations * An array of structures that each contain information about one operation of this service. * @return Returns a reference to this object so that method calls can be chained together. */ public ListServiceOperationsResult withServiceOperations(ServiceOperation... serviceOperations) { if (this.serviceOperations == null) { setServiceOperations(new java.util.ArrayList(serviceOperations.length)); } for (ServiceOperation ele : serviceOperations) { this.serviceOperations.add(ele); } return this; } /** *

* An array of structures that each contain information about one operation of this service. *

* * @param serviceOperations * An array of structures that each contain information about one operation of this service. * @return Returns a reference to this object so that method calls can be chained together. */ public ListServiceOperationsResult withServiceOperations(java.util.Collection serviceOperations) { setServiceOperations(serviceOperations); return this; } /** *

* Include this value in your next use of this API to get next set of service operations. *

* * @param nextToken * Include this value in your next use of this API to get next set of service operations. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Include this value in your next use of this API to get next set of service operations. *

* * @return Include this value in your next use of this API to get next set of service operations. */ public String getNextToken() { return this.nextToken; } /** *

* Include this value in your next use of this API to get next set of service operations. *

* * @param nextToken * Include this value in your next use of this API to get next set of service operations. * @return Returns a reference to this object so that method calls can be chained together. */ public ListServiceOperationsResult withNextToken(String nextToken) { setNextToken(nextToken); 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 (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getServiceOperations() != null) sb.append("ServiceOperations: ").append(getServiceOperations()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListServiceOperationsResult == false) return false; ListServiceOperationsResult other = (ListServiceOperationsResult) obj; 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.getServiceOperations() == null ^ this.getServiceOperations() == null) return false; if (other.getServiceOperations() != null && other.getServiceOperations().equals(this.getServiceOperations()) == 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; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getServiceOperations() == null) ? 0 : getServiceOperations().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ListServiceOperationsResult clone() { try { return (ListServiceOperationsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy