* 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
.
*
* 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
.
*
* If PartitionBy
was present in the request, PartitionKeys
contains the breakdown of
* dimension keys by the specified partitions.
*
* The dimension keys that were requested. *
*/ private java.util.List
* 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.
*
* 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
.
*
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
.
*
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
.
*
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
.
*
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
.
*
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
.
*
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.
*
PartitionBy
was present in the request, PartitionKeys
contains the breakdown
* of dimension keys by the specified partitions.
*/
public java.util.List
* If PartitionBy
was present in the request, PartitionKeys
contains the breakdown of
* dimension keys by the specified partitions.
*
PartitionBy
was present in the request, PartitionKeys
contains the breakdown
* of dimension keys by the specified partitions.
*/
public void setPartitionKeys(java.util.Collection
* 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 * IfPartitionBy
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
* If PartitionBy
was present in the request, PartitionKeys
contains the breakdown of
* dimension keys by the specified partitions.
*
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* The dimension keys that were requested. *
* * @return The dimension keys that were requested. */ public java.util.List* The dimension keys that were requested. *
* * @param keys * The dimension keys that were requested. */ public void setKeys(java.util.Collection* 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* 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
* 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.
*
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.
*
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.
*
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);
}
}
}