shiver.me.timbers.aws.logs.LogStream Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.logs;
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;
/**
* LogStream
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"LogGroupName",
"LogStreamName"
})
public class LogStream {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-loggroupname
*
*/
@JsonProperty("LogGroupName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-loggroupname")
private CharSequence logGroupName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname
*
*/
@JsonProperty("LogStreamName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname")
private CharSequence logStreamName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-loggroupname
*
*/
@JsonIgnore
public CharSequence getLogGroupName() {
return logGroupName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-loggroupname
*
*/
@JsonIgnore
public void setLogGroupName(CharSequence logGroupName) {
this.logGroupName = logGroupName;
}
public LogStream withLogGroupName(CharSequence logGroupName) {
this.logGroupName = logGroupName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname
*
*/
@JsonIgnore
public CharSequence getLogStreamName() {
return logStreamName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html#cfn-logs-logstream-logstreamname
*
*/
@JsonIgnore
public void setLogStreamName(CharSequence logStreamName) {
this.logStreamName = logStreamName;
}
public LogStream withLogStreamName(CharSequence logStreamName) {
this.logStreamName = logStreamName;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("logGroupName", logGroupName).append("logStreamName", logStreamName).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(logGroupName).append(logStreamName).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof LogStream) == false) {
return false;
}
LogStream rhs = ((LogStream) other);
return new EqualsBuilder().append(logGroupName, rhs.logGroupName).append(logStreamName, rhs.logStreamName).isEquals();
}
}