public void setStatusCodes(StatusCodes statusCodes) {
        this.statusCodes = statusCodes;
    }
<p>
The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second
origin.
</p>

@param statusCodes
       The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the
       second origin.
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/OriginGroupFailoverCriteria.java