@Generated(value="software.amazon.awssdk:codegen") public final class GetCampaignResponse extends IoTFleetWiseResponse implements ToCopyableBuilder<GetCampaignResponse.Builder,GetCampaignResponse>
| Modifier and Type | Class and Description |
|---|---|
static interface |
GetCampaignResponse.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the campaign.
|
static GetCampaignResponse.Builder |
builder() |
CollectionScheme |
collectionScheme()
Information about the data collection scheme associated with the campaign.
|
Compression |
compression()
Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise.
|
String |
compressionAsString()
Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise.
|
Instant |
creationTime()
The time the campaign was created in seconds since epoch (January 1, 1970 at midnight UTC time).
|
List<String> |
dataExtraDimensions()
A list of vehicle attributes associated with the campaign.
|
String |
description()
The description of the campaign.
|
DiagnosticsMode |
diagnosticsMode()
Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.
|
String |
diagnosticsModeAsString()
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()
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.
|
Instant |
lastModificationTime()
The last time the campaign was modified.
|
String |
name()
The name of the campaign.
|
Long |
postTriggerCollectionDuration()
How long (in seconds) to collect raw data after a triggering event initiates the collection.
|
Integer |
priority()
A number indicating the priority of one campaign over another campaign for a certain vehicle or fleet.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GetCampaignResponse.Builder> |
serializableBuilderClass() |
String |
signalCatalogArn()
The ARN of a signal catalog.
|
List<SignalInformation> |
signalsToCollect()
Information about a list of signals to collect data on.
|
SpoolingMode |
spoolingMode()
Whether to store collected data after a vehicle lost a connection with the cloud.
|
String |
spoolingModeAsString()
Whether to store collected data after a vehicle lost a connection with the cloud.
|
Instant |
startTime()
The time, in milliseconds, to deliver a campaign after it was approved.
|
CampaignStatus |
status()
The state of the campaign.
|
String |
statusAsString()
The state of the campaign.
|
String |
targetArn()
The ARN of the vehicle or the fleet targeted by the campaign.
|
GetCampaignResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadatasdkHttpResponseclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the campaign.
public final String arn()
The Amazon Resource Name (ARN) of the campaign.
public final String description()
The description of the campaign.
public final String signalCatalogArn()
The ARN of a signal catalog.
public final String targetArn()
The ARN of the vehicle or the fleet targeted by the campaign.
public final CampaignStatus status()
The state of the campaign. The status can be one of: CREATING, WAITING_FOR_APPROVAL,
RUNNING, and SUSPENDED.
If the service returns an enum value that is not available in the current SDK version, status will
return CampaignStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
CREATING,
WAITING_FOR_APPROVAL, RUNNING, and SUSPENDED.CampaignStatuspublic final String statusAsString()
The state of the campaign. The status can be one of: CREATING, WAITING_FOR_APPROVAL,
RUNNING, and SUSPENDED.
If the service returns an enum value that is not available in the current SDK version, status will
return CampaignStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
CREATING,
WAITING_FOR_APPROVAL, RUNNING, and SUSPENDED.CampaignStatuspublic final Instant startTime()
The time, in milliseconds, to deliver a campaign after it was approved.
public final Instant expiryTime()
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.
public final Long postTriggerCollectionDuration()
How long (in seconds) to collect raw data after a triggering event initiates the collection.
public final DiagnosticsMode diagnosticsMode()
Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.
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().
DiagnosticsModepublic final String diagnosticsModeAsString()
Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.
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().
DiagnosticsModepublic final SpoolingMode spoolingMode()
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 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().
SpoolingModepublic final String spoolingModeAsString()
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 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().
SpoolingModepublic final Compression compression()
Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If OFF is
specified, the signals aren't compressed. If it's not specified, SNAPPY is used.
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 is specified, the signals aren't compressed. If it's not specified, SNAPPY
is used.Compressionpublic final String compressionAsString()
Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If OFF is
specified, the signals aren't compressed. If it's not specified, SNAPPY is used.
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 is specified, the signals aren't compressed. If it's not specified, SNAPPY
is used.Compressionpublic final Integer priority()
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.
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()
Information about a list of signals to collect data on.
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()
Information about the data collection scheme associated with the campaign.
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()
A list of vehicle attributes associated with 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 hasDataExtraDimensions() method.
public final Instant creationTime()
The time the campaign was created in seconds since epoch (January 1, 1970 at midnight UTC time).
public final Instant lastModificationTime()
The last time the campaign was modified.
public GetCampaignResponse.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<GetCampaignResponse.Builder,GetCampaignResponse>toBuilder in class AwsResponsepublic static GetCampaignResponse.Builder builder()
public static Class<? extends GetCampaignResponse.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsResponsepublic final boolean equals(Object obj)
equals in class AwsResponsepublic 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 SdkResponseCopyright © 2022. All rights reserved.