@Generated(value="software.amazon.awssdk:codegen") public final class CreateCampaignRequest extends IoTFleetWiseRequest implements ToCopyableBuilder<CreateCampaignRequest.Builder,CreateCampaignRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateCampaignRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateCampaignRequest.Builder |
builder() |
CollectionScheme |
collectionScheme()
The data collection scheme associated with the campaign.
|
Compression |
compression()
(Optional) Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise.
|
String |
compressionAsString()
(Optional) Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise.
|
List<String> |
dataExtraDimensions()
(Optional) A list of vehicle attributes to associate with a campaign.
|
String |
description()
An optional description of the campaign to help identify its purpose.
|
DiagnosticsMode |
diagnosticsMode()
(Optional) Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.
|
String |
diagnosticsModeAsString()
(Optional) Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Instant |
expiryTime()
(Optional) The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time).
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDataExtraDimensions()
For responses, this returns true if the service returned a value for the DataExtraDimensions property.
|
int |
hashCode() |
boolean |
hasSignalsToCollect()
For responses, this returns true if the service returned a value for the SignalsToCollect property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
name()
The name of the campaign to create.
|
Long |
postTriggerCollectionDuration()
(Optional) How long (in milliseconds) to collect raw data after a triggering event initiates the collection.
|
Integer |
priority()
(Optional) A number indicating the priority of one campaign over another campaign for a certain vehicle or fleet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateCampaignRequest.Builder> |
serializableBuilderClass() |
String |
signalCatalogArn()
(Optional) The Amazon Resource Name (ARN) of the signal catalog to associate with the campaign.
|
List<SignalInformation> |
signalsToCollect()
(Optional) A list of information about signals to collect.
|
SpoolingMode |
spoolingMode()
(Optional) Whether to store collected data after a vehicle lost a connection with the cloud.
|
String |
spoolingModeAsString()
(Optional) Whether to store collected data after a vehicle lost a connection with the cloud.
|
Instant |
startTime()
(Optional) The time, in milliseconds, to deliver a campaign after it was approved.
|
List<Tag> |
tags()
Metadata that can be used to manage the campaign.
|
String |
targetArn()
The ARN of the vehicle or fleet to deploy a campaign to.
|
CreateCampaignRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the campaign to create.
public final String description()
An optional description of the campaign to help identify its purpose.
public final String signalCatalogArn()
(Optional) The Amazon Resource Name (ARN) of the signal catalog to associate with the campaign.
public final String targetArn()
The ARN of the vehicle or fleet to deploy a campaign to.
public final Instant startTime()
(Optional) The time, in milliseconds, to deliver a campaign after it was approved. If it's not specified,
0 is used.
Default: 0
0 is used.
Default: 0
public final Instant expiryTime()
(Optional) The time the campaign expires, in seconds since epoch (January 1, 1970 at midnight UTC time). Vehicle data won't be collected after the campaign expires.
Default: 253402243200 (December 31, 9999, 00:00:00 UTC)
Default: 253402243200 (December 31, 9999, 00:00:00 UTC)
public final Long postTriggerCollectionDuration()
(Optional) How long (in milliseconds) to collect raw data after a triggering event initiates the collection. If
it's not specified, 0 is used.
Default: 0
0 is used.
Default: 0
public final DiagnosticsMode diagnosticsMode()
(Optional) Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise. If you
want to send diagnostic trouble codes, use SEND_ACTIVE_DTCS. If it's not specified, OFF
is used.
Default: OFF
If the service returns an enum value that is not available in the current SDK version, diagnosticsMode
will return DiagnosticsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from diagnosticsModeAsString().
SEND_ACTIVE_DTCS. If it's not specified,
OFF is used.
Default: OFF
DiagnosticsModepublic final String diagnosticsModeAsString()
(Optional) Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise. If you
want to send diagnostic trouble codes, use SEND_ACTIVE_DTCS. If it's not specified, OFF
is used.
Default: OFF
If the service returns an enum value that is not available in the current SDK version, diagnosticsMode
will return DiagnosticsMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from diagnosticsModeAsString().
SEND_ACTIVE_DTCS. If it's not specified,
OFF is used.
Default: OFF
DiagnosticsModepublic final SpoolingMode spoolingMode()
(Optional) Whether to store collected data after a vehicle lost a connection with the cloud. After a connection
is re-established, the data is automatically forwarded to Amazon Web Services IoT FleetWise. If you want to store
collected data when a vehicle loses connection with the cloud, use TO_DISK. If it's not specified,
OFF is used.
Default: OFF
If the service returns an enum value that is not available in the current SDK version, spoolingMode will
return SpoolingMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
spoolingModeAsString().
TO_DISK. If it's not specified, OFF is used.
Default: OFF
SpoolingModepublic final String spoolingModeAsString()
(Optional) Whether to store collected data after a vehicle lost a connection with the cloud. After a connection
is re-established, the data is automatically forwarded to Amazon Web Services IoT FleetWise. If you want to store
collected data when a vehicle loses connection with the cloud, use TO_DISK. If it's not specified,
OFF is used.
Default: OFF
If the service returns an enum value that is not available in the current SDK version, spoolingMode will
return SpoolingMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
spoolingModeAsString().
TO_DISK. If it's not specified, OFF is used.
Default: OFF
SpoolingModepublic final Compression compression()
(Optional) Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If you
don't want to compress the signals, use OFF. If it's not specified, SNAPPY is used.
Default: SNAPPY
If the service returns an enum value that is not available in the current SDK version, compression will
return Compression.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
compressionAsString().
OFF. If it's not specified, SNAPPY
is used.
Default: SNAPPY
Compressionpublic final String compressionAsString()
(Optional) Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If you
don't want to compress the signals, use OFF. If it's not specified, SNAPPY is used.
Default: SNAPPY
If the service returns an enum value that is not available in the current SDK version, compression will
return Compression.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
compressionAsString().
OFF. If it's not specified, SNAPPY
is used.
Default: SNAPPY
Compressionpublic final Integer priority()
(Optional) A number indicating the priority of one campaign over another campaign for a certain vehicle or fleet.
A campaign with the lowest value is deployed to vehicles before any other campaigns. If it's not specified,
0 is used.
Default: 0
0 is used.
Default: 0
public final boolean hasSignalsToCollect()
isEmpty() 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.public final List<SignalInformation> signalsToCollect()
(Optional) A list of information about signals to collect.
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 hasSignalsToCollect() method.
public final CollectionScheme collectionScheme()
The data collection scheme associated with the campaign. You can specify a scheme that collects data based on time or an event.
public final boolean hasDataExtraDimensions()
isEmpty() 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.public final List<String> dataExtraDimensions()
(Optional) A list of vehicle attributes to associate with a campaign.
Enrich the data with specified vehicle attributes. For example, add make and model to
the campaign, and Amazon Web Services IoT FleetWise will associate the data with those attributes as dimensions
in Amazon Timestream. You can then query the data against make and model.
Default: An empty array
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 hasDataExtraDimensions() method.
Enrich the data with specified vehicle attributes. For example, add make and
model to the campaign, and Amazon Web Services IoT FleetWise will associate the data with
those attributes as dimensions in Amazon Timestream. You can then query the data against
make and model.
Default: An empty array
public final boolean hasTags()
isEmpty() 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.public final List<Tag> tags()
Metadata that can be used to manage the campaign.
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 hasTags() method.
public CreateCampaignRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateCampaignRequest.Builder,CreateCampaignRequest>toBuilder in class IoTFleetWiseRequestpublic static CreateCampaignRequest.Builder builder()
public static Class<? extends CreateCampaignRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.