public UpdateTrailRequest withSnsTopicName(String snsTopicName) {
        setSnsTopicName(snsTopicName);
        return this;
    }
<p>
Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum length is
256 characters.
</p>

@param snsTopicName
       Specifies the name of the Amazon SNS topic defined for notification of log file delivery. The maximum
       length is 256 characters.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/UpdateTrailRequest.java