com.amazonaws.services.datasync.model.DescribeStorageSystemResourceMetricsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-datasync Show documentation
/*
* 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.datasync.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 DescribeStorageSystemResourceMetricsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises
* storage system.
*
*/
private String discoveryJobArn;
/**
*
* Specifies the kind of storage system resource that you want information about.
*
*/
private String resourceType;
/**
*
* Specifies the universally unique identifier (UUID) of the storage system resource that you want information
* about.
*
*/
private String resourceId;
/**
*
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a
* certain time frame, use this parameter with EndTime
.
*
*/
private java.util.Date startTime;
/**
*
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a
* certain time frame, use this parameter with StartTime
.
*
*/
private java.util.Date endTime;
/**
*
* Specifies how many results that you want in the response.
*
*/
private Integer maxResults;
/**
*
* Specifies an opaque string that indicates the position to begin the next list of results in the response.
*
*/
private String nextToken;
/**
*
* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises
* storage system.
*
*
* @param discoveryJobArn
* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your
* on-premises storage system.
*/
public void setDiscoveryJobArn(String discoveryJobArn) {
this.discoveryJobArn = discoveryJobArn;
}
/**
*
* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises
* storage system.
*
*
* @return Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your
* on-premises storage system.
*/
public String getDiscoveryJobArn() {
return this.discoveryJobArn;
}
/**
*
* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises
* storage system.
*
*
* @param discoveryJobArn
* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your
* on-premises storage system.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStorageSystemResourceMetricsRequest withDiscoveryJobArn(String discoveryJobArn) {
setDiscoveryJobArn(discoveryJobArn);
return this;
}
/**
*
* Specifies the kind of storage system resource that you want information about.
*
*
* @param resourceType
* Specifies the kind of storage system resource that you want information about.
* @see DiscoveryResourceType
*/
public void setResourceType(String resourceType) {
this.resourceType = resourceType;
}
/**
*
* Specifies the kind of storage system resource that you want information about.
*
*
* @return Specifies the kind of storage system resource that you want information about.
* @see DiscoveryResourceType
*/
public String getResourceType() {
return this.resourceType;
}
/**
*
* Specifies the kind of storage system resource that you want information about.
*
*
* @param resourceType
* Specifies the kind of storage system resource that you want information about.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DiscoveryResourceType
*/
public DescribeStorageSystemResourceMetricsRequest withResourceType(String resourceType) {
setResourceType(resourceType);
return this;
}
/**
*
* Specifies the kind of storage system resource that you want information about.
*
*
* @param resourceType
* Specifies the kind of storage system resource that you want information about.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DiscoveryResourceType
*/
public DescribeStorageSystemResourceMetricsRequest withResourceType(DiscoveryResourceType resourceType) {
this.resourceType = resourceType.toString();
return this;
}
/**
*
* Specifies the universally unique identifier (UUID) of the storage system resource that you want information
* about.
*
*
* @param resourceId
* Specifies the universally unique identifier (UUID) of the storage system resource that you want
* information about.
*/
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
/**
*
* Specifies the universally unique identifier (UUID) of the storage system resource that you want information
* about.
*
*
* @return Specifies the universally unique identifier (UUID) of the storage system resource that you want
* information about.
*/
public String getResourceId() {
return this.resourceId;
}
/**
*
* Specifies the universally unique identifier (UUID) of the storage system resource that you want information
* about.
*
*
* @param resourceId
* Specifies the universally unique identifier (UUID) of the storage system resource that you want
* information about.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStorageSystemResourceMetricsRequest withResourceId(String resourceId) {
setResourceId(resourceId);
return this;
}
/**
*
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a
* certain time frame, use this parameter with EndTime
.
*
*
* @param startTime
* Specifies a time within the total duration that the discovery job ran. To see information gathered during
* a certain time frame, use this parameter with EndTime
.
*/
public void setStartTime(java.util.Date startTime) {
this.startTime = startTime;
}
/**
*
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a
* certain time frame, use this parameter with EndTime
.
*
*
* @return Specifies a time within the total duration that the discovery job ran. To see information gathered during
* a certain time frame, use this parameter with EndTime
.
*/
public java.util.Date getStartTime() {
return this.startTime;
}
/**
*
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a
* certain time frame, use this parameter with EndTime
.
*
*
* @param startTime
* Specifies a time within the total duration that the discovery job ran. To see information gathered during
* a certain time frame, use this parameter with EndTime
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStorageSystemResourceMetricsRequest withStartTime(java.util.Date startTime) {
setStartTime(startTime);
return this;
}
/**
*
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a
* certain time frame, use this parameter with StartTime
.
*
*
* @param endTime
* Specifies a time within the total duration that the discovery job ran. To see information gathered during
* a certain time frame, use this parameter with StartTime
.
*/
public void setEndTime(java.util.Date endTime) {
this.endTime = endTime;
}
/**
*
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a
* certain time frame, use this parameter with StartTime
.
*
*
* @return Specifies a time within the total duration that the discovery job ran. To see information gathered during
* a certain time frame, use this parameter with StartTime
.
*/
public java.util.Date getEndTime() {
return this.endTime;
}
/**
*
* Specifies a time within the total duration that the discovery job ran. To see information gathered during a
* certain time frame, use this parameter with StartTime
.
*
*
* @param endTime
* Specifies a time within the total duration that the discovery job ran. To see information gathered during
* a certain time frame, use this parameter with StartTime
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStorageSystemResourceMetricsRequest withEndTime(java.util.Date endTime) {
setEndTime(endTime);
return this;
}
/**
*
* Specifies how many results that you want in the response.
*
*
* @param maxResults
* Specifies how many results that you want in the response.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* Specifies how many results that you want in the response.
*
*
* @return Specifies how many results that you want in the response.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* Specifies how many results that you want in the response.
*
*
* @param maxResults
* Specifies how many results that you want in the response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStorageSystemResourceMetricsRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Specifies an opaque string that indicates the position to begin the next list of results in the response.
*
*
* @param nextToken
* Specifies an opaque string that indicates the position to begin the next list of results in the response.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* Specifies an opaque string that indicates the position to begin the next list of results in the response.
*
*
* @return Specifies an opaque string that indicates the position to begin the next list of results in the response.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* Specifies an opaque string that indicates the position to begin the next list of results in the response.
*
*
* @param nextToken
* Specifies an opaque string that indicates the position to begin the next list of results in the response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStorageSystemResourceMetricsRequest 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 (getDiscoveryJobArn() != null)
sb.append("DiscoveryJobArn: ").append(getDiscoveryJobArn()).append(",");
if (getResourceType() != null)
sb.append("ResourceType: ").append(getResourceType()).append(",");
if (getResourceId() != null)
sb.append("ResourceId: ").append(getResourceId()).append(",");
if (getStartTime() != null)
sb.append("StartTime: ").append(getStartTime()).append(",");
if (getEndTime() != null)
sb.append("EndTime: ").append(getEndTime()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).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 DescribeStorageSystemResourceMetricsRequest == false)
return false;
DescribeStorageSystemResourceMetricsRequest other = (DescribeStorageSystemResourceMetricsRequest) obj;
if (other.getDiscoveryJobArn() == null ^ this.getDiscoveryJobArn() == null)
return false;
if (other.getDiscoveryJobArn() != null && other.getDiscoveryJobArn().equals(this.getDiscoveryJobArn()) == false)
return false;
if (other.getResourceType() == null ^ this.getResourceType() == null)
return false;
if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false)
return false;
if (other.getResourceId() == null ^ this.getResourceId() == null)
return false;
if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == 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.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;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDiscoveryJobArn() == null) ? 0 : getDiscoveryJobArn().hashCode());
hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode());
hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode());
hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public DescribeStorageSystemResourceMetricsRequest clone() {
return (DescribeStorageSystemResourceMetricsRequest) super.clone();
}
}