/** * Interface used by generated marshallers to marshall a Java POJO. */ @SdkProtectedApi public interface ProtocolMarshaller<MarshalledT> { MarshalledT marshall(SdkPojo pojo); }
@SdkProtectedApi public final class CredentialUtils { private CredentialUtils() { } /** * Determine whether the provided credentials are anonymous credentials, indicating that the customer is not attempting to * authenticate themselves. */ public static boolean isAnonymous(AwsCredentials credentials) { return credentials.secretAccessKey() == null && credentials.accessKeyId() == null; } }
/** * Key for additional metadata in {@link OperationInfo}. Used to register protocol specific metadata about * an operation. * * @param <T> Type of metadata. */ @SdkProtectedApi public final class OperationMetadataAttribute<T> extends AttributeMap.Key<T> { public OperationMetadataAttribute(Class<T> valueType) { super(valueType); } }
/** * Marker interface for marshallers. * * @param <T> Type being marshalled. */ @SdkProtectedApi public interface Marshaller<T> { }
/** * Interface used by generated marshallers to marshall a Java POJO. */ @SdkProtectedApi public interface ProtocolMarshaller<MarshalledT> { MarshalledT marshall(SdkPojo pojo); }
/** * An Abortable task. */ @SdkProtectedApi public interface Abortable { /** * Aborts the execution of the task. Multiple calls to abort or calling abort an already aborted task * should return without error. */ void abort(); }
@SdkProtectedApi public interface SdkFunction<InputT, OutputT> { /** * Abstract method that makes a call to the operation * specified by the waiter by taking the corresponding * input and returns the corresponding output * * @param input Corresponding request for the operation * @return Corresponding result of the operation */ OutputT apply(InputT input); }
/** * Constants for commonly used HTTP headers. */ @SdkProtectedApi public final class Header { public static final String CONTENT_LENGTH = "Content-Length"; public static final String CONTENT_TYPE = "Content-Type"; public static final String CONTENT_MD5 = "Content-MD5"; private Header() { } }
/** * An Abortable task. */ @SdkProtectedApi public interface Abortable { /** * Aborts the execution of the task. Multiple calls to abort or calling abort an already aborted task * should return without error. */ void abort(); }
/** * Trait that indicates a String member is a JSON document. This can influence how it is marshalled/unmarshalled. For example, * a string bound to the header with this trait applied will be Base64 encoded. */ @SdkProtectedApi public final class JsonValueTrait implements Trait { private JsonValueTrait() { } public static JsonValueTrait create() { return new JsonValueTrait(); } }
@SdkProtectedApi public final class EventStreamAws4Signer extends BaseEventStreamAsyncAws4Signer { private EventStreamAws4Signer() {} public static EventStreamAws4Signer create() { return new EventStreamAws4Signer(); } }
/** * Constants for commonly used Aws headers. */ @SdkProtectedApi public final class AwsHeader { public static final String AWS_REQUEST_ID = "AWS_REQUEST_ID"; private AwsHeader() { } }
/** * Error code parser to parse error code from the response returned by AWS services. */ @SdkProtectedApi public interface ErrorCodeParser { String parseErrorCode(SdkHttpFullResponse response, JsonContent jsonContent); }
/** * Constants for commonly used HTTP headers. */ @SdkProtectedApi public final class Header { public static final String CONTENT_LENGTH = "Content-Length"; public static final String CONTENT_TYPE = "Content-Type"; public static final String CONTENT_MD5 = "Content-MD5"; private Header() { } }
/** * Marker interface for marshallers. * * @param <T> Type being marshalled. */ @SdkProtectedApi public interface Marshaller<T> { }
@SdkProtectedApi public final class CredentialUtils { private CredentialUtils() { } /** * Determine whether the provided credentials are anonymous credentials, indicating that the customer is not attempting to * authenticate themselves. */ public static boolean isAnonymous(AwsCredentials credentials) { return credentials.secretAccessKey() == null && credentials.accessKeyId() == null; } }
@SdkProtectedApi public final class EventStreamAws4Signer extends BaseEventStreamAsyncAws4Signer { private EventStreamAws4Signer() {} public static EventStreamAws4Signer create() { return new EventStreamAws4Signer(); } }
/** * Key for additional metadata in {@link OperationInfo}. Used to register protocol specific metadata about * an operation. * * @param <T> Type of metadata. */ @SdkProtectedApi public final class OperationMetadataAttribute<T> extends AttributeMap.Key<T> { public OperationMetadataAttribute(Class<T> valueType) { super(valueType); } }
/** * Error code parser to parse error code from the response returned by AWS services. */ @SdkProtectedApi public interface ErrorCodeParser { String parseErrorCode(SdkHttpFullResponse response, JsonContent jsonContent); }
/** * Interface to provide the list of {@link SdkField}s in a POJO. {@link SdkField} contains * metadata about how a field should be marshalled/unmarshalled and allows for generic * accessing/setting/creating of that field on an object. */ @SdkProtectedApi public interface SdkPojo { /** * @return List of {@link SdkField} in this POJO. May be empty list but should never be null. */ List<SdkField<?>> sdkFields(); }