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

com.amazonaws.services.mediapackagev2.model.UpdateChannelRequest Maven / Gradle / Ivy

/*
 * 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.mediapackagev2.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 UpdateChannelRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name that describes the channel group. The name is the primary identifier for the channel group, and must be * unique for your account in the AWS Region. *

*/ private String channelGroupName; /** *

* The name that describes the channel. The name is the primary identifier for the channel, and must be unique for * your account in the AWS Region and channel group. *

*/ private String channelName; /** *

* The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the resource's * current entity tag, the update request will be rejected. *

*/ private String eTag; /** *

* Any descriptive information that you want to add to the channel for future identification purposes. *

*/ private String description; /** *

* The name that describes the channel group. The name is the primary identifier for the channel group, and must be * unique for your account in the AWS Region. *

* * @param channelGroupName * The name that describes the channel group. The name is the primary identifier for the channel group, and * must be unique for your account in the AWS Region. */ public void setChannelGroupName(String channelGroupName) { this.channelGroupName = channelGroupName; } /** *

* The name that describes the channel group. The name is the primary identifier for the channel group, and must be * unique for your account in the AWS Region. *

* * @return The name that describes the channel group. The name is the primary identifier for the channel group, and * must be unique for your account in the AWS Region. */ public String getChannelGroupName() { return this.channelGroupName; } /** *

* The name that describes the channel group. The name is the primary identifier for the channel group, and must be * unique for your account in the AWS Region. *

* * @param channelGroupName * The name that describes the channel group. The name is the primary identifier for the channel group, and * must be unique for your account in the AWS Region. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelRequest withChannelGroupName(String channelGroupName) { setChannelGroupName(channelGroupName); return this; } /** *

* The name that describes the channel. The name is the primary identifier for the channel, and must be unique for * your account in the AWS Region and channel group. *

* * @param channelName * The name that describes the channel. The name is the primary identifier for the channel, and must be * unique for your account in the AWS Region and channel group. */ public void setChannelName(String channelName) { this.channelName = channelName; } /** *

* The name that describes the channel. The name is the primary identifier for the channel, and must be unique for * your account in the AWS Region and channel group. *

* * @return The name that describes the channel. The name is the primary identifier for the channel, and must be * unique for your account in the AWS Region and channel group. */ public String getChannelName() { return this.channelName; } /** *

* The name that describes the channel. The name is the primary identifier for the channel, and must be unique for * your account in the AWS Region and channel group. *

* * @param channelName * The name that describes the channel. The name is the primary identifier for the channel, and must be * unique for your account in the AWS Region and channel group. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelRequest withChannelName(String channelName) { setChannelName(channelName); return this; } /** *

* The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the resource's * current entity tag, the update request will be rejected. *

* * @param eTag * The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the * resource's current entity tag, the update request will be rejected. */ public void setETag(String eTag) { this.eTag = eTag; } /** *

* The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the resource's * current entity tag, the update request will be rejected. *

* * @return The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the * resource's current entity tag, the update request will be rejected. */ public String getETag() { return this.eTag; } /** *

* The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the resource's * current entity tag, the update request will be rejected. *

* * @param eTag * The expected current Entity Tag (ETag) for the resource. If the specified ETag does not match the * resource's current entity tag, the update request will be rejected. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelRequest withETag(String eTag) { setETag(eTag); return this; } /** *

* Any descriptive information that you want to add to the channel for future identification purposes. *

* * @param description * Any descriptive information that you want to add to the channel for future identification purposes. */ public void setDescription(String description) { this.description = description; } /** *

* Any descriptive information that you want to add to the channel for future identification purposes. *

* * @return Any descriptive information that you want to add to the channel for future identification purposes. */ public String getDescription() { return this.description; } /** *

* Any descriptive information that you want to add to the channel for future identification purposes. *

* * @param description * Any descriptive information that you want to add to the channel for future identification purposes. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateChannelRequest withDescription(String description) { setDescription(description); 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 (getChannelGroupName() != null) sb.append("ChannelGroupName: ").append(getChannelGroupName()).append(","); if (getChannelName() != null) sb.append("ChannelName: ").append(getChannelName()).append(","); if (getETag() != null) sb.append("ETag: ").append(getETag()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateChannelRequest == false) return false; UpdateChannelRequest other = (UpdateChannelRequest) obj; if (other.getChannelGroupName() == null ^ this.getChannelGroupName() == null) return false; if (other.getChannelGroupName() != null && other.getChannelGroupName().equals(this.getChannelGroupName()) == 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.getETag() == null ^ this.getETag() == null) return false; if (other.getETag() != null && other.getETag().equals(this.getETag()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getChannelGroupName() == null) ? 0 : getChannelGroupName().hashCode()); hashCode = prime * hashCode + ((getChannelName() == null) ? 0 : getChannelName().hashCode()); hashCode = prime * hashCode + ((getETag() == null) ? 0 : getETag().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); return hashCode; } @Override public UpdateChannelRequest clone() { return (UpdateChannelRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy