public void setAssignPublicIp(String assignPublicIp) {
        this.assignPublicIp = assignPublicIp;
    }
<p>
Specifies whether the task's elastic network interface receives a public IP address. You can specify
<code>ENABLED</code> only when <code>LaunchType</code> in <code>EcsParameters</code> is set to
<code>FARGATE</code>.
</p>

@param assignPublicIp
       Specifies whether the task's elastic network interface receives a public IP address. You can specify
       <code>ENABLED</code> only when <code>LaunchType</code> in <code>EcsParameters</code> is set to
       <code>FARGATE</code>.
@see AssignPublicIp
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/AwsVpcConfiguration.java