Class KinesisStreamItem
- java.lang.Object
-
- io.jenkins.plugins.aws.kinesisconsumer.KinesisStreamItem
-
- All Implemented Interfaces:
Describable<KinesisStreamItem>
public class KinesisStreamItem extends Object implements Describable<KinesisStreamItem>
Class representing a Stream configuration- Author:
- Fabio Ponciroli
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KinesisStreamItem.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description KinesisStreamItem(String streamName, String initialPositionInStream)
Creates KinesisStreamItem instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor<KinesisStreamItem>
getDescriptor()
Get aDescriptor
ofKinesisStreamItem
instanceString
getInitialPositionInStream()
Get the initial position in the Kinesis stream Valid values are: LATEST or TRIM_HORIZON.String
getStreamName()
Get the stream namevoid
setInitialPositionInStream(String initialPositionInStream)
Set the initial position in the Kinesis streamvoid
setStreamName(String streamName)
Set the stream name
-
-
-
Method Detail
-
getStreamName
public String getStreamName()
Get the stream name- Returns:
- the stream name
-
setStreamName
public void setStreamName(String streamName)
Set the stream name- Parameters:
streamName
- stream name
-
getInitialPositionInStream
public String getInitialPositionInStream()
Get the initial position in the Kinesis stream Valid values are: LATEST or TRIM_HORIZON. Not all the positions have been implemented for the time being.- Returns:
- the initial position in the Kinesis stream
- See Also:
- Kinesis Staring Positions
-
setInitialPositionInStream
public void setInitialPositionInStream(String initialPositionInStream)
Set the initial position in the Kinesis stream- Parameters:
initialPositionInStream
- initial position in the Kinesis stream
-
getDescriptor
@NonNull public Descriptor<KinesisStreamItem> getDescriptor()
Get aDescriptor
ofKinesisStreamItem
instance- Specified by:
getDescriptor
in interfaceDescribable<KinesisStreamItem>
- Returns:
- a
Descriptor
ofKinesisStreamItem
instance
-
-