/** * <p> * The signature algorithm used to code sign the file. * </p> * * @param signatureAlgorithm * The signature algorithm used to code sign the file. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomCodeSigning withSignatureAlgorithm(String signatureAlgorithm) { setSignatureAlgorithm(signatureAlgorithm); return this; }
customCodeSigning.setSignatureAlgorithm(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The signature algorithm used to code sign the file. * </p> * * @param signatureAlgorithm * The signature algorithm used to code sign the file. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomCodeSigning withSignatureAlgorithm(String signatureAlgorithm) { setSignatureAlgorithm(signatureAlgorithm); return this; }
public CustomCodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CustomCodeSigning customCodeSigning = new CustomCodeSigning(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("signature")) { customCodeSigning.setSignature(CodeSigningSignatureJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificateChain")) { customCodeSigning.setCertificateChain(CodeSigningCertificateChainJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("hashAlgorithm")) { customCodeSigning.setHashAlgorithm(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("signatureAlgorithm")) { customCodeSigning.setSignatureAlgorithm(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return customCodeSigning; }
public CustomCodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CustomCodeSigning customCodeSigning = new CustomCodeSigning(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("signature")) { customCodeSigning.setSignature(CodeSigningSignatureJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("certificateChain")) { customCodeSigning.setCertificateChain(CodeSigningCertificateChainJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("hashAlgorithm")) { customCodeSigning.setHashAlgorithm(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("signatureAlgorithm")) { customCodeSigning.setSignatureAlgorithm(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return customCodeSigning; }
customCodeSigning.setSignatureAlgorithm(context.getUnmarshaller(String.class).unmarshall(context));