/**
  * The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWS
  * resources.
  *
  * <p>Returns a reference to this object so that method calls can be chained together.
  *
  * <p><b>Constraints:</b><br>
  * <b>Allowed Values: </b>aws.config
  *
  * @param eventSource The source of the event, such as an AWS service, that triggers AWS Config to
  *     evaluate your AWS resources.
  * @return A reference to this updated object so that method calls can be chained together.
  * @see EventSource
  */
 public SourceDetail withEventSource(EventSource eventSource) {
   this.eventSource = eventSource.toString();
   return this;
 }
 /**
  * The source of the event, such as an AWS service, that triggers AWS Config to evaluate your AWS
  * resources.
  *
  * <p><b>Constraints:</b><br>
  * <b>Allowed Values: </b>aws.config
  *
  * @param eventSource The source of the event, such as an AWS service, that triggers AWS Config to
  *     evaluate your AWS resources.
  * @see EventSource
  */
 public void setEventSource(EventSource eventSource) {
   this.eventSource = eventSource.toString();
 }