public InAppMessageCampaign withSchedule(InAppCampaignSchedule schedule) {
        setSchedule(schedule);
        return this;
    }
<p>
Schedule of the campaign.
</p>

@param schedule
       Schedule of the campaign.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/InAppMessageCampaign.java