/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.customerprofiles.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An instance of EventStream in a list of EventStreams. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EventStreamSummary implements Serializable, Cloneable, StructuredPojo { /** ** The unique name of the domain. *
*/ private String domainName; /** ** The name of the event stream. *
*/ private String eventStreamName; /** ** A unique identifier for the event stream. *
*/ private String eventStreamArn; /** ** The operational state of destination stream for export. *
*/ private String state; /** *
* The timestamp when the State
changed to STOPPED
.
*
* Summary information about the Kinesis data stream. *
*/ private DestinationSummary destinationSummary; /** ** The tags used to organize, track, or control access for this resource. *
*/ private java.util.Map* The unique name of the domain. *
* * @param domainName * The unique name of the domain. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** ** The unique name of the domain. *
* * @return The unique name of the domain. */ public String getDomainName() { return this.domainName; } /** ** The unique name of the domain. *
* * @param domainName * The unique name of the domain. * @return Returns a reference to this object so that method calls can be chained together. */ public EventStreamSummary withDomainName(String domainName) { setDomainName(domainName); return this; } /** ** The name of the event stream. *
* * @param eventStreamName * The name of the event stream. */ public void setEventStreamName(String eventStreamName) { this.eventStreamName = eventStreamName; } /** ** The name of the event stream. *
* * @return The name of the event stream. */ public String getEventStreamName() { return this.eventStreamName; } /** ** The name of the event stream. *
* * @param eventStreamName * The name of the event stream. * @return Returns a reference to this object so that method calls can be chained together. */ public EventStreamSummary withEventStreamName(String eventStreamName) { setEventStreamName(eventStreamName); return this; } /** ** A unique identifier for the event stream. *
* * @param eventStreamArn * A unique identifier for the event stream. */ public void setEventStreamArn(String eventStreamArn) { this.eventStreamArn = eventStreamArn; } /** ** A unique identifier for the event stream. *
* * @return A unique identifier for the event stream. */ public String getEventStreamArn() { return this.eventStreamArn; } /** ** A unique identifier for the event stream. *
* * @param eventStreamArn * A unique identifier for the event stream. * @return Returns a reference to this object so that method calls can be chained together. */ public EventStreamSummary withEventStreamArn(String eventStreamArn) { setEventStreamArn(eventStreamArn); return this; } /** ** The operational state of destination stream for export. *
* * @param state * The operational state of destination stream for export. * @see EventStreamState */ public void setState(String state) { this.state = state; } /** ** The operational state of destination stream for export. *
* * @return The operational state of destination stream for export. * @see EventStreamState */ public String getState() { return this.state; } /** ** The operational state of destination stream for export. *
* * @param state * The operational state of destination stream for export. * @return Returns a reference to this object so that method calls can be chained together. * @see EventStreamState */ public EventStreamSummary withState(String state) { setState(state); return this; } /** ** The operational state of destination stream for export. *
* * @param state * The operational state of destination stream for export. * @return Returns a reference to this object so that method calls can be chained together. * @see EventStreamState */ public EventStreamSummary withState(EventStreamState state) { this.state = state.toString(); return this; } /** *
* The timestamp when the State
changed to STOPPED
.
*
State
changed to STOPPED
.
*/
public void setStoppedSince(java.util.Date stoppedSince) {
this.stoppedSince = stoppedSince;
}
/**
*
* The timestamp when the State
changed to STOPPED
.
*
State
changed to STOPPED
.
*/
public java.util.Date getStoppedSince() {
return this.stoppedSince;
}
/**
*
* The timestamp when the State
changed to STOPPED
.
*
State
changed to STOPPED
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EventStreamSummary withStoppedSince(java.util.Date stoppedSince) {
setStoppedSince(stoppedSince);
return this;
}
/**
* * Summary information about the Kinesis data stream. *
* * @param destinationSummary * Summary information about the Kinesis data stream. */ public void setDestinationSummary(DestinationSummary destinationSummary) { this.destinationSummary = destinationSummary; } /** ** Summary information about the Kinesis data stream. *
* * @return Summary information about the Kinesis data stream. */ public DestinationSummary getDestinationSummary() { return this.destinationSummary; } /** ** Summary information about the Kinesis data stream. *
* * @param destinationSummary * Summary information about the Kinesis data stream. * @return Returns a reference to this object so that method calls can be chained together. */ public EventStreamSummary withDestinationSummary(DestinationSummary destinationSummary) { setDestinationSummary(destinationSummary); return this; } /** ** The tags used to organize, track, or control access for this resource. *
* * @return The tags used to organize, track, or control access for this resource. */ public java.util.Map* The tags used to organize, track, or control access for this resource. *
* * @param tags * The tags used to organize, track, or control access for this resource. */ public void setTags(java.util.Map* The tags used to organize, track, or control access for this resource. *
* * @param tags * The tags used to organize, track, or control access for this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public EventStreamSummary withTags(java.util.Map