Class ImportBatch
- java.lang.Object
-
- software.amazon.awssdk.services.cloudwatchlogs.model.ImportBatch
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ImportBatch.Builder,ImportBatch>
@Generated("software.amazon.awssdk:codegen") public final class ImportBatch extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ImportBatch.Builder,ImportBatch>
A collection of events being imported to CloudWatch
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceImportBatch.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbatchId()The unique identifier of the import batch.static ImportBatch.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringerrorMessage()The error message if the batch failed to import.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ImportBatch.Builder>serializableBuilderClass()ImportStatusstatus()The current status of the import batch.StringstatusAsString()The current status of the import batch.ImportBatch.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
batchId
public final String batchId()
The unique identifier of the import batch.
- Returns:
- The unique identifier of the import batch.
-
status
public final ImportStatus status()
The current status of the import batch. Valid values are IN_PROGRESS, CANCELLED, COMPLETED and FAILED.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnImportStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the import batch. Valid values are IN_PROGRESS, CANCELLED, COMPLETED and FAILED.
- See Also:
ImportStatus
-
statusAsString
public final String statusAsString()
The current status of the import batch. Valid values are IN_PROGRESS, CANCELLED, COMPLETED and FAILED.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnImportStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the import batch. Valid values are IN_PROGRESS, CANCELLED, COMPLETED and FAILED.
- See Also:
ImportStatus
-
errorMessage
public final String errorMessage()
The error message if the batch failed to import. Only present when status is FAILED.
- Returns:
- The error message if the batch failed to import. Only present when status is FAILED.
-
toBuilder
public ImportBatch.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ImportBatch.Builder,ImportBatch>
-
builder
public static ImportBatch.Builder builder()
-
serializableBuilderClass
public static Class<? extends ImportBatch.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-