@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSetAsActive() == null) ? 0 : getSetAsActive().hashCode()); return hashCode; }
/** * <p> * Specifies whether the certificate is active. * </p> * * @param setAsActive * Specifies whether the certificate is active. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateKeysAndCertificateRequest withSetAsActive(Boolean setAsActive) { setSetAsActive(setAsActive); return this; }
CreateKeysAndCertificateRequest certRequest = new CreateKeysAndCertificateRequest(); certRequest.setSetAsActive(true); CreateKeysAndCertificateResult certResult = iotClient.createKeysAndCertificate(certRequest);
CreateKeysAndCertificateRequest certRequest = new CreateKeysAndCertificateRequest(); certRequest.setSetAsActive(true); CreateKeysAndCertificateResult certResult = iotClient.createKeysAndCertificate(certRequest);
CreateKeysAndCertificateRequest certRequest = new CreateKeysAndCertificateRequest(); certRequest.setSetAsActive(true); CreateKeysAndCertificateResult certResult = iotClient.createKeysAndCertificate(certRequest);
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateKeysAndCertificateRequest == false) return false; CreateKeysAndCertificateRequest other = (CreateKeysAndCertificateRequest) obj; if (other.getSetAsActive() == null ^ this.getSetAsActive() == null) return false; if (other.getSetAsActive() != null && other.getSetAsActive().equals(this.getSetAsActive()) == false) return false; return true; }
/** * <p> * Specifies whether the certificate is active. * </p> * * @param setAsActive * Specifies whether the certificate is active. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateKeysAndCertificateRequest withSetAsActive(Boolean setAsActive) { setSetAsActive(setAsActive); return this; }
CreateKeysAndCertificateRequest certRequest = new CreateKeysAndCertificateRequest(); certRequest.setSetAsActive(true); CreateKeysAndCertificateResult certResult = iotClient.createKeysAndCertificate(certRequest);
/** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSetAsActive() != null) sb.append("SetAsActive: ").append(getSetAsActive()); sb.append("}"); return sb.toString(); }
CreateKeysAndCertificateRequest certRequest = new CreateKeysAndCertificateRequest(); certRequest.setSetAsActive(true); CreateKeysAndCertificateResult certResult = iotClient.createKeysAndCertificate(certRequest);
/** * Marshall the given parameter object. */ public void marshall(CreateKeysAndCertificateRequest createKeysAndCertificateRequest, ProtocolMarshaller protocolMarshaller) { if (createKeysAndCertificateRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createKeysAndCertificateRequest.getSetAsActive(), SETASACTIVE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
new CreateKeysAndCertificateRequest(); createKeysAndCertificateRequest.setSetAsActive(true); final CreateKeysAndCertificateResult createKeysAndCertificateResult; createKeysAndCertificateResult =
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSetAsActive() == null) ? 0 : getSetAsActive().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateKeysAndCertificateRequest == false) return false; CreateKeysAndCertificateRequest other = (CreateKeysAndCertificateRequest) obj; if (other.getSetAsActive() == null ^ this.getSetAsActive() == null) return false; if (other.getSetAsActive() != null && other.getSetAsActive().equals(this.getSetAsActive()) == false) return false; return true; } }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSetAsActive() != null) sb.append("setAsActive: " + getSetAsActive()); sb.append("}"); return sb.toString(); }
public Request<CreateKeysAndCertificateRequest> marshall( CreateKeysAndCertificateRequest createKeysAndCertificateRequest) { if (createKeysAndCertificateRequest == null) { throw new AmazonClientException( "Invalid argument passed to marshall(CreateKeysAndCertificateRequest)"); } Request<CreateKeysAndCertificateRequest> request = new DefaultRequest<CreateKeysAndCertificateRequest>( createKeysAndCertificateRequest, "AWSIot"); request.setHttpMethod(HttpMethodName.POST); String uriResourcePath = "/keys-and-certificate"; if (createKeysAndCertificateRequest.getSetAsActive() != null) { request.addParameter("setAsActive", StringUtils.fromBoolean(createKeysAndCertificateRequest.getSetAsActive())); } request.setResourcePath(uriResourcePath); request.addHeader("Content-Length", "0"); request.setContent(new ByteArrayInputStream(new byte[0])); if (!request.getHeaders().containsKey("Content-Type")) { request.addHeader("Content-Type", "application/x-amz-json-1.0"); } return request; } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSetAsActive() == null) ? 0 : getSetAsActive().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSetAsActive() == null) ? 0 : getSetAsActive().hashCode()); return hashCode; }