public HttpRetryPolicy withTcpRetryEvents(TcpRetryPolicyEvent... tcpRetryEvents) {
        java.util.ArrayList<String> tcpRetryEventsCopy = new java.util.ArrayList<String>(tcpRetryEvents.length);
        for (TcpRetryPolicyEvent value : tcpRetryEvents) {
            tcpRetryEventsCopy.add(value.toString());
        }
        if (getTcpRetryEvents() == null) {
            setTcpRetryEvents(tcpRetryEventsCopy);
        } else {
            getTcpRetryEvents().addAll(tcpRetryEventsCopy);
        }
        return this;
    }
<p>
Specify a valid value. The event occurs before any processing of a request has started and is encountered when
the upstream is temporarily or permanently unavailable.
</p>

@param tcpRetryEvents
       Specify a valid value. The event occurs before any processing of a request has started and is encountered
       when the upstream is temporarily or permanently unavailable.
@return Returns a reference to this object so that method calls can be chained together.
@see TcpRetryPolicyEvent
aws-java-sdk-appmesh/src/main/java/com/amazonaws/services/appmesh/model/HttpRetryPolicy.java