Class StartImportRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.cloudtrail.model.CloudTrailRequest
-
- software.amazon.awssdk.services.cloudtrail.model.StartImportRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<StartImportRequest.Builder,StartImportRequest>
@Generated("software.amazon.awssdk:codegen") public final class StartImportRequest extends CloudTrailRequest implements ToCopyableBuilder<StartImportRequest.Builder,StartImportRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStartImportRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartImportRequest.Builderbuilder()List<String>destinations()The ARN of the destination event data store.InstantendEventTime()Use withStartEventTimeto bound aStartImportrequest, and limit imported trail events to only those events logged within a specified time period.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasDestinations()For responses, this returns true if the service returned a value for the Destinations property.inthashCode()StringimportId()The ID of the import.ImportSourceimportSource()The source S3 bucket for the import.List<SdkField<?>>sdkFields()static Class<? extends StartImportRequest.Builder>serializableBuilderClass()InstantstartEventTime()Use withEndEventTimeto bound aStartImportrequest, and limit imported trail events to only those events logged within a specified time period.StartImportRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
hasDestinations
public final boolean hasDestinations()
For responses, this returns true if the service returned a value for the Destinations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
destinations
public final List<String> destinations()
The ARN of the destination event data store. Use this parameter for a new import.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasDestinations()method.- Returns:
- The ARN of the destination event data store. Use this parameter for a new import.
-
importSource
public final ImportSource importSource()
The source S3 bucket for the import. Use this parameter for a new import.
- Returns:
- The source S3 bucket for the import. Use this parameter for a new import.
-
startEventTime
public final Instant startEventTime()
Use with
EndEventTimeto bound aStartImportrequest, and limit imported trail events to only those events logged within a specified time period. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specifiedStartEventTimeandEndEventTimebefore attempting to import events.- Returns:
- Use with
EndEventTimeto bound aStartImportrequest, and limit imported trail events to only those events logged within a specified time period. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specifiedStartEventTimeandEndEventTimebefore attempting to import events.
-
endEventTime
public final Instant endEventTime()
Use with
StartEventTimeto bound aStartImportrequest, and limit imported trail events to only those events logged within a specified time period. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specifiedStartEventTimeandEndEventTimebefore attempting to import events.- Returns:
- Use with
StartEventTimeto bound aStartImportrequest, and limit imported trail events to only those events logged within a specified time period. When you specify a time range, CloudTrail checks the prefix and log file names to verify the names contain a date between the specifiedStartEventTimeandEndEventTimebefore attempting to import events.
-
importId
public final String importId()
The ID of the import. Use this parameter when you are retrying an import.
- Returns:
- The ID of the import. Use this parameter when you are retrying an import.
-
toBuilder
public StartImportRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StartImportRequest.Builder,StartImportRequest>- Specified by:
toBuilderin classCloudTrailRequest
-
builder
public static StartImportRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends StartImportRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-