public class StreamInfo
extends java.lang.Object
implements java.io.Serializable
An object describing a Kinesis video stream.
Constructor and Description |
---|
StreamInfo() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreationTime()
A time stamp that indicates when the stream was created.
|
java.lang.Integer |
getDataRetentionInHours()
How long the stream retains data, in hours.
|
java.lang.String |
getDeviceName()
The name of the device that is associated with the stream.
|
java.lang.String |
getKmsKeyId()
The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video
Streams uses to encrypt data on the stream.
|
java.lang.String |
getMediaType()
The
MediaType of the stream. |
java.lang.String |
getStatus()
The status of the stream.
|
java.lang.String |
getStreamARN()
The Amazon Resource Name (ARN) of the stream.
|
java.lang.String |
getStreamName()
The name of the stream.
|
java.lang.String |
getVersion()
The version of the stream.
|
int |
hashCode() |
void |
setCreationTime(java.util.Date creationTime)
A time stamp that indicates when the stream was created.
|
void |
setDataRetentionInHours(java.lang.Integer dataRetentionInHours)
How long the stream retains data, in hours.
|
void |
setDeviceName(java.lang.String deviceName)
The name of the device that is associated with the stream.
|
void |
setKmsKeyId(java.lang.String kmsKeyId)
The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video
Streams uses to encrypt data on the stream.
|
void |
setMediaType(java.lang.String mediaType)
The
MediaType of the stream. |
void |
setStatus(Status status)
The status of the stream.
|
void |
setStatus(java.lang.String status)
The status of the stream.
|
void |
setStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) of the stream.
|
void |
setStreamName(java.lang.String streamName)
The name of the stream.
|
void |
setVersion(java.lang.String version)
The version of the stream.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamInfo |
withCreationTime(java.util.Date creationTime)
A time stamp that indicates when the stream was created.
|
StreamInfo |
withDataRetentionInHours(java.lang.Integer dataRetentionInHours)
How long the stream retains data, in hours.
|
StreamInfo |
withDeviceName(java.lang.String deviceName)
The name of the device that is associated with the stream.
|
StreamInfo |
withKmsKeyId(java.lang.String kmsKeyId)
The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video
Streams uses to encrypt data on the stream.
|
StreamInfo |
withMediaType(java.lang.String mediaType)
The
MediaType of the stream. |
StreamInfo |
withStatus(Status status)
The status of the stream.
|
StreamInfo |
withStatus(java.lang.String status)
The status of the stream.
|
StreamInfo |
withStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) of the stream.
|
StreamInfo |
withStreamName(java.lang.String streamName)
The name of the stream.
|
StreamInfo |
withVersion(java.lang.String version)
The version of the stream.
|
public java.lang.String getDeviceName()
The name of the device that is associated with the stream.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The name of the device that is associated with the stream.
public void setDeviceName(java.lang.String deviceName)
The name of the device that is associated with the stream.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
deviceName
- The name of the device that is associated with the stream.
public StreamInfo withDeviceName(java.lang.String deviceName)
The name of the device that is associated with the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
deviceName
- The name of the device that is associated with the stream.
public java.lang.String getStreamName()
The name of the stream.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
The name of the stream.
public void setStreamName(java.lang.String streamName)
The name of the stream.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream.
public StreamInfo withStreamName(java.lang.String streamName)
The name of the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
streamName
- The name of the stream.
public java.lang.String getStreamARN()
The Amazon Resource Name (ARN) of the stream.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
The Amazon Resource Name (ARN) of the stream.
public void setStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) of the stream.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
streamARN
- The Amazon Resource Name (ARN) of the stream.
public StreamInfo withStreamARN(java.lang.String streamARN)
The Amazon Resource Name (ARN) of the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
streamARN
- The Amazon Resource Name (ARN) of the stream.
public java.lang.String getMediaType()
The MediaType
of the stream.
Constraints:
Length: 1 - 128
Pattern: [\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)*
The MediaType
of the stream.
public void setMediaType(java.lang.String mediaType)
The MediaType
of the stream.
Constraints:
Length: 1 - 128
Pattern: [\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)*
mediaType
-
The MediaType
of the stream.
public StreamInfo withMediaType(java.lang.String mediaType)
The MediaType
of the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w\-\.\+]+/[\w\-\.\+]+(,[\w\-\.\+]+/[\w\-\.\+]+)*
mediaType
-
The MediaType
of the stream.
public java.lang.String getKmsKeyId()
The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video Streams uses to encrypt data on the stream.
Constraints:
Length: 1 - 2048
The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video Streams uses to encrypt data on the stream.
public void setKmsKeyId(java.lang.String kmsKeyId)
The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video Streams uses to encrypt data on the stream.
Constraints:
Length: 1 - 2048
kmsKeyId
- The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video Streams uses to encrypt data on the stream.
public StreamInfo withKmsKeyId(java.lang.String kmsKeyId)
The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video Streams uses to encrypt data on the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
kmsKeyId
- The ID of the AWS Key Management Service (AWS KMS) key that Kinesis Video Streams uses to encrypt data on the stream.
public java.lang.String getVersion()
The version of the stream.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9]+
The version of the stream.
public void setVersion(java.lang.String version)
The version of the stream.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9]+
version
- The version of the stream.
public StreamInfo withVersion(java.lang.String version)
The version of the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9]+
version
- The version of the stream.
public java.lang.String getStatus()
The status of the stream.
Constraints:
Allowed Values: CREATING, ACTIVE, UPDATING, DELETING
The status of the stream.
Status
public void setStatus(java.lang.String status)
The status of the stream.
Constraints:
Allowed Values: CREATING, ACTIVE, UPDATING, DELETING
status
- The status of the stream.
Status
public StreamInfo withStatus(java.lang.String status)
The status of the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATING, ACTIVE, UPDATING, DELETING
status
- The status of the stream.
Status
public void setStatus(Status status)
The status of the stream.
Constraints:
Allowed Values: CREATING, ACTIVE, UPDATING, DELETING
status
- The status of the stream.
Status
public StreamInfo withStatus(Status status)
The status of the stream.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATING, ACTIVE, UPDATING, DELETING
status
- The status of the stream.
Status
public java.util.Date getCreationTime()
A time stamp that indicates when the stream was created.
A time stamp that indicates when the stream was created.
public void setCreationTime(java.util.Date creationTime)
A time stamp that indicates when the stream was created.
creationTime
- A time stamp that indicates when the stream was created.
public StreamInfo withCreationTime(java.util.Date creationTime)
A time stamp that indicates when the stream was created.
Returns a reference to this object so that method calls can be chained together.
creationTime
- A time stamp that indicates when the stream was created.
public java.lang.Integer getDataRetentionInHours()
How long the stream retains data, in hours.
Constraints:
Range: 0 -
How long the stream retains data, in hours.
public void setDataRetentionInHours(java.lang.Integer dataRetentionInHours)
How long the stream retains data, in hours.
Constraints:
Range: 0 -
dataRetentionInHours
- How long the stream retains data, in hours.
public StreamInfo withDataRetentionInHours(java.lang.Integer dataRetentionInHours)
How long the stream retains data, in hours.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
dataRetentionInHours
- How long the stream retains data, in hours.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.