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

com.amazonaws.services.pi.model.DescribeDimensionKeysResult Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2017-2022 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.pi.model;

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

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

    /**
     * 

* The start time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the * user-specified StartTime. *

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

* The end time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the * user-specified Endtime. *

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

* If PartitionBy was present in the request, PartitionKeys contains the breakdown of * dimension keys by the specified partitions. *

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

* The dimension keys that were requested. *

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

* A pagination token that indicates the response didn’t return all available records because * MaxRecords was specified in the previous request. To get the remaining records, specify * NextToken in a separate request with this value. *

*/ private String nextToken; /** *

* The start time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the * user-specified StartTime. *

* * @param alignedStartTime * The start time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedStartTime will be less than or equal to the value of * the user-specified StartTime. */ public void setAlignedStartTime(java.util.Date alignedStartTime) { this.alignedStartTime = alignedStartTime; } /** *

* The start time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the * user-specified StartTime. *

* * @return The start time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedStartTime will be less than or equal to the value of * the user-specified StartTime. */ public java.util.Date getAlignedStartTime() { return this.alignedStartTime; } /** *

* The start time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the * user-specified StartTime. *

* * @param alignedStartTime * The start time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedStartTime will be less than or equal to the value of * the user-specified StartTime. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDimensionKeysResult withAlignedStartTime(java.util.Date alignedStartTime) { setAlignedStartTime(alignedStartTime); return this; } /** *

* The end time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the * user-specified Endtime. *

* * @param alignedEndTime * The end time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of * the user-specified Endtime. */ public void setAlignedEndTime(java.util.Date alignedEndTime) { this.alignedEndTime = alignedEndTime; } /** *

* The end time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the * user-specified Endtime. *

* * @return The end time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of * the user-specified Endtime. */ public java.util.Date getAlignedEndTime() { return this.alignedEndTime; } /** *

* The end time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the * user-specified Endtime. *

* * @param alignedEndTime * The end time for the returned dimension keys, after alignment to a granular boundary (as specified by * PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of * the user-specified Endtime. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDimensionKeysResult withAlignedEndTime(java.util.Date alignedEndTime) { setAlignedEndTime(alignedEndTime); return this; } /** *

* If PartitionBy was present in the request, PartitionKeys contains the breakdown of * dimension keys by the specified partitions. *

* * @return If PartitionBy was present in the request, PartitionKeys contains the breakdown * of dimension keys by the specified partitions. */ public java.util.List getPartitionKeys() { return partitionKeys; } /** *

* If PartitionBy was present in the request, PartitionKeys contains the breakdown of * dimension keys by the specified partitions. *

* * @param partitionKeys * If PartitionBy was present in the request, PartitionKeys contains the breakdown * of dimension keys by the specified partitions. */ public void setPartitionKeys(java.util.Collection partitionKeys) { if (partitionKeys == null) { this.partitionKeys = null; return; } this.partitionKeys = new java.util.ArrayList(partitionKeys); } /** *

* If PartitionBy was present in the request, PartitionKeys contains the breakdown of * dimension keys by the specified partitions. *

*

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

* * @param partitionKeys * If PartitionBy was present in the request, PartitionKeys contains the breakdown * of dimension keys by the specified partitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDimensionKeysResult withPartitionKeys(ResponsePartitionKey... partitionKeys) { if (this.partitionKeys == null) { setPartitionKeys(new java.util.ArrayList(partitionKeys.length)); } for (ResponsePartitionKey ele : partitionKeys) { this.partitionKeys.add(ele); } return this; } /** *

* If PartitionBy was present in the request, PartitionKeys contains the breakdown of * dimension keys by the specified partitions. *

* * @param partitionKeys * If PartitionBy was present in the request, PartitionKeys contains the breakdown * of dimension keys by the specified partitions. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDimensionKeysResult withPartitionKeys(java.util.Collection partitionKeys) { setPartitionKeys(partitionKeys); return this; } /** *

* The dimension keys that were requested. *

* * @return The dimension keys that were requested. */ public java.util.List getKeys() { return keys; } /** *

* The dimension keys that were requested. *

* * @param keys * The dimension keys that were requested. */ public void setKeys(java.util.Collection keys) { if (keys == null) { this.keys = null; return; } this.keys = new java.util.ArrayList(keys); } /** *

* The dimension keys that were requested. *

*

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

* * @param keys * The dimension keys that were requested. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDimensionKeysResult withKeys(DimensionKeyDescription... keys) { if (this.keys == null) { setKeys(new java.util.ArrayList(keys.length)); } for (DimensionKeyDescription ele : keys) { this.keys.add(ele); } return this; } /** *

* The dimension keys that were requested. *

* * @param keys * The dimension keys that were requested. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDimensionKeysResult withKeys(java.util.Collection keys) { setKeys(keys); return this; } /** *

* A pagination token that indicates the response didn’t return all available records because * MaxRecords was specified in the previous request. To get the remaining records, specify * NextToken in a separate request with this value. *

* * @param nextToken * A pagination token that indicates the response didn’t return all available records because * MaxRecords was specified in the previous request. To get the remaining records, specify * NextToken in a separate request with this value. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* A pagination token that indicates the response didn’t return all available records because * MaxRecords was specified in the previous request. To get the remaining records, specify * NextToken in a separate request with this value. *

* * @return A pagination token that indicates the response didn’t return all available records because * MaxRecords was specified in the previous request. To get the remaining records, specify * NextToken in a separate request with this value. */ public String getNextToken() { return this.nextToken; } /** *

* A pagination token that indicates the response didn’t return all available records because * MaxRecords was specified in the previous request. To get the remaining records, specify * NextToken in a separate request with this value. *

* * @param nextToken * A pagination token that indicates the response didn’t return all available records because * MaxRecords was specified in the previous request. To get the remaining records, specify * NextToken in a separate request with this value. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDimensionKeysResult 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 (getAlignedStartTime() != null) sb.append("AlignedStartTime: ").append(getAlignedStartTime()).append(","); if (getAlignedEndTime() != null) sb.append("AlignedEndTime: ").append(getAlignedEndTime()).append(","); if (getPartitionKeys() != null) sb.append("PartitionKeys: ").append(getPartitionKeys()).append(","); if (getKeys() != null) sb.append("Keys: ").append(getKeys()).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 DescribeDimensionKeysResult == false) return false; DescribeDimensionKeysResult other = (DescribeDimensionKeysResult) obj; if (other.getAlignedStartTime() == null ^ this.getAlignedStartTime() == null) return false; if (other.getAlignedStartTime() != null && other.getAlignedStartTime().equals(this.getAlignedStartTime()) == false) return false; if (other.getAlignedEndTime() == null ^ this.getAlignedEndTime() == null) return false; if (other.getAlignedEndTime() != null && other.getAlignedEndTime().equals(this.getAlignedEndTime()) == false) return false; if (other.getPartitionKeys() == null ^ this.getPartitionKeys() == null) return false; if (other.getPartitionKeys() != null && other.getPartitionKeys().equals(this.getPartitionKeys()) == false) return false; if (other.getKeys() == null ^ this.getKeys() == null) return false; if (other.getKeys() != null && other.getKeys().equals(this.getKeys()) == 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 + ((getAlignedStartTime() == null) ? 0 : getAlignedStartTime().hashCode()); hashCode = prime * hashCode + ((getAlignedEndTime() == null) ? 0 : getAlignedEndTime().hashCode()); hashCode = prime * hashCode + ((getPartitionKeys() == null) ? 0 : getPartitionKeys().hashCode()); hashCode = prime * hashCode + ((getKeys() == null) ? 0 : getKeys().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public DescribeDimensionKeysResult clone() { try { return (DescribeDimensionKeysResult) 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