/** * Constructs a new UploadServerCertificateRequest object. Callers should use the setter or fluent * setter (with...) methods to initialize any additional object members. * * @param serverCertificateName The name for the server certificate. Do not include the path in * this value. * @param certificateBody The contents of the public key certificate in PEM-encoded format. * @param privateKey The contents of the private key in PEM-encoded format. */ public UploadServerCertificateRequest( String serverCertificateName, String certificateBody, String privateKey) { setServerCertificateName(serverCertificateName); setCertificateBody(certificateBody); setPrivateKey(privateKey); }
/** * The name for the server certificate. Do not include the path in this value. The name of the * certificate cannot contain any spaces. * * @param serverCertificateName The name for the server certificate. Do not include the path in * this value. The name of the certificate cannot contain any spaces. * @return Returns a reference to this object so that method calls can be chained together. */ public UploadServerCertificateRequest withServerCertificateName(String serverCertificateName) { setServerCertificateName(serverCertificateName); return this; }