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
// 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 GetScheduleOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
pub arn: ::std::option::Option<::std::string::String>,
/// <p>The name of the schedule group associated with this schedule.</p>
pub group_name: ::std::option::Option<::std::string::String>,
/// <p>The name of the schedule.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p> The expression that defines when the schedule runs. The following formats are supported. </p>
/// <ul>
/// <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li>
/// <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li>
/// <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li>
/// </ul>
/// <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p>
/// <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p>
/// <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p>
/// <p> For more information and examples, see <a href="https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>
pub schedule_expression: ::std::option::Option<::std::string::String>,
/// <p>The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the <code>StartDate</code> you specify. EventBridge Scheduler ignores <code>StartDate</code> for one-time schedules.</p>
pub start_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the <code>EndDate</code> you specify. EventBridge Scheduler ignores <code>EndDate</code> for one-time schedules.</p>
pub end_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The description of the schedule.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The timezone in which the scheduling expression is evaluated.</p>
pub schedule_expression_timezone: ::std::option::Option<::std::string::String>,
/// <p>Specifies whether the schedule is enabled or disabled.</p>
pub state: ::std::option::Option<crate::types::ScheduleState>,
/// <p>The time at which the schedule was created.</p>
pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The time at which the schedule was last modified.</p>
pub last_modification_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.</p>
pub kms_key_arn: ::std::option::Option<::std::string::String>,
/// <p>The schedule target.</p>
pub target: ::std::option::Option<crate::types::Target>,
/// <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
pub flexible_time_window: ::std::option::Option<crate::types::FlexibleTimeWindow>,
_request_id: Option<String>,
}
impl GetScheduleOutput {
/// <p>The Amazon Resource Name (ARN) of the schedule.</p>
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The name of the schedule group associated with this schedule.</p>
pub fn group_name(&self) -> ::std::option::Option<&str> {
self.group_name.as_deref()
}
/// <p>The name of the schedule.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p> The expression that defines when the schedule runs. The following formats are supported. </p>
/// <ul>
/// <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li>
/// <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li>
/// <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li>
/// </ul>
/// <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p>
/// <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p>
/// <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p>
/// <p> For more information and examples, see <a href="https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>
pub fn schedule_expression(&self) -> ::std::option::Option<&str> {
self.schedule_expression.as_deref()
}
/// <p>The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the <code>StartDate</code> you specify. EventBridge Scheduler ignores <code>StartDate</code> for one-time schedules.</p>
pub fn start_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.start_date.as_ref()
}
/// <p>The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the <code>EndDate</code> you specify. EventBridge Scheduler ignores <code>EndDate</code> for one-time schedules.</p>
pub fn end_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.end_date.as_ref()
}
/// <p>The description of the schedule.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The timezone in which the scheduling expression is evaluated.</p>
pub fn schedule_expression_timezone(&self) -> ::std::option::Option<&str> {
self.schedule_expression_timezone.as_deref()
}
/// <p>Specifies whether the schedule is enabled or disabled.</p>
pub fn state(&self) -> ::std::option::Option<&crate::types::ScheduleState> {
self.state.as_ref()
}
/// <p>The time at which the schedule was created.</p>
pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_date.as_ref()
}
/// <p>The time at which the schedule was last modified.</p>
pub fn last_modification_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modification_date.as_ref()
}
/// <p>The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.</p>
pub fn kms_key_arn(&self) -> ::std::option::Option<&str> {
self.kms_key_arn.as_deref()
}
/// <p>The schedule target.</p>
pub fn target(&self) -> ::std::option::Option<&crate::types::Target> {
self.target.as_ref()
}
/// <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
pub fn flexible_time_window(&self) -> ::std::option::Option<&crate::types::FlexibleTimeWindow> {
self.flexible_time_window.as_ref()
}
}
impl ::aws_http::request_id::RequestId for GetScheduleOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetScheduleOutput {
/// Creates a new builder-style object to manufacture [`GetScheduleOutput`](crate::operation::get_schedule::GetScheduleOutput).
pub fn builder() -> crate::operation::get_schedule::builders::GetScheduleOutputBuilder {
crate::operation::get_schedule::builders::GetScheduleOutputBuilder::default()
}
}
/// A builder for [`GetScheduleOutput`](crate::operation::get_schedule::GetScheduleOutput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetScheduleOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) group_name: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) schedule_expression: ::std::option::Option<::std::string::String>,
pub(crate) start_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) end_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) schedule_expression_timezone: ::std::option::Option<::std::string::String>,
pub(crate) state: ::std::option::Option<crate::types::ScheduleState>,
pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modification_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) kms_key_arn: ::std::option::Option<::std::string::String>,
pub(crate) target: ::std::option::Option<crate::types::Target>,
pub(crate) flexible_time_window: ::std::option::Option<crate::types::FlexibleTimeWindow>,
_request_id: Option<String>,
}
impl GetScheduleOutputBuilder {
/// <p>The Amazon Resource Name (ARN) of the schedule.</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 schedule.</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 schedule.</p>
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
/// <p>The name of the schedule group associated with this schedule.</p>
pub fn group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.group_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the schedule group associated with this schedule.</p>
pub fn set_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.group_name = input;
self
}
/// <p>The name of the schedule group associated with this schedule.</p>
pub fn get_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.group_name
}
/// <p>The name of the schedule.</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 schedule.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the schedule.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p> The expression that defines when the schedule runs. The following formats are supported. </p>
/// <ul>
/// <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li>
/// <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li>
/// <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li>
/// </ul>
/// <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p>
/// <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p>
/// <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p>
/// <p> For more information and examples, see <a href="https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>
pub fn schedule_expression(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schedule_expression = ::std::option::Option::Some(input.into());
self
}
/// <p> The expression that defines when the schedule runs. The following formats are supported. </p>
/// <ul>
/// <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li>
/// <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li>
/// <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li>
/// </ul>
/// <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p>
/// <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p>
/// <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p>
/// <p> For more information and examples, see <a href="https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>
pub fn set_schedule_expression(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schedule_expression = input;
self
}
/// <p> The expression that defines when the schedule runs. The following formats are supported. </p>
/// <ul>
/// <li> <p> <code>at</code> expression - <code>at(yyyy-mm-ddThh:mm:ss)</code> </p> </li>
/// <li> <p> <code>rate</code> expression - <code>rate(unit value)</code> </p> </li>
/// <li> <p> <code>cron</code> expression - <code>cron(fields)</code> </p> </li>
/// </ul>
/// <p> You can use <code>at</code> expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use <code>rate</code> and <code>cron</code> expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month. </p>
/// <p> A <code>cron</code> expression consists of six fields separated by white spaces: <code>(minutes hours day_of_month month day_of_week year)</code>. </p>
/// <p> A <code>rate</code> expression consists of a <i>value</i> as a positive integer, and a <i>unit</i> with the following options: <code>minute</code> | <code>minutes</code> | <code>hour</code> | <code>hours</code> | <code>day</code> | <code>days</code> </p>
/// <p> For more information and examples, see <a href="https://docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html">Schedule types on EventBridge Scheduler</a> in the <i>EventBridge Scheduler User Guide</i>. </p>
pub fn get_schedule_expression(&self) -> &::std::option::Option<::std::string::String> {
&self.schedule_expression
}
/// <p>The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the <code>StartDate</code> you specify. EventBridge Scheduler ignores <code>StartDate</code> for one-time schedules.</p>
pub fn start_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.start_date = ::std::option::Option::Some(input);
self
}
/// <p>The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the <code>StartDate</code> you specify. EventBridge Scheduler ignores <code>StartDate</code> for one-time schedules.</p>
pub fn set_start_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.start_date = input;
self
}
/// <p>The date, in UTC, after which the schedule can begin invoking its target. Depending on the schedule's recurrence expression, invocations might occur on, or after, the <code>StartDate</code> you specify. EventBridge Scheduler ignores <code>StartDate</code> for one-time schedules.</p>
pub fn get_start_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.start_date
}
/// <p>The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the <code>EndDate</code> you specify. EventBridge Scheduler ignores <code>EndDate</code> for one-time schedules.</p>
pub fn end_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.end_date = ::std::option::Option::Some(input);
self
}
/// <p>The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the <code>EndDate</code> you specify. EventBridge Scheduler ignores <code>EndDate</code> for one-time schedules.</p>
pub fn set_end_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.end_date = input;
self
}
/// <p>The date, in UTC, before which the schedule can invoke its target. Depending on the schedule's recurrence expression, invocations might stop on, or before, the <code>EndDate</code> you specify. EventBridge Scheduler ignores <code>EndDate</code> for one-time schedules.</p>
pub fn get_end_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.end_date
}
/// <p>The description of the schedule.</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 schedule.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description of the schedule.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>The timezone in which the scheduling expression is evaluated.</p>
pub fn schedule_expression_timezone(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schedule_expression_timezone = ::std::option::Option::Some(input.into());
self
}
/// <p>The timezone in which the scheduling expression is evaluated.</p>
pub fn set_schedule_expression_timezone(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schedule_expression_timezone = input;
self
}
/// <p>The timezone in which the scheduling expression is evaluated.</p>
pub fn get_schedule_expression_timezone(&self) -> &::std::option::Option<::std::string::String> {
&self.schedule_expression_timezone
}
/// <p>Specifies whether the schedule is enabled or disabled.</p>
pub fn state(mut self, input: crate::types::ScheduleState) -> Self {
self.state = ::std::option::Option::Some(input);
self
}
/// <p>Specifies whether the schedule is enabled or disabled.</p>
pub fn set_state(mut self, input: ::std::option::Option<crate::types::ScheduleState>) -> Self {
self.state = input;
self
}
/// <p>Specifies whether the schedule is enabled or disabled.</p>
pub fn get_state(&self) -> &::std::option::Option<crate::types::ScheduleState> {
&self.state
}
/// <p>The time at which the schedule was created.</p>
pub fn creation_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_date = ::std::option::Option::Some(input);
self
}
/// <p>The time at which the schedule was created.</p>
pub fn set_creation_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_date = input;
self
}
/// <p>The time at which the schedule was created.</p>
pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_date
}
/// <p>The time at which the schedule was last modified.</p>
pub fn last_modification_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modification_date = ::std::option::Option::Some(input);
self
}
/// <p>The time at which the schedule was last modified.</p>
pub fn set_last_modification_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modification_date = input;
self
}
/// <p>The time at which the schedule was last modified.</p>
pub fn get_last_modification_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modification_date
}
/// <p>The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.</p>
pub fn kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.</p>
pub fn set_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_arn = input;
self
}
/// <p>The ARN for a customer managed KMS Key that is be used to encrypt and decrypt your data.</p>
pub fn get_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_arn
}
/// <p>The schedule target.</p>
pub fn target(mut self, input: crate::types::Target) -> Self {
self.target = ::std::option::Option::Some(input);
self
}
/// <p>The schedule target.</p>
pub fn set_target(mut self, input: ::std::option::Option<crate::types::Target>) -> Self {
self.target = input;
self
}
/// <p>The schedule target.</p>
pub fn get_target(&self) -> &::std::option::Option<crate::types::Target> {
&self.target
}
/// <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
pub fn flexible_time_window(mut self, input: crate::types::FlexibleTimeWindow) -> Self {
self.flexible_time_window = ::std::option::Option::Some(input);
self
}
/// <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
pub fn set_flexible_time_window(mut self, input: ::std::option::Option<crate::types::FlexibleTimeWindow>) -> Self {
self.flexible_time_window = input;
self
}
/// <p>Allows you to configure a time window during which EventBridge Scheduler invokes the schedule.</p>
pub fn get_flexible_time_window(&self) -> &::std::option::Option<crate::types::FlexibleTimeWindow> {
&self.flexible_time_window
}
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 [`GetScheduleOutput`](crate::operation::get_schedule::GetScheduleOutput).
pub fn build(self) -> crate::operation::get_schedule::GetScheduleOutput {
crate::operation::get_schedule::GetScheduleOutput {
arn: self.arn,
group_name: self.group_name,
name: self.name,
schedule_expression: self.schedule_expression,
start_date: self.start_date,
end_date: self.end_date,
description: self.description,
schedule_expression_timezone: self.schedule_expression_timezone,
state: self.state,
creation_date: self.creation_date,
last_modification_date: self.last_modification_date,
kms_key_arn: self.kms_key_arn,
target: self.target,
flexible_time_window: self.flexible_time_window,
_request_id: self._request_id,
}
}
}