shiver.me.timbers.aws.medialive.ChannelOutputDestinationSettings Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.medialive;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;
/**
* ChannelOutputDestinationSettings
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"StreamName",
"Username",
"PasswordParam",
"Url"
})
public class ChannelOutputDestinationSettings implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-streamname
*
*/
@JsonProperty("StreamName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-streamname")
private CharSequence streamName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-username
*
*/
@JsonProperty("Username")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-username")
private CharSequence username;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-passwordparam
*
*/
@JsonProperty("PasswordParam")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-passwordparam")
private CharSequence passwordParam;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-url
*
*/
@JsonProperty("Url")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-url")
private CharSequence url;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-streamname
*
*/
@JsonIgnore
public CharSequence getStreamName() {
return streamName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-streamname
*
*/
@JsonIgnore
public void setStreamName(CharSequence streamName) {
this.streamName = streamName;
}
public ChannelOutputDestinationSettings withStreamName(CharSequence streamName) {
this.streamName = streamName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-username
*
*/
@JsonIgnore
public CharSequence getUsername() {
return username;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-username
*
*/
@JsonIgnore
public void setUsername(CharSequence username) {
this.username = username;
}
public ChannelOutputDestinationSettings withUsername(CharSequence username) {
this.username = username;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-passwordparam
*
*/
@JsonIgnore
public CharSequence getPasswordParam() {
return passwordParam;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-passwordparam
*
*/
@JsonIgnore
public void setPasswordParam(CharSequence passwordParam) {
this.passwordParam = passwordParam;
}
public ChannelOutputDestinationSettings withPasswordParam(CharSequence passwordParam) {
this.passwordParam = passwordParam;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-url
*
*/
@JsonIgnore
public CharSequence getUrl() {
return url;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-outputdestinationsettings.html#cfn-medialive-channel-outputdestinationsettings-url
*
*/
@JsonIgnore
public void setUrl(CharSequence url) {
this.url = url;
}
public ChannelOutputDestinationSettings withUrl(CharSequence url) {
this.url = url;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("streamName", streamName).append("username", username).append("passwordParam", passwordParam).append("url", url).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(passwordParam).append(streamName).append(url).append(username).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ChannelOutputDestinationSettings) == false) {
return false;
}
ChannelOutputDestinationSettings rhs = ((ChannelOutputDestinationSettings) other);
return new EqualsBuilder().append(passwordParam, rhs.passwordParam).append(streamName, rhs.streamName).append(url, rhs.url).append(username, rhs.username).isEquals();
}
}