@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeTrailsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Returns the objects or data listed below if successful. Otherwise, returns an error.
Constructor and Description |
---|
DescribeTrailsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeTrailsResult |
clone() |
boolean |
equals(Object obj) |
List<Trail> |
getTrailList()
The list of trail objects.
|
int |
hashCode() |
void |
setTrailList(Collection<Trail> trailList)
The list of trail objects.
|
String |
toString()
Returns a string representation of this object.
|
DescribeTrailsResult |
withTrailList(Collection<Trail> trailList)
The list of trail objects.
|
DescribeTrailsResult |
withTrailList(Trail... trailList)
The list of trail objects.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Trail> getTrailList()
The list of trail objects. Trail objects with string values are only returned if values for the objects exist in
a trail's configuration. For example, SNSTopicName
and SNSTopicARN
are only returned in
results if a trail is configured to send SNS notifications. Similarly, KMSKeyId
only appears in
results if a trail's log files are encrypted with KMS customer managed keys.
SNSTopicName
and SNSTopicARN
are
only returned in results if a trail is configured to send SNS notifications. Similarly,
KMSKeyId
only appears in results if a trail's log files are encrypted with KMS customer
managed keys.public void setTrailList(Collection<Trail> trailList)
The list of trail objects. Trail objects with string values are only returned if values for the objects exist in
a trail's configuration. For example, SNSTopicName
and SNSTopicARN
are only returned in
results if a trail is configured to send SNS notifications. Similarly, KMSKeyId
only appears in
results if a trail's log files are encrypted with KMS customer managed keys.
trailList
- The list of trail objects. Trail objects with string values are only returned if values for the objects
exist in a trail's configuration. For example, SNSTopicName
and SNSTopicARN
are
only returned in results if a trail is configured to send SNS notifications. Similarly,
KMSKeyId
only appears in results if a trail's log files are encrypted with KMS customer
managed keys.public DescribeTrailsResult withTrailList(Trail... trailList)
The list of trail objects. Trail objects with string values are only returned if values for the objects exist in
a trail's configuration. For example, SNSTopicName
and SNSTopicARN
are only returned in
results if a trail is configured to send SNS notifications. Similarly, KMSKeyId
only appears in
results if a trail's log files are encrypted with KMS customer managed keys.
NOTE: This method appends the values to the existing list (if any). Use
setTrailList(java.util.Collection)
or withTrailList(java.util.Collection)
if you want to
override the existing values.
trailList
- The list of trail objects. Trail objects with string values are only returned if values for the objects
exist in a trail's configuration. For example, SNSTopicName
and SNSTopicARN
are
only returned in results if a trail is configured to send SNS notifications. Similarly,
KMSKeyId
only appears in results if a trail's log files are encrypted with KMS customer
managed keys.public DescribeTrailsResult withTrailList(Collection<Trail> trailList)
The list of trail objects. Trail objects with string values are only returned if values for the objects exist in
a trail's configuration. For example, SNSTopicName
and SNSTopicARN
are only returned in
results if a trail is configured to send SNS notifications. Similarly, KMSKeyId
only appears in
results if a trail's log files are encrypted with KMS customer managed keys.
trailList
- The list of trail objects. Trail objects with string values are only returned if values for the objects
exist in a trail's configuration. For example, SNSTopicName
and SNSTopicARN
are
only returned in results if a trail is configured to send SNS notifications. Similarly,
KMSKeyId
only appears in results if a trail's log files are encrypted with KMS customer
managed keys.public String toString()
toString
in class Object
Object.toString()
public DescribeTrailsResult clone()