@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetChannelResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetChannelResult() |
Modifier and Type | Method and Description |
---|---|
GetChannelResult |
clone() |
boolean |
equals(Object obj) |
String |
getChannelArn()
The ARN of an channel returned by a
GetChannel request. |
List<Destination> |
getDestinations()
The destinations for the channel.
|
IngestionStatus |
getIngestionStatus()
A table showing information about the most recent successful and failed attempts to ingest events.
|
String |
getName()
The name of the CloudTrail channel.
|
String |
getSource()
The source for the CloudTrail channel.
|
SourceConfig |
getSourceConfig()
Provides information about the advanced event selectors configured for the channel, and whether the channel
applies to all Regions or a single Region.
|
int |
hashCode() |
void |
setChannelArn(String channelArn)
The ARN of an channel returned by a
GetChannel request. |
void |
setDestinations(Collection<Destination> destinations)
The destinations for the channel.
|
void |
setIngestionStatus(IngestionStatus ingestionStatus)
A table showing information about the most recent successful and failed attempts to ingest events.
|
void |
setName(String name)
The name of the CloudTrail channel.
|
void |
setSource(String source)
The source for the CloudTrail channel.
|
void |
setSourceConfig(SourceConfig sourceConfig)
Provides information about the advanced event selectors configured for the channel, and whether the channel
applies to all Regions or a single Region.
|
String |
toString()
Returns a string representation of this object.
|
GetChannelResult |
withChannelArn(String channelArn)
The ARN of an channel returned by a
GetChannel request. |
GetChannelResult |
withDestinations(Collection<Destination> destinations)
The destinations for the channel.
|
GetChannelResult |
withDestinations(Destination... destinations)
The destinations for the channel.
|
GetChannelResult |
withIngestionStatus(IngestionStatus ingestionStatus)
A table showing information about the most recent successful and failed attempts to ingest events.
|
GetChannelResult |
withName(String name)
The name of the CloudTrail channel.
|
GetChannelResult |
withSource(String source)
The source for the CloudTrail channel.
|
GetChannelResult |
withSourceConfig(SourceConfig sourceConfig)
Provides information about the advanced event selectors configured for the channel, and whether the channel
applies to all Regions or a single Region.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setChannelArn(String channelArn)
The ARN of an channel returned by a GetChannel
request.
channelArn
- The ARN of an channel returned by a GetChannel
request.public String getChannelArn()
The ARN of an channel returned by a GetChannel
request.
GetChannel
request.public GetChannelResult withChannelArn(String channelArn)
The ARN of an channel returned by a GetChannel
request.
channelArn
- The ARN of an channel returned by a GetChannel
request.public void setName(String name)
The name of the CloudTrail channel. For service-linked channels, the name is
aws-service-channel/service-name/custom-suffix
where service-name
represents the name
of the Amazon Web Services service that created the channel and custom-suffix
represents the suffix
generated by the Amazon Web Services service.
name
- The name of the CloudTrail channel. For service-linked channels, the name is
aws-service-channel/service-name/custom-suffix
where service-name
represents the
name of the Amazon Web Services service that created the channel and custom-suffix
represents
the suffix generated by the Amazon Web Services service.public String getName()
The name of the CloudTrail channel. For service-linked channels, the name is
aws-service-channel/service-name/custom-suffix
where service-name
represents the name
of the Amazon Web Services service that created the channel and custom-suffix
represents the suffix
generated by the Amazon Web Services service.
aws-service-channel/service-name/custom-suffix
where service-name
represents
the name of the Amazon Web Services service that created the channel and custom-suffix
represents the suffix generated by the Amazon Web Services service.public GetChannelResult withName(String name)
The name of the CloudTrail channel. For service-linked channels, the name is
aws-service-channel/service-name/custom-suffix
where service-name
represents the name
of the Amazon Web Services service that created the channel and custom-suffix
represents the suffix
generated by the Amazon Web Services service.
name
- The name of the CloudTrail channel. For service-linked channels, the name is
aws-service-channel/service-name/custom-suffix
where service-name
represents the
name of the Amazon Web Services service that created the channel and custom-suffix
represents
the suffix generated by the Amazon Web Services service.public void setSource(String source)
The source for the CloudTrail channel.
source
- The source for the CloudTrail channel.public String getSource()
The source for the CloudTrail channel.
public GetChannelResult withSource(String source)
The source for the CloudTrail channel.
source
- The source for the CloudTrail channel.public void setSourceConfig(SourceConfig sourceConfig)
Provides information about the advanced event selectors configured for the channel, and whether the channel applies to all Regions or a single Region.
sourceConfig
- Provides information about the advanced event selectors configured for the channel, and whether the
channel applies to all Regions or a single Region.public SourceConfig getSourceConfig()
Provides information about the advanced event selectors configured for the channel, and whether the channel applies to all Regions or a single Region.
public GetChannelResult withSourceConfig(SourceConfig sourceConfig)
Provides information about the advanced event selectors configured for the channel, and whether the channel applies to all Regions or a single Region.
sourceConfig
- Provides information about the advanced event selectors configured for the channel, and whether the
channel applies to all Regions or a single Region.public List<Destination> getDestinations()
The destinations for the channel. For channels created for integrations, the destinations are the event data stores that log events arriving through the channel. For service-linked channels, the destination is the Amazon Web Services service that created the service-linked channel to receive events.
public void setDestinations(Collection<Destination> destinations)
The destinations for the channel. For channels created for integrations, the destinations are the event data stores that log events arriving through the channel. For service-linked channels, the destination is the Amazon Web Services service that created the service-linked channel to receive events.
destinations
- The destinations for the channel. For channels created for integrations, the destinations are the event
data stores that log events arriving through the channel. For service-linked channels, the destination is
the Amazon Web Services service that created the service-linked channel to receive events.public GetChannelResult withDestinations(Destination... destinations)
The destinations for the channel. For channels created for integrations, the destinations are the event data stores that log events arriving through the channel. For service-linked channels, the destination is the Amazon Web Services service that created the service-linked channel to receive events.
NOTE: This method appends the values to the existing list (if any). Use
setDestinations(java.util.Collection)
or withDestinations(java.util.Collection)
if you want to
override the existing values.
destinations
- The destinations for the channel. For channels created for integrations, the destinations are the event
data stores that log events arriving through the channel. For service-linked channels, the destination is
the Amazon Web Services service that created the service-linked channel to receive events.public GetChannelResult withDestinations(Collection<Destination> destinations)
The destinations for the channel. For channels created for integrations, the destinations are the event data stores that log events arriving through the channel. For service-linked channels, the destination is the Amazon Web Services service that created the service-linked channel to receive events.
destinations
- The destinations for the channel. For channels created for integrations, the destinations are the event
data stores that log events arriving through the channel. For service-linked channels, the destination is
the Amazon Web Services service that created the service-linked channel to receive events.public void setIngestionStatus(IngestionStatus ingestionStatus)
A table showing information about the most recent successful and failed attempts to ingest events.
ingestionStatus
- A table showing information about the most recent successful and failed attempts to ingest events.public IngestionStatus getIngestionStatus()
A table showing information about the most recent successful and failed attempts to ingest events.
public GetChannelResult withIngestionStatus(IngestionStatus ingestionStatus)
A table showing information about the most recent successful and failed attempts to ingest events.
ingestionStatus
- A table showing information about the most recent successful and failed attempts to ingest events.public String toString()
toString
in class Object
Object.toString()
public GetChannelResult clone()