public CreateDevEndpointRequest withPublicKey(String publicKey) {
        setPublicKey(publicKey);
        return this;
    }
<p>
The public key to be used by this <code>DevEndpoint</code> for authentication. This attribute is provided for
backward compatibility because the recommended attribute to use is public keys.
</p>

@param publicKey
       The public key to be used by this <code>DevEndpoint</code> for authentication. This attribute is provided
       for backward compatibility because the recommended attribute to use is public keys.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-glue/src/main/java/com/amazonaws/services/glue/model/CreateDevEndpointRequest.java