public CreateAcceleratorRequest withName(String name) {
        setName(name);
        return this;
    }
<p>
The name of the accelerator. The name can have a maximum of 64 characters, must contain only alphanumeric
characters, periods (.), or hyphens (-), and must not begin or end with a hyphen or period.
</p>

@param name
       The name of the accelerator. The name can have a maximum of 64 characters, must contain only alphanumeric
       characters, periods (.), or hyphens (-), and must not begin or end with a hyphen or period.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/CreateAcceleratorRequest.java