/** * <p> * A custom method for code signing a file. * </p> * * @param customCodeSigning * A custom method for code signing a file. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigning withCustomCodeSigning(CustomCodeSigning customCodeSigning) { setCustomCodeSigning(customCodeSigning); return this; }
codeSigning.setCustomCodeSigning(CustomCodeSigningJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * A custom method for code signing a file. * </p> * * @param customCodeSigning * A custom method for code signing a file. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigning withCustomCodeSigning(CustomCodeSigning customCodeSigning) { setCustomCodeSigning(customCodeSigning); return this; }
public CodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigning codeSigning = new CodeSigning(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("awsSignerJobId")) { codeSigning.setAwsSignerJobId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("startSigningJobParameter")) { codeSigning.setStartSigningJobParameter(StartSigningJobParameterJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("customCodeSigning")) { codeSigning.setCustomCodeSigning(CustomCodeSigningJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigning; }
public CodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigning codeSigning = new CodeSigning(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("awsSignerJobId")) { codeSigning.setAwsSignerJobId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("startSigningJobParameter")) { codeSigning.setStartSigningJobParameter(StartSigningJobParameterJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("customCodeSigning")) { codeSigning.setCustomCodeSigning(CustomCodeSigningJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigning; }
codeSigning.setCustomCodeSigning(CustomCodeSigningJsonUnmarshaller.getInstance().unmarshall(context));