public SourceDetail withMessageType(String messageType) {
        setMessageType(messageType);
        return this;
    }
<p>
The type of notification that triggers Config to run an evaluation for a rule. You can specify the following
notification types:
</p>
<ul>
<li>
<p>
<code>ConfigurationItemChangeNotification</code> - Triggers an evaluation when Config delivers a configuration
item as a result of a resource change.
</p>
</li>
<li>
<p>
<code>OversizedConfigurationItemChangeNotification</code> - Triggers an evaluation when Config delivers an
oversized configuration item. Config may generate this notification type when a resource changes and the
notification exceeds the maximum size allowed by Amazon SNS.
</p>
</li>
<li>
<p>
<code>ScheduledNotification</code> - Triggers a periodic evaluation at the frequency specified for
<code>MaximumExecutionFrequency</code>.
</p>
</li>
<li>
<p>
<code>ConfigurationSnapshotDeliveryCompleted</code> - Triggers a periodic evaluation when Config delivers a
configuration snapshot.
</p>
</li>
</ul>
<p>
If you want your custom rule to be triggered by configuration changes, specify two SourceDetail objects, one for
<code>ConfigurationItemChangeNotification</code> and one for
<code>OversizedConfigurationItemChangeNotification</code>.
</p>

@param messageType
       The type of notification that triggers Config to run an evaluation for a rule. You can specify the
       following notification types:</p>
       <ul>
       <li>
       <p>
       <code>ConfigurationItemChangeNotification</code> - Triggers an evaluation when Config delivers a
       configuration item as a result of a resource change.
       </p>
       </li>
       <li>
       <p>
       <code>OversizedConfigurationItemChangeNotification</code> - Triggers an evaluation when Config delivers an
       oversized configuration item. Config may generate this notification type when a resource changes and the
       notification exceeds the maximum size allowed by Amazon SNS.
       </p>
       </li>
       <li>
       <p>
       <code>ScheduledNotification</code> - Triggers a periodic evaluation at the frequency specified for
       <code>MaximumExecutionFrequency</code>.
       </p>
       </li>
       <li>
       <p>
       <code>ConfigurationSnapshotDeliveryCompleted</code> - Triggers a periodic evaluation when Config delivers
       a configuration snapshot.
       </p>
       </li>
       </ul>
       <p>
       If you want your custom rule to be triggered by configuration changes, specify two SourceDetail objects,
       one for <code>ConfigurationItemChangeNotification</code> and one for
       <code>OversizedConfigurationItemChangeNotification</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see MessageType
aws-java-sdk-config/src/main/java/com/amazonaws/services/config/model/SourceDetail.java