1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetCampaignOutput {
/// <p>The name of the campaign.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) of the campaign.</p>
pub arn: ::std::option::Option<::std::string::String>,
/// <p>The description of the campaign.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The ARN of a signal catalog.</p>
pub signal_catalog_arn: ::std::option::Option<::std::string::String>,
/// <p>The ARN of the vehicle or the fleet targeted by the campaign.</p>
pub target_arn: ::std::option::Option<::std::string::String>,
/// <p>The state of the campaign. The status can be one of: <code>CREATING</code>, <code>WAITING_FOR_APPROVAL</code>, <code>RUNNING</code>, and <code>SUSPENDED</code>.</p>
pub status: ::std::option::Option<crate::types::CampaignStatus>,
/// <p>The time, in milliseconds, to deliver a campaign after it was approved.</p>
pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>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.</p>
pub expiry_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>How long (in seconds) to collect raw data after a triggering event initiates the collection.</p>
pub post_trigger_collection_duration: ::std::option::Option<i64>,
/// <p>Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.</p>
pub diagnostics_mode: ::std::option::Option<crate::types::DiagnosticsMode>,
/// <p>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.</p>
pub spooling_mode: ::std::option::Option<crate::types::SpoolingMode>,
/// <p>Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If <code>OFF</code> is specified, the signals aren't compressed. If it's not specified, <code>SNAPPY</code> is used.</p>
pub compression: ::std::option::Option<crate::types::Compression>,
/// <p>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.</p>
pub priority: ::std::option::Option<i32>,
/// <p>Information about a list of signals to collect data on.</p>
pub signals_to_collect: ::std::option::Option<::std::vec::Vec<crate::types::SignalInformation>>,
/// <p>Information about the data collection scheme associated with the campaign.</p>
pub collection_scheme: ::std::option::Option<crate::types::CollectionScheme>,
/// <p>A list of vehicle attributes associated with the campaign.</p>
pub data_extra_dimensions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The time the campaign was created in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The last time the campaign was modified.</p>
pub last_modification_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The destination where the campaign sends data. You can choose to send data to be stored in Amazon S3 or Amazon Timestream.</p>
/// <p>Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics.</p>
/// <p>You can use Amazon Timestream to access and analyze time series data, and Timestream to query vehicle data so that you can identify trends and patterns.</p>
pub data_destination_configs: ::std::option::Option<::std::vec::Vec<crate::types::DataDestinationConfig>>,
_request_id: Option<String>,
}
impl GetCampaignOutput {
/// <p>The name of the campaign.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The Amazon Resource Name (ARN) of the campaign.</p>
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The description of the campaign.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The ARN of a signal catalog.</p>
pub fn signal_catalog_arn(&self) -> ::std::option::Option<&str> {
self.signal_catalog_arn.as_deref()
}
/// <p>The ARN of the vehicle or the fleet targeted by the campaign.</p>
pub fn target_arn(&self) -> ::std::option::Option<&str> {
self.target_arn.as_deref()
}
/// <p>The state of the campaign. The status can be one of: <code>CREATING</code>, <code>WAITING_FOR_APPROVAL</code>, <code>RUNNING</code>, and <code>SUSPENDED</code>.</p>
pub fn status(&self) -> ::std::option::Option<&crate::types::CampaignStatus> {
self.status.as_ref()
}
/// <p>The time, in milliseconds, to deliver a campaign after it was approved.</p>
pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
/// <p>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.</p>
pub fn expiry_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.expiry_time.as_ref()
}
/// <p>How long (in seconds) to collect raw data after a triggering event initiates the collection.</p>
pub fn post_trigger_collection_duration(&self) -> ::std::option::Option<i64> {
self.post_trigger_collection_duration
}
/// <p>Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.</p>
pub fn diagnostics_mode(&self) -> ::std::option::Option<&crate::types::DiagnosticsMode> {
self.diagnostics_mode.as_ref()
}
/// <p>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.</p>
pub fn spooling_mode(&self) -> ::std::option::Option<&crate::types::SpoolingMode> {
self.spooling_mode.as_ref()
}
/// <p>Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If <code>OFF</code> is specified, the signals aren't compressed. If it's not specified, <code>SNAPPY</code> is used.</p>
pub fn compression(&self) -> ::std::option::Option<&crate::types::Compression> {
self.compression.as_ref()
}
/// <p>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.</p>
pub fn priority(&self) -> ::std::option::Option<i32> {
self.priority
}
/// <p>Information about a list of signals to collect data on.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.signals_to_collect.is_none()`.
pub fn signals_to_collect(&self) -> &[crate::types::SignalInformation] {
self.signals_to_collect.as_deref().unwrap_or_default()
}
/// <p>Information about the data collection scheme associated with the campaign.</p>
pub fn collection_scheme(&self) -> ::std::option::Option<&crate::types::CollectionScheme> {
self.collection_scheme.as_ref()
}
/// <p>A list of vehicle attributes associated with the campaign.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.data_extra_dimensions.is_none()`.
pub fn data_extra_dimensions(&self) -> &[::std::string::String] {
self.data_extra_dimensions.as_deref().unwrap_or_default()
}
/// <p>The time the campaign was created in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
/// <p>The last time the campaign was modified.</p>
pub fn last_modification_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modification_time.as_ref()
}
/// <p>The destination where the campaign sends data. You can choose to send data to be stored in Amazon S3 or Amazon Timestream.</p>
/// <p>Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics.</p>
/// <p>You can use Amazon Timestream to access and analyze time series data, and Timestream to query vehicle data so that you can identify trends and patterns.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.data_destination_configs.is_none()`.
pub fn data_destination_configs(&self) -> &[crate::types::DataDestinationConfig] {
self.data_destination_configs.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for GetCampaignOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetCampaignOutput {
/// Creates a new builder-style object to manufacture [`GetCampaignOutput`](crate::operation::get_campaign::GetCampaignOutput).
pub fn builder() -> crate::operation::get_campaign::builders::GetCampaignOutputBuilder {
crate::operation::get_campaign::builders::GetCampaignOutputBuilder::default()
}
}
/// A builder for [`GetCampaignOutput`](crate::operation::get_campaign::GetCampaignOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetCampaignOutputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) signal_catalog_arn: ::std::option::Option<::std::string::String>,
pub(crate) target_arn: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::CampaignStatus>,
pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) expiry_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) post_trigger_collection_duration: ::std::option::Option<i64>,
pub(crate) diagnostics_mode: ::std::option::Option<crate::types::DiagnosticsMode>,
pub(crate) spooling_mode: ::std::option::Option<crate::types::SpoolingMode>,
pub(crate) compression: ::std::option::Option<crate::types::Compression>,
pub(crate) priority: ::std::option::Option<i32>,
pub(crate) signals_to_collect: ::std::option::Option<::std::vec::Vec<crate::types::SignalInformation>>,
pub(crate) collection_scheme: ::std::option::Option<crate::types::CollectionScheme>,
pub(crate) data_extra_dimensions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modification_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) data_destination_configs: ::std::option::Option<::std::vec::Vec<crate::types::DataDestinationConfig>>,
_request_id: Option<String>,
}
impl GetCampaignOutputBuilder {
/// <p>The name of the campaign.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the campaign.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the campaign.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The Amazon Resource Name (ARN) of the campaign.</p>
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) of the campaign.</p>
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) of the campaign.</p>
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
/// <p>The description of the campaign.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The description of the campaign.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description of the campaign.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>The ARN of a signal catalog.</p>
pub fn signal_catalog_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.signal_catalog_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of a signal catalog.</p>
pub fn set_signal_catalog_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.signal_catalog_arn = input;
self
}
/// <p>The ARN of a signal catalog.</p>
pub fn get_signal_catalog_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.signal_catalog_arn
}
/// <p>The ARN of the vehicle or the fleet targeted by the campaign.</p>
pub fn target_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.target_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the vehicle or the fleet targeted by the campaign.</p>
pub fn set_target_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.target_arn = input;
self
}
/// <p>The ARN of the vehicle or the fleet targeted by the campaign.</p>
pub fn get_target_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.target_arn
}
/// <p>The state of the campaign. The status can be one of: <code>CREATING</code>, <code>WAITING_FOR_APPROVAL</code>, <code>RUNNING</code>, and <code>SUSPENDED</code>.</p>
pub fn status(mut self, input: crate::types::CampaignStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The state of the campaign. The status can be one of: <code>CREATING</code>, <code>WAITING_FOR_APPROVAL</code>, <code>RUNNING</code>, and <code>SUSPENDED</code>.</p>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::CampaignStatus>) -> Self {
self.status = input;
self
}
/// <p>The state of the campaign. The status can be one of: <code>CREATING</code>, <code>WAITING_FOR_APPROVAL</code>, <code>RUNNING</code>, and <code>SUSPENDED</code>.</p>
pub fn get_status(&self) -> &::std::option::Option<crate::types::CampaignStatus> {
&self.status
}
/// <p>The time, in milliseconds, to deliver a campaign after it was approved.</p>
pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.start_time = ::std::option::Option::Some(input);
self
}
/// <p>The time, in milliseconds, to deliver a campaign after it was approved.</p>
pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.start_time = input;
self
}
/// <p>The time, in milliseconds, to deliver a campaign after it was approved.</p>
pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.start_time
}
/// <p>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.</p>
pub fn expiry_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.expiry_time = ::std::option::Option::Some(input);
self
}
/// <p>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.</p>
pub fn set_expiry_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.expiry_time = input;
self
}
/// <p>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.</p>
pub fn get_expiry_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.expiry_time
}
/// <p>How long (in seconds) to collect raw data after a triggering event initiates the collection.</p>
pub fn post_trigger_collection_duration(mut self, input: i64) -> Self {
self.post_trigger_collection_duration = ::std::option::Option::Some(input);
self
}
/// <p>How long (in seconds) to collect raw data after a triggering event initiates the collection.</p>
pub fn set_post_trigger_collection_duration(mut self, input: ::std::option::Option<i64>) -> Self {
self.post_trigger_collection_duration = input;
self
}
/// <p>How long (in seconds) to collect raw data after a triggering event initiates the collection.</p>
pub fn get_post_trigger_collection_duration(&self) -> &::std::option::Option<i64> {
&self.post_trigger_collection_duration
}
/// <p>Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.</p>
pub fn diagnostics_mode(mut self, input: crate::types::DiagnosticsMode) -> Self {
self.diagnostics_mode = ::std::option::Option::Some(input);
self
}
/// <p>Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.</p>
pub fn set_diagnostics_mode(mut self, input: ::std::option::Option<crate::types::DiagnosticsMode>) -> Self {
self.diagnostics_mode = input;
self
}
/// <p>Option for a vehicle to send diagnostic trouble codes to Amazon Web Services IoT FleetWise.</p>
pub fn get_diagnostics_mode(&self) -> &::std::option::Option<crate::types::DiagnosticsMode> {
&self.diagnostics_mode
}
/// <p>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.</p>
pub fn spooling_mode(mut self, input: crate::types::SpoolingMode) -> Self {
self.spooling_mode = ::std::option::Option::Some(input);
self
}
/// <p>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.</p>
pub fn set_spooling_mode(mut self, input: ::std::option::Option<crate::types::SpoolingMode>) -> Self {
self.spooling_mode = input;
self
}
/// <p>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.</p>
pub fn get_spooling_mode(&self) -> &::std::option::Option<crate::types::SpoolingMode> {
&self.spooling_mode
}
/// <p>Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If <code>OFF</code> is specified, the signals aren't compressed. If it's not specified, <code>SNAPPY</code> is used.</p>
pub fn compression(mut self, input: crate::types::Compression) -> Self {
self.compression = ::std::option::Option::Some(input);
self
}
/// <p>Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If <code>OFF</code> is specified, the signals aren't compressed. If it's not specified, <code>SNAPPY</code> is used.</p>
pub fn set_compression(mut self, input: ::std::option::Option<crate::types::Compression>) -> Self {
self.compression = input;
self
}
/// <p>Whether to compress signals before transmitting data to Amazon Web Services IoT FleetWise. If <code>OFF</code> is specified, the signals aren't compressed. If it's not specified, <code>SNAPPY</code> is used.</p>
pub fn get_compression(&self) -> &::std::option::Option<crate::types::Compression> {
&self.compression
}
/// <p>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.</p>
pub fn priority(mut self, input: i32) -> Self {
self.priority = ::std::option::Option::Some(input);
self
}
/// <p>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.</p>
pub fn set_priority(mut self, input: ::std::option::Option<i32>) -> Self {
self.priority = input;
self
}
/// <p>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.</p>
pub fn get_priority(&self) -> &::std::option::Option<i32> {
&self.priority
}
/// Appends an item to `signals_to_collect`.
///
/// To override the contents of this collection use [`set_signals_to_collect`](Self::set_signals_to_collect).
///
/// <p>Information about a list of signals to collect data on.</p>
pub fn signals_to_collect(mut self, input: crate::types::SignalInformation) -> Self {
let mut v = self.signals_to_collect.unwrap_or_default();
v.push(input);
self.signals_to_collect = ::std::option::Option::Some(v);
self
}
/// <p>Information about a list of signals to collect data on.</p>
pub fn set_signals_to_collect(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SignalInformation>>) -> Self {
self.signals_to_collect = input;
self
}
/// <p>Information about a list of signals to collect data on.</p>
pub fn get_signals_to_collect(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SignalInformation>> {
&self.signals_to_collect
}
/// <p>Information about the data collection scheme associated with the campaign.</p>
pub fn collection_scheme(mut self, input: crate::types::CollectionScheme) -> Self {
self.collection_scheme = ::std::option::Option::Some(input);
self
}
/// <p>Information about the data collection scheme associated with the campaign.</p>
pub fn set_collection_scheme(mut self, input: ::std::option::Option<crate::types::CollectionScheme>) -> Self {
self.collection_scheme = input;
self
}
/// <p>Information about the data collection scheme associated with the campaign.</p>
pub fn get_collection_scheme(&self) -> &::std::option::Option<crate::types::CollectionScheme> {
&self.collection_scheme
}
/// Appends an item to `data_extra_dimensions`.
///
/// To override the contents of this collection use [`set_data_extra_dimensions`](Self::set_data_extra_dimensions).
///
/// <p>A list of vehicle attributes associated with the campaign.</p>
pub fn data_extra_dimensions(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.data_extra_dimensions.unwrap_or_default();
v.push(input.into());
self.data_extra_dimensions = ::std::option::Option::Some(v);
self
}
/// <p>A list of vehicle attributes associated with the campaign.</p>
pub fn set_data_extra_dimensions(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.data_extra_dimensions = input;
self
}
/// <p>A list of vehicle attributes associated with the campaign.</p>
pub fn get_data_extra_dimensions(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.data_extra_dimensions
}
/// <p>The time the campaign was created in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
/// <p>The time the campaign was created in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time = input;
self
}
/// <p>The time the campaign was created in seconds since epoch (January 1, 1970 at midnight UTC time).</p>
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
/// <p>The last time the campaign was modified.</p>
pub fn last_modification_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modification_time = ::std::option::Option::Some(input);
self
}
/// <p>The last time the campaign was modified.</p>
pub fn set_last_modification_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modification_time = input;
self
}
/// <p>The last time the campaign was modified.</p>
pub fn get_last_modification_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modification_time
}
/// Appends an item to `data_destination_configs`.
///
/// To override the contents of this collection use [`set_data_destination_configs`](Self::set_data_destination_configs).
///
/// <p>The destination where the campaign sends data. You can choose to send data to be stored in Amazon S3 or Amazon Timestream.</p>
/// <p>Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics.</p>
/// <p>You can use Amazon Timestream to access and analyze time series data, and Timestream to query vehicle data so that you can identify trends and patterns.</p>
pub fn data_destination_configs(mut self, input: crate::types::DataDestinationConfig) -> Self {
let mut v = self.data_destination_configs.unwrap_or_default();
v.push(input);
self.data_destination_configs = ::std::option::Option::Some(v);
self
}
/// <p>The destination where the campaign sends data. You can choose to send data to be stored in Amazon S3 or Amazon Timestream.</p>
/// <p>Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics.</p>
/// <p>You can use Amazon Timestream to access and analyze time series data, and Timestream to query vehicle data so that you can identify trends and patterns.</p>
pub fn set_data_destination_configs(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::DataDestinationConfig>>) -> Self {
self.data_destination_configs = input;
self
}
/// <p>The destination where the campaign sends data. You can choose to send data to be stored in Amazon S3 or Amazon Timestream.</p>
/// <p>Amazon S3 optimizes the cost of data storage and provides additional mechanisms to use vehicle data, such as data lakes, centralized data storage, data processing pipelines, and analytics.</p>
/// <p>You can use Amazon Timestream to access and analyze time series data, and Timestream to query vehicle data so that you can identify trends and patterns.</p>
pub fn get_data_destination_configs(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::DataDestinationConfig>> {
&self.data_destination_configs
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`GetCampaignOutput`](crate::operation::get_campaign::GetCampaignOutput).
pub fn build(self) -> crate::operation::get_campaign::GetCampaignOutput {
crate::operation::get_campaign::GetCampaignOutput {
name: self.name,
arn: self.arn,
description: self.description,
signal_catalog_arn: self.signal_catalog_arn,
target_arn: self.target_arn,
status: self.status,
start_time: self.start_time,
expiry_time: self.expiry_time,
post_trigger_collection_duration: self.post_trigger_collection_duration,
diagnostics_mode: self.diagnostics_mode,
spooling_mode: self.spooling_mode,
compression: self.compression,
priority: self.priority,
signals_to_collect: self.signals_to_collect,
collection_scheme: self.collection_scheme,
data_extra_dimensions: self.data_extra_dimensions,
creation_time: self.creation_time,
last_modification_time: self.last_modification_time,
data_destination_configs: self.data_destination_configs,
_request_id: self._request_id,
}
}
}