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

shiver.me.timbers.aws.kinesis.Stream Maven / Gradle / Ivy

Go to download

This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The objects have been generated directly from the specification so should be a direct one to one mapping.

The newest version!

package shiver.me.timbers.aws.kinesis;

import java.util.ArrayList;
import java.util.List;
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;
import shiver.me.timbers.aws.Tag;


/**
 * Stream
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "Name", "RetentionPeriodHours", "ShardCount", "StreamEncryption", "Tags" }) public class Stream { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-name * */ @JsonProperty("Name") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-name") private CharSequence name; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-retentionperiodhours * */ @JsonProperty("RetentionPeriodHours") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-retentionperiodhours") private Number retentionPeriodHours; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-shardcount * */ @JsonProperty("ShardCount") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-shardcount") private Number shardCount; /** * StreamStreamEncryption *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html * */ @JsonProperty("StreamEncryption") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html") private Property streamEncryption; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-tags * */ @JsonProperty("Tags") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-tags") private List> tags = new ArrayList>(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-name * */ @JsonIgnore public CharSequence getName() { return name; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-name * */ @JsonIgnore public void setName(CharSequence name) { this.name = name; } public Stream withName(CharSequence name) { this.name = name; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-retentionperiodhours * */ @JsonIgnore public Number getRetentionPeriodHours() { return retentionPeriodHours; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-retentionperiodhours * */ @JsonIgnore public void setRetentionPeriodHours(Number retentionPeriodHours) { this.retentionPeriodHours = retentionPeriodHours; } public Stream withRetentionPeriodHours(Number retentionPeriodHours) { this.retentionPeriodHours = retentionPeriodHours; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-shardcount * */ @JsonIgnore public Number getShardCount() { return shardCount; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-shardcount * */ @JsonIgnore public void setShardCount(Number shardCount) { this.shardCount = shardCount; } public Stream withShardCount(Number shardCount) { this.shardCount = shardCount; return this; } /** * StreamStreamEncryption *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html * */ @JsonIgnore public Property getStreamEncryption() { return streamEncryption; } /** * StreamStreamEncryption *

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html * */ @JsonIgnore public void setStreamEncryption(Property streamEncryption) { this.streamEncryption = streamEncryption; } public Stream withStreamEncryption(Property streamEncryption) { this.streamEncryption = streamEncryption; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-tags * */ @JsonIgnore public List> getTags() { return tags; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-tags * */ @JsonIgnore public void setTags(List> tags) { this.tags = tags; } public Stream withTags(List> tags) { this.tags = tags; return this; } @Override public String toString() { return new ToStringBuilder(this).append("name", name).append("retentionPeriodHours", retentionPeriodHours).append("shardCount", shardCount).append("streamEncryption", streamEncryption).append("tags", tags).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(name).append(retentionPeriodHours).append(streamEncryption).append(shardCount).append(tags).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Stream) == false) { return false; } Stream rhs = ((Stream) other); return new EqualsBuilder().append(name, rhs.name).append(retentionPeriodHours, rhs.retentionPeriodHours).append(streamEncryption, rhs.streamEncryption).append(shardCount, rhs.shardCount).append(tags, rhs.tags).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy