@Override public Certificate build() { return new Certificate(this); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("Certificate").add("CertificateIdentifier", certificateIdentifier()) .add("CertificateCreationDate", certificateCreationDate()).add("CertificatePem", certificatePem()) .add("CertificateWallet", certificateWallet()).add("CertificateArn", certificateArn()) .add("CertificateOwner", certificateOwner()).add("ValidFromDate", validFromDate()) .add("ValidToDate", validToDate()).add("SigningAlgorithm", signingAlgorithm()).add("KeyLength", keyLength()) .build(); }
@Override @SafeVarargs public final Builder certificates(Consumer<Certificate.Builder>... certificates) { certificates(Stream.of(certificates).map(c -> Certificate.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
@Override @SafeVarargs public final Builder certificates(Consumer<Certificate.Builder>... certificates) { certificates(Stream.of(certificates).map(c -> Certificate.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("Certificate").add("CertificateIdentifier", certificateIdentifier()) .add("CertificateCreationDate", certificateCreationDate()).add("CertificatePem", certificatePem()) .add("CertificateWallet", certificateWallet()).add("CertificateArn", certificateArn()) .add("CertificateOwner", certificateOwner()).add("ValidFromDate", validFromDate()) .add("ValidToDate", validToDate()).add("SigningAlgorithm", signingAlgorithm()).add("KeyLength", keyLength()) .build(); }
@Override @SafeVarargs public final Builder certificates(Consumer<Certificate.Builder>... certificates) { certificates(Stream.of(certificates).map(c -> Certificate.builder().applyMutation(c).build()) .collect(Collectors.toList())); return this; }
@Override public Certificate build() { return new Certificate(this); } }
@Override public String toString() { return ToString.builder("Certificate").add("CertificateIdentifier", certificateIdentifier()) .add("CertificateCreationDate", certificateCreationDate()).add("CertificatePem", certificatePem()) .add("CertificateWallet", certificateWallet()).add("CertificateArn", certificateArn()) .add("CertificateOwner", certificateOwner()).add("ValidFromDate", validFromDate()) .add("ValidToDate", validToDate()).add("SigningAlgorithm", signingAlgorithm()).add("KeyLength", keyLength()) .build(); }
/** * <p> * The certificate to be uploaded. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
@Override public Certificate build() { return new Certificate(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Certificate)) { return false; } Certificate other = (Certificate) obj; return Objects.equals(certificateIdentifier(), other.certificateIdentifier()) && Objects.equals(certificateCreationDate(), other.certificateCreationDate()) && Objects.equals(certificatePem(), other.certificatePem()) && Objects.equals(certificateWallet(), other.certificateWallet()) && Objects.equals(certificateArn(), other.certificateArn()) && Objects.equals(certificateOwner(), other.certificateOwner()) && Objects.equals(validFromDate(), other.validFromDate()) && Objects.equals(validToDate(), other.validToDate()) && Objects.equals(signingAlgorithm(), other.signingAlgorithm()) && Objects.equals(keyLength(), other.keyLength()); }
/** * <p> * The certificate to be uploaded. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(certificateIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(certificateCreationDate()); hashCode = 31 * hashCode + Objects.hashCode(certificatePem()); hashCode = 31 * hashCode + Objects.hashCode(certificateWallet()); hashCode = 31 * hashCode + Objects.hashCode(certificateArn()); hashCode = 31 * hashCode + Objects.hashCode(certificateOwner()); hashCode = 31 * hashCode + Objects.hashCode(validFromDate()); hashCode = 31 * hashCode + Objects.hashCode(validToDate()); hashCode = 31 * hashCode + Objects.hashCode(signingAlgorithm()); hashCode = 31 * hashCode + Objects.hashCode(keyLength()); return hashCode; }
/** * <p> * The Secure Sockets Layer (SSL) certificate. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(certificateIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(certificateCreationDate()); hashCode = 31 * hashCode + Objects.hashCode(certificatePem()); hashCode = 31 * hashCode + Objects.hashCode(certificateWallet()); hashCode = 31 * hashCode + Objects.hashCode(certificateArn()); hashCode = 31 * hashCode + Objects.hashCode(certificateOwner()); hashCode = 31 * hashCode + Objects.hashCode(validFromDate()); hashCode = 31 * hashCode + Objects.hashCode(validToDate()); hashCode = 31 * hashCode + Objects.hashCode(signingAlgorithm()); hashCode = 31 * hashCode + Objects.hashCode(keyLength()); return hashCode; }
/** * <p> * The certificate to be uploaded. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof Certificate)) { return false; } Certificate other = (Certificate) obj; return Objects.equals(certificateIdentifier(), other.certificateIdentifier()) && Objects.equals(certificateCreationDate(), other.certificateCreationDate()) && Objects.equals(certificatePem(), other.certificatePem()) && Objects.equals(certificateWallet(), other.certificateWallet()) && Objects.equals(certificateArn(), other.certificateArn()) && Objects.equals(certificateOwner(), other.certificateOwner()) && Objects.equals(validFromDate(), other.validFromDate()) && Objects.equals(validToDate(), other.validToDate()) && Objects.equals(signingAlgorithm(), other.signingAlgorithm()) && Objects.equals(keyLength(), other.keyLength()); }
/** * <p> * The Secure Sockets Layer (SSL) certificate. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(certificateIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(certificateCreationDate()); hashCode = 31 * hashCode + Objects.hashCode(certificatePem()); hashCode = 31 * hashCode + Objects.hashCode(certificateWallet()); hashCode = 31 * hashCode + Objects.hashCode(certificateArn()); hashCode = 31 * hashCode + Objects.hashCode(certificateOwner()); hashCode = 31 * hashCode + Objects.hashCode(validFromDate()); hashCode = 31 * hashCode + Objects.hashCode(validToDate()); hashCode = 31 * hashCode + Objects.hashCode(signingAlgorithm()); hashCode = 31 * hashCode + Objects.hashCode(keyLength()); return hashCode; }
/** * <p> * The Secure Sockets Layer (SSL) certificate. * </p> * This is a convenience that creates an instance of the {@link Certificate.Builder} avoiding the need to create * one manually via {@link Certificate#builder()}. * * When the {@link Consumer} completes, {@link Certificate.Builder#build()} is called immediately and its result * is passed to {@link #certificate(Certificate)}. * * @param certificate * a consumer that will call methods on {@link Certificate.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #certificate(Certificate) */ default Builder certificate(Consumer<Certificate.Builder> certificate) { return certificate(Certificate.builder().applyMutation(certificate).build()); } }