com.amazonaws.services.mediatailor.model.GetChannelScheduleRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-mediatailor 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.mediatailor.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 GetChannelScheduleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The single audience for GetChannelScheduleRequest.
*
*/
private String audience;
/**
*
* The name of the channel associated with this Channel Schedule.
*
*/
private String channelName;
/**
*
* The duration in minutes of the channel schedule.
*
*/
private String durationMinutes;
/**
*
* The maximum number of channel schedules that you want MediaTailor to return in response to the current request.
* If there are more than MaxResults
channel schedules, use the value of NextToken
in the
* response to get the next page of results.
*
*/
private Integer maxResults;
/**
*
* (Optional) If the playback configuration has more than MaxResults
channel schedules, use
* NextToken
to get the second and subsequent pages of results.
*
*
* For the first GetChannelScheduleRequest
request, omit this value.
*
*
* For the second and subsequent requests, get the value of NextToken
from the previous response and
* specify that value for NextToken
in the request.
*
*
* If the previous response didn't include a NextToken
element, there are no more channel schedules to
* get.
*
*/
private String nextToken;
/**
*
* The single audience for GetChannelScheduleRequest.
*
*
* @param audience
* The single audience for GetChannelScheduleRequest.
*/
public void setAudience(String audience) {
this.audience = audience;
}
/**
*
* The single audience for GetChannelScheduleRequest.
*
*
* @return The single audience for GetChannelScheduleRequest.
*/
public String getAudience() {
return this.audience;
}
/**
*
* The single audience for GetChannelScheduleRequest.
*
*
* @param audience
* The single audience for GetChannelScheduleRequest.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetChannelScheduleRequest withAudience(String audience) {
setAudience(audience);
return this;
}
/**
*
* The name of the channel associated with this Channel Schedule.
*
*
* @param channelName
* The name of the channel associated with this Channel Schedule.
*/
public void setChannelName(String channelName) {
this.channelName = channelName;
}
/**
*
* The name of the channel associated with this Channel Schedule.
*
*
* @return The name of the channel associated with this Channel Schedule.
*/
public String getChannelName() {
return this.channelName;
}
/**
*
* The name of the channel associated with this Channel Schedule.
*
*
* @param channelName
* The name of the channel associated with this Channel Schedule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetChannelScheduleRequest withChannelName(String channelName) {
setChannelName(channelName);
return this;
}
/**
*
* The duration in minutes of the channel schedule.
*
*
* @param durationMinutes
* The duration in minutes of the channel schedule.
*/
public void setDurationMinutes(String durationMinutes) {
this.durationMinutes = durationMinutes;
}
/**
*
* The duration in minutes of the channel schedule.
*
*
* @return The duration in minutes of the channel schedule.
*/
public String getDurationMinutes() {
return this.durationMinutes;
}
/**
*
* The duration in minutes of the channel schedule.
*
*
* @param durationMinutes
* The duration in minutes of the channel schedule.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetChannelScheduleRequest withDurationMinutes(String durationMinutes) {
setDurationMinutes(durationMinutes);
return this;
}
/**
*
* The maximum number of channel schedules that you want MediaTailor to return in response to the current request.
* If there are more than MaxResults
channel schedules, use the value of NextToken
in the
* response to get the next page of results.
*
*
* @param maxResults
* The maximum number of channel schedules that you want MediaTailor to return in response to the current
* request. If there are more than MaxResults
channel schedules, use the value of
* NextToken
in the response to get the next page of results.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of channel schedules that you want MediaTailor to return in response to the current request.
* If there are more than MaxResults
channel schedules, use the value of NextToken
in the
* response to get the next page of results.
*
*
* @return The maximum number of channel schedules that you want MediaTailor to return in response to the current
* request. If there are more than MaxResults
channel schedules, use the value of
* NextToken
in the response to get the next page of results.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of channel schedules that you want MediaTailor to return in response to the current request.
* If there are more than MaxResults
channel schedules, use the value of NextToken
in the
* response to get the next page of results.
*
*
* @param maxResults
* The maximum number of channel schedules that you want MediaTailor to return in response to the current
* request. If there are more than MaxResults
channel schedules, use the value of
* NextToken
in the response to get the next page of results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetChannelScheduleRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* (Optional) If the playback configuration has more than MaxResults
channel schedules, use
* NextToken
to get the second and subsequent pages of results.
*
*
* For the first GetChannelScheduleRequest
request, omit this value.
*
*
* For the second and subsequent requests, get the value of NextToken
from the previous response and
* specify that value for NextToken
in the request.
*
*
* If the previous response didn't include a NextToken
element, there are no more channel schedules to
* get.
*
*
* @param nextToken
* (Optional) If the playback configuration has more than MaxResults
channel schedules, use
* NextToken
to get the second and subsequent pages of results.
*
* For the first GetChannelScheduleRequest
request, omit this value.
*
*
* For the second and subsequent requests, get the value of NextToken
from the previous response
* and specify that value for NextToken
in the request.
*
*
* If the previous response didn't include a NextToken
element, there are no more channel
* schedules to get.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* (Optional) If the playback configuration has more than MaxResults
channel schedules, use
* NextToken
to get the second and subsequent pages of results.
*
*
* For the first GetChannelScheduleRequest
request, omit this value.
*
*
* For the second and subsequent requests, get the value of NextToken
from the previous response and
* specify that value for NextToken
in the request.
*
*
* If the previous response didn't include a NextToken
element, there are no more channel schedules to
* get.
*
*
* @return (Optional) If the playback configuration has more than MaxResults
channel schedules, use
* NextToken
to get the second and subsequent pages of results.
*
* For the first GetChannelScheduleRequest
request, omit this value.
*
*
* For the second and subsequent requests, get the value of NextToken
from the previous
* response and specify that value for NextToken
in the request.
*
*
* If the previous response didn't include a NextToken
element, there are no more channel
* schedules to get.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* (Optional) If the playback configuration has more than MaxResults
channel schedules, use
* NextToken
to get the second and subsequent pages of results.
*
*
* For the first GetChannelScheduleRequest
request, omit this value.
*
*
* For the second and subsequent requests, get the value of NextToken
from the previous response and
* specify that value for NextToken
in the request.
*
*
* If the previous response didn't include a NextToken
element, there are no more channel schedules to
* get.
*
*
* @param nextToken
* (Optional) If the playback configuration has more than MaxResults
channel schedules, use
* NextToken
to get the second and subsequent pages of results.
*
* For the first GetChannelScheduleRequest
request, omit this value.
*
*
* For the second and subsequent requests, get the value of NextToken
from the previous response
* and specify that value for NextToken
in the request.
*
*
* If the previous response didn't include a NextToken
element, there are no more channel
* schedules to get.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetChannelScheduleRequest 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 (getAudience() != null)
sb.append("Audience: ").append(getAudience()).append(",");
if (getChannelName() != null)
sb.append("ChannelName: ").append(getChannelName()).append(",");
if (getDurationMinutes() != null)
sb.append("DurationMinutes: ").append(getDurationMinutes()).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 GetChannelScheduleRequest == false)
return false;
GetChannelScheduleRequest other = (GetChannelScheduleRequest) obj;
if (other.getAudience() == null ^ this.getAudience() == null)
return false;
if (other.getAudience() != null && other.getAudience().equals(this.getAudience()) == false)
return false;
if (other.getChannelName() == null ^ this.getChannelName() == null)
return false;
if (other.getChannelName() != null && other.getChannelName().equals(this.getChannelName()) == false)
return false;
if (other.getDurationMinutes() == null ^ this.getDurationMinutes() == null)
return false;
if (other.getDurationMinutes() != null && other.getDurationMinutes().equals(this.getDurationMinutes()) == 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 + ((getAudience() == null) ? 0 : getAudience().hashCode());
hashCode = prime * hashCode + ((getChannelName() == null) ? 0 : getChannelName().hashCode());
hashCode = prime * hashCode + ((getDurationMinutes() == null) ? 0 : getDurationMinutes().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
return hashCode;
}
@Override
public GetChannelScheduleRequest clone() {
return (GetChannelScheduleRequest) super.clone();
}
}