com.amazonaws.services.iotanalytics.model.DescribeChannelRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-iotanalytics Show documentation
/*
* Copyright 2018-2023 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.iotanalytics.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 DescribeChannelRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the channel whose information is retrieved.
*
*/
private String channelName;
/**
*
* If true, additional statistical information about the channel is included in the response. This feature can't be
* used with a channel whose S3 storage is customer-managed.
*
*/
private Boolean includeStatistics;
/**
*
* The name of the channel whose information is retrieved.
*
*
* @param channelName
* The name of the channel whose information is retrieved.
*/
public void setChannelName(String channelName) {
this.channelName = channelName;
}
/**
*
* The name of the channel whose information is retrieved.
*
*
* @return The name of the channel whose information is retrieved.
*/
public String getChannelName() {
return this.channelName;
}
/**
*
* The name of the channel whose information is retrieved.
*
*
* @param channelName
* The name of the channel whose information is retrieved.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeChannelRequest withChannelName(String channelName) {
setChannelName(channelName);
return this;
}
/**
*
* If true, additional statistical information about the channel is included in the response. This feature can't be
* used with a channel whose S3 storage is customer-managed.
*
*
* @param includeStatistics
* If true, additional statistical information about the channel is included in the response. This feature
* can't be used with a channel whose S3 storage is customer-managed.
*/
public void setIncludeStatistics(Boolean includeStatistics) {
this.includeStatistics = includeStatistics;
}
/**
*
* If true, additional statistical information about the channel is included in the response. This feature can't be
* used with a channel whose S3 storage is customer-managed.
*
*
* @return If true, additional statistical information about the channel is included in the response. This feature
* can't be used with a channel whose S3 storage is customer-managed.
*/
public Boolean getIncludeStatistics() {
return this.includeStatistics;
}
/**
*
* If true, additional statistical information about the channel is included in the response. This feature can't be
* used with a channel whose S3 storage is customer-managed.
*
*
* @param includeStatistics
* If true, additional statistical information about the channel is included in the response. This feature
* can't be used with a channel whose S3 storage is customer-managed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeChannelRequest withIncludeStatistics(Boolean includeStatistics) {
setIncludeStatistics(includeStatistics);
return this;
}
/**
*
* If true, additional statistical information about the channel is included in the response. This feature can't be
* used with a channel whose S3 storage is customer-managed.
*
*
* @return If true, additional statistical information about the channel is included in the response. This feature
* can't be used with a channel whose S3 storage is customer-managed.
*/
public Boolean isIncludeStatistics() {
return this.includeStatistics;
}
/**
* 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 (getChannelName() != null)
sb.append("ChannelName: ").append(getChannelName()).append(",");
if (getIncludeStatistics() != null)
sb.append("IncludeStatistics: ").append(getIncludeStatistics());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeChannelRequest == false)
return false;
DescribeChannelRequest other = (DescribeChannelRequest) obj;
if (other.getChannelName() == null ^ this.getChannelName() == null)
return false;
if (other.getChannelName() != null && other.getChannelName().equals(this.getChannelName()) == false)
return false;
if (other.getIncludeStatistics() == null ^ this.getIncludeStatistics() == null)
return false;
if (other.getIncludeStatistics() != null && other.getIncludeStatistics().equals(this.getIncludeStatistics()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getChannelName() == null) ? 0 : getChannelName().hashCode());
hashCode = prime * hashCode + ((getIncludeStatistics() == null) ? 0 : getIncludeStatistics().hashCode());
return hashCode;
}
@Override
public DescribeChannelRequest clone() {
return (DescribeChannelRequest) super.clone();
}
}