/** * <p> * A base64 encoded binary representation of the code signing signature. * </p> * <p> * The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. * </p> * <p> * Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will * be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or * ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future * major version of the SDK. * </p> * * @param inlineDocument * A base64 encoded binary representation of the code signing signature. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigningSignature withInlineDocument(java.nio.ByteBuffer inlineDocument) { setInlineDocument(inlineDocument); return this; }
public CodeSigningSignature unmarshall(JsonUnmarshallerContext context) throws Exception { CodeSigningSignature codeSigningSignature = new CodeSigningSignature(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("inlineDocument", targetDepth)) { context.nextToken(); codeSigningSignature.setInlineDocument(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return codeSigningSignature; }
public CodeSigningSignature unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigningSignature codeSigningSignature = new CodeSigningSignature(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("inlineDocument")) { codeSigningSignature.setInlineDocument(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigningSignature; }
/** * <p> * A base64 encoded binary representation of the code signing signature. * </p> * <p> * The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. * Users of the SDK should not perform Base64 encoding on this field. * </p> * <p> * Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will * be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or * ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future * major version of the SDK. * </p> * * @param inlineDocument * A base64 encoded binary representation of the code signing signature. * @return Returns a reference to this object so that method calls can be chained together. */ public CodeSigningSignature withInlineDocument(java.nio.ByteBuffer inlineDocument) { setInlineDocument(inlineDocument); return this; }
public CodeSigningSignature unmarshall(JsonUnmarshallerContext context) throws Exception { CodeSigningSignature codeSigningSignature = new CodeSigningSignature(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("inlineDocument", targetDepth)) { context.nextToken(); codeSigningSignature.setInlineDocument(context.getUnmarshaller(java.nio.ByteBuffer.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return codeSigningSignature; }
public CodeSigningSignature unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CodeSigningSignature codeSigningSignature = new CodeSigningSignature(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("inlineDocument")) { codeSigningSignature.setInlineDocument(ByteBufferJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return codeSigningSignature; }