Class DescribeTrailsResult

java.lang.Object
com.amazonaws.services.cloudtrail.model.DescribeTrailsResult
All Implemented Interfaces:
Serializable, Cloneable

public class DescribeTrailsResult extends Object implements Serializable, Cloneable

Returns the objects or data listed below if successful. Otherwise, returns an error.

See Also:
  • Constructor Details

    • DescribeTrailsResult

      public DescribeTrailsResult()
  • Method Details

    • getTrailList

      public List<Trail> getTrailList()

      The list of trail objects.

      Returns:
      The list of trail objects.
    • setTrailList

      public void setTrailList(Collection<Trail> trailList)

      The list of trail objects.

      Parameters:
      trailList - The list of trail objects.
    • withTrailList

      public DescribeTrailsResult withTrailList(Trail... trailList)

      The list of trail objects.

      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.

      Parameters:
      trailList - The list of trail objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTrailList

      public DescribeTrailsResult withTrailList(Collection<Trail> trailList)

      The list of trail objects.

      Parameters:
      trailList - The list of trail objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public DescribeTrailsResult clone()
      Overrides:
      clone in class Object