aws_sdk_mediatailor/types/
_update_program_transition.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Program transition configuration.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct UpdateProgramTransition {
7    /// <p>The date and time that the program is scheduled to start, in epoch milliseconds.</p>
8    pub scheduled_start_time_millis: ::std::option::Option<i64>,
9    /// <p>The duration of the live program in seconds.</p>
10    pub duration_millis: ::std::option::Option<i64>,
11}
12impl UpdateProgramTransition {
13    /// <p>The date and time that the program is scheduled to start, in epoch milliseconds.</p>
14    pub fn scheduled_start_time_millis(&self) -> ::std::option::Option<i64> {
15        self.scheduled_start_time_millis
16    }
17    /// <p>The duration of the live program in seconds.</p>
18    pub fn duration_millis(&self) -> ::std::option::Option<i64> {
19        self.duration_millis
20    }
21}
22impl UpdateProgramTransition {
23    /// Creates a new builder-style object to manufacture [`UpdateProgramTransition`](crate::types::UpdateProgramTransition).
24    pub fn builder() -> crate::types::builders::UpdateProgramTransitionBuilder {
25        crate::types::builders::UpdateProgramTransitionBuilder::default()
26    }
27}
28
29/// A builder for [`UpdateProgramTransition`](crate::types::UpdateProgramTransition).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct UpdateProgramTransitionBuilder {
33    pub(crate) scheduled_start_time_millis: ::std::option::Option<i64>,
34    pub(crate) duration_millis: ::std::option::Option<i64>,
35}
36impl UpdateProgramTransitionBuilder {
37    /// <p>The date and time that the program is scheduled to start, in epoch milliseconds.</p>
38    pub fn scheduled_start_time_millis(mut self, input: i64) -> Self {
39        self.scheduled_start_time_millis = ::std::option::Option::Some(input);
40        self
41    }
42    /// <p>The date and time that the program is scheduled to start, in epoch milliseconds.</p>
43    pub fn set_scheduled_start_time_millis(mut self, input: ::std::option::Option<i64>) -> Self {
44        self.scheduled_start_time_millis = input;
45        self
46    }
47    /// <p>The date and time that the program is scheduled to start, in epoch milliseconds.</p>
48    pub fn get_scheduled_start_time_millis(&self) -> &::std::option::Option<i64> {
49        &self.scheduled_start_time_millis
50    }
51    /// <p>The duration of the live program in seconds.</p>
52    pub fn duration_millis(mut self, input: i64) -> Self {
53        self.duration_millis = ::std::option::Option::Some(input);
54        self
55    }
56    /// <p>The duration of the live program in seconds.</p>
57    pub fn set_duration_millis(mut self, input: ::std::option::Option<i64>) -> Self {
58        self.duration_millis = input;
59        self
60    }
61    /// <p>The duration of the live program in seconds.</p>
62    pub fn get_duration_millis(&self) -> &::std::option::Option<i64> {
63        &self.duration_millis
64    }
65    /// Consumes the builder and constructs a [`UpdateProgramTransition`](crate::types::UpdateProgramTransition).
66    pub fn build(self) -> crate::types::UpdateProgramTransition {
67        crate::types::UpdateProgramTransition {
68            scheduled_start_time_millis: self.scheduled_start_time_millis,
69            duration_millis: self.duration_millis,
70        }
71    }
72}