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

com.amazonaws.services.mediatailor.model.ConfigureLogsForChannelResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS MediaTailor module holds the client classes that are used for communicating with AWS MediaTailor Service

The newest version!
/*
 * 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;

/**
 * 
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ConfigureLogsForChannelResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* The name of the channel. *

*/ private String channelName; /** *

* The types of logs collected. *

*/ private java.util.List logTypes; /** *

* The name of the channel. *

* * @param channelName * The name of the channel. */ public void setChannelName(String channelName) { this.channelName = channelName; } /** *

* The name of the channel. *

* * @return The name of the channel. */ public String getChannelName() { return this.channelName; } /** *

* The name of the channel. *

* * @param channelName * The name of the channel. * @return Returns a reference to this object so that method calls can be chained together. */ public ConfigureLogsForChannelResult withChannelName(String channelName) { setChannelName(channelName); return this; } /** *

* The types of logs collected. *

* * @return The types of logs collected. * @see LogType */ public java.util.List getLogTypes() { return logTypes; } /** *

* The types of logs collected. *

* * @param logTypes * The types of logs collected. * @see LogType */ public void setLogTypes(java.util.Collection logTypes) { if (logTypes == null) { this.logTypes = null; return; } this.logTypes = new java.util.ArrayList(logTypes); } /** *

* The types of logs collected. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setLogTypes(java.util.Collection)} or {@link #withLogTypes(java.util.Collection)} if you want to override * the existing values. *

* * @param logTypes * The types of logs collected. * @return Returns a reference to this object so that method calls can be chained together. * @see LogType */ public ConfigureLogsForChannelResult withLogTypes(String... logTypes) { if (this.logTypes == null) { setLogTypes(new java.util.ArrayList(logTypes.length)); } for (String ele : logTypes) { this.logTypes.add(ele); } return this; } /** *

* The types of logs collected. *

* * @param logTypes * The types of logs collected. * @return Returns a reference to this object so that method calls can be chained together. * @see LogType */ public ConfigureLogsForChannelResult withLogTypes(java.util.Collection logTypes) { setLogTypes(logTypes); return this; } /** *

* The types of logs collected. *

* * @param logTypes * The types of logs collected. * @return Returns a reference to this object so that method calls can be chained together. * @see LogType */ public ConfigureLogsForChannelResult withLogTypes(LogType... logTypes) { java.util.ArrayList logTypesCopy = new java.util.ArrayList(logTypes.length); for (LogType value : logTypes) { logTypesCopy.add(value.toString()); } if (getLogTypes() == null) { setLogTypes(logTypesCopy); } else { getLogTypes().addAll(logTypesCopy); } 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 (getChannelName() != null) sb.append("ChannelName: ").append(getChannelName()).append(","); if (getLogTypes() != null) sb.append("LogTypes: ").append(getLogTypes()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ConfigureLogsForChannelResult == false) return false; ConfigureLogsForChannelResult other = (ConfigureLogsForChannelResult) obj; if (other.getChannelName() == null ^ this.getChannelName() == null) return false; if (other.getChannelName() != null && other.getChannelName().equals(this.getChannelName()) == false) return false; if (other.getLogTypes() == null ^ this.getLogTypes() == null) return false; if (other.getLogTypes() != null && other.getLogTypes().equals(this.getLogTypes()) == 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 + ((getLogTypes() == null) ? 0 : getLogTypes().hashCode()); return hashCode; } @Override public ConfigureLogsForChannelResult clone() { try { return (ConfigureLogsForChannelResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy