AWS SDK

AWS SDK

rev. 18b1dd205ff4335251e6dd0ecb88193de1b1cede (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/start_change_request_execution/_start_change_request_execution_input.rs

@@ -0,1 +0,781 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           5  +
pub struct StartChangeRequestExecutionInput {
           6  +
    /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
           7  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
           8  +
    /// </note>
           9  +
    pub scheduled_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          10  +
    /// <p>The name of the change template document to run during the runbook workflow.</p>
          11  +
    pub document_name: ::std::option::Option<::std::string::String>,
          12  +
    /// <p>The version of the change template document to run during the runbook workflow.</p>
          13  +
    pub document_version: ::std::option::Option<::std::string::String>,
          14  +
    /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
          15  +
    pub parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
          16  +
    /// <p>The name of the change request associated with the runbook workflow to be run.</p>
          17  +
    pub change_request_name: ::std::option::Option<::std::string::String>,
          18  +
    /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
          19  +
    pub client_token: ::std::option::Option<::std::string::String>,
          20  +
    /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
          21  +
    /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
          22  +
    /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
          23  +
    /// </note>
          24  +
    pub auto_approve: ::std::option::Option<bool>,
          25  +
    /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
          26  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
          27  +
    /// </note>
          28  +
    pub runbooks: ::std::option::Option<::std::vec::Vec<crate::types::Runbook>>,
          29  +
    /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
          30  +
    /// <ul>
          31  +
    /// <li>
          32  +
    /// <p><code>Key=Environment,Value=Production</code></p></li>
          33  +
    /// <li>
          34  +
    /// <p><code>Key=Region,Value=us-east-2</code></p></li>
          35  +
    /// </ul><note>
          36  +
    /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
          37  +
    /// </note>
          38  +
    pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
          39  +
    /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
          40  +
    pub scheduled_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
          41  +
    /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
          42  +
    pub change_details: ::std::option::Option<::std::string::String>,
          43  +
}
          44  +
impl StartChangeRequestExecutionInput {
          45  +
    /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
          46  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
          47  +
    /// </note>
          48  +
    pub fn scheduled_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
          49  +
        self.scheduled_time.as_ref()
          50  +
    }
          51  +
    /// <p>The name of the change template document to run during the runbook workflow.</p>
          52  +
    pub fn document_name(&self) -> ::std::option::Option<&str> {
          53  +
        self.document_name.as_deref()
          54  +
    }
          55  +
    /// <p>The version of the change template document to run during the runbook workflow.</p>
          56  +
    pub fn document_version(&self) -> ::std::option::Option<&str> {
          57  +
        self.document_version.as_deref()
          58  +
    }
          59  +
    /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
          60  +
    pub fn parameters(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
          61  +
        self.parameters.as_ref()
          62  +
    }
          63  +
    /// <p>The name of the change request associated with the runbook workflow to be run.</p>
          64  +
    pub fn change_request_name(&self) -> ::std::option::Option<&str> {
          65  +
        self.change_request_name.as_deref()
          66  +
    }
          67  +
    /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
          68  +
    pub fn client_token(&self) -> ::std::option::Option<&str> {
          69  +
        self.client_token.as_deref()
          70  +
    }
          71  +
    /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
          72  +
    /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
          73  +
    /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
          74  +
    /// </note>
          75  +
    pub fn auto_approve(&self) -> ::std::option::Option<bool> {
          76  +
        self.auto_approve
          77  +
    }
          78  +
    /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
          79  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
          80  +
    /// </note>
          81  +
    ///
          82  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.runbooks.is_none()`.
          83  +
    pub fn runbooks(&self) -> &[crate::types::Runbook] {
          84  +
        self.runbooks.as_deref().unwrap_or_default()
          85  +
    }
          86  +
    /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
          87  +
    /// <ul>
          88  +
    /// <li>
          89  +
    /// <p><code>Key=Environment,Value=Production</code></p></li>
          90  +
    /// <li>
          91  +
    /// <p><code>Key=Region,Value=us-east-2</code></p></li>
          92  +
    /// </ul><note>
          93  +
    /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
          94  +
    /// </note>
          95  +
    ///
          96  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
          97  +
    pub fn tags(&self) -> &[crate::types::Tag] {
          98  +
        self.tags.as_deref().unwrap_or_default()
          99  +
    }
         100  +
    /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
         101  +
    pub fn scheduled_end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
         102  +
        self.scheduled_end_time.as_ref()
         103  +
    }
         104  +
    /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
         105  +
    pub fn change_details(&self) -> ::std::option::Option<&str> {
         106  +
        self.change_details.as_deref()
         107  +
    }
         108  +
}
         109  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         110  +
    ::aws_smithy_schema::ShapeId::from_parts(
         111  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ScheduledTime",
         112  +
        "com.amazonaws.ssm.synthetic",
         113  +
        "StartChangeRequestExecutionInput",
         114  +
    ),
         115  +
    ::aws_smithy_schema::ShapeType::Timestamp,
         116  +
    "ScheduledTime",
         117  +
    0,
         118  +
);
         119  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         120  +
    ::aws_smithy_schema::ShapeId::from_parts(
         121  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$DocumentName",
         122  +
        "com.amazonaws.ssm.synthetic",
         123  +
        "StartChangeRequestExecutionInput",
         124  +
    ),
         125  +
    ::aws_smithy_schema::ShapeType::String,
         126  +
    "DocumentName",
         127  +
    1,
         128  +
);
         129  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_VERSION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         130  +
    ::aws_smithy_schema::ShapeId::from_parts(
         131  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$DocumentVersion",
         132  +
        "com.amazonaws.ssm.synthetic",
         133  +
        "StartChangeRequestExecutionInput",
         134  +
    ),
         135  +
    ::aws_smithy_schema::ShapeType::String,
         136  +
    "DocumentVersion",
         137  +
    2,
         138  +
);
         139  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE_MEMBER: ::aws_smithy_schema::Schema<'static> =
         140  +
    ::aws_smithy_schema::Schema::new_member(
         141  +
        ::aws_smithy_schema::ShapeId::from_parts(
         142  +
            "com.amazonaws.ssm#AutomationParameterValueList$member",
         143  +
            "com.amazonaws.ssm",
         144  +
            "AutomationParameterValueList",
         145  +
        ),
         146  +
        ::aws_smithy_schema::ShapeType::String,
         147  +
        "member",
         148  +
        0,
         149  +
    );
         150  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_KEY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         151  +
    ::aws_smithy_schema::ShapeId::from_parts(
         152  +
        "com.amazonaws.ssm#AutomationParameterMap$key",
         153  +
        "com.amazonaws.ssm",
         154  +
        "AutomationParameterMap",
         155  +
    ),
         156  +
    ::aws_smithy_schema::ShapeType::String,
         157  +
    "key",
         158  +
    0,
         159  +
);
         160  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         161  +
    ::aws_smithy_schema::ShapeId::from_parts(
         162  +
        "com.amazonaws.ssm#AutomationParameterMap$value",
         163  +
        "com.amazonaws.ssm",
         164  +
        "AutomationParameterMap",
         165  +
    ),
         166  +
    ::aws_smithy_schema::ShapeType::List,
         167  +
    "value",
         168  +
    1,
         169  +
)
         170  +
.with_list_member(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE_MEMBER);
         171  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         172  +
    ::aws_smithy_schema::ShapeId::from_parts(
         173  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$Parameters",
         174  +
        "com.amazonaws.ssm.synthetic",
         175  +
        "StartChangeRequestExecutionInput",
         176  +
    ),
         177  +
    ::aws_smithy_schema::ShapeType::Map,
         178  +
    "Parameters",
         179  +
    3,
         180  +
)
         181  +
.with_map_members(
         182  +
    &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_KEY,
         183  +
    &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE,
         184  +
);
         185  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_REQUEST_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         186  +
    ::aws_smithy_schema::ShapeId::from_parts(
         187  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ChangeRequestName",
         188  +
        "com.amazonaws.ssm.synthetic",
         189  +
        "StartChangeRequestExecutionInput",
         190  +
    ),
         191  +
    ::aws_smithy_schema::ShapeType::String,
         192  +
    "ChangeRequestName",
         193  +
    4,
         194  +
);
         195  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         196  +
    ::aws_smithy_schema::ShapeId::from_parts(
         197  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ClientToken",
         198  +
        "com.amazonaws.ssm.synthetic",
         199  +
        "StartChangeRequestExecutionInput",
         200  +
    ),
         201  +
    ::aws_smithy_schema::ShapeType::String,
         202  +
    "ClientToken",
         203  +
    5,
         204  +
);
         205  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_AUTO_APPROVE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         206  +
    ::aws_smithy_schema::ShapeId::from_parts(
         207  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$AutoApprove",
         208  +
        "com.amazonaws.ssm.synthetic",
         209  +
        "StartChangeRequestExecutionInput",
         210  +
    ),
         211  +
    ::aws_smithy_schema::ShapeType::Boolean,
         212  +
    "AutoApprove",
         213  +
    6,
         214  +
);
         215  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         216  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#Runbooks$member", "com.amazonaws.ssm", "Runbooks"),
         217  +
    ::aws_smithy_schema::ShapeType::Structure,
         218  +
    "member",
         219  +
    0,
         220  +
);
         221  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         222  +
    ::aws_smithy_schema::ShapeId::from_parts(
         223  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$Runbooks",
         224  +
        "com.amazonaws.ssm.synthetic",
         225  +
        "StartChangeRequestExecutionInput",
         226  +
    ),
         227  +
    ::aws_smithy_schema::ShapeType::List,
         228  +
    "Runbooks",
         229  +
    7,
         230  +
)
         231  +
.with_list_member(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS_MEMBER);
         232  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         233  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#TagList$member", "com.amazonaws.ssm", "TagList"),
         234  +
    ::aws_smithy_schema::ShapeType::Structure,
         235  +
    "member",
         236  +
    0,
         237  +
);
         238  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         239  +
    ::aws_smithy_schema::ShapeId::from_parts(
         240  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$Tags",
         241  +
        "com.amazonaws.ssm.synthetic",
         242  +
        "StartChangeRequestExecutionInput",
         243  +
    ),
         244  +
    ::aws_smithy_schema::ShapeType::List,
         245  +
    "Tags",
         246  +
    8,
         247  +
)
         248  +
.with_list_member(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS_MEMBER);
         249  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_END_TIME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         250  +
    ::aws_smithy_schema::ShapeId::from_parts(
         251  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ScheduledEndTime",
         252  +
        "com.amazonaws.ssm.synthetic",
         253  +
        "StartChangeRequestExecutionInput",
         254  +
    ),
         255  +
    ::aws_smithy_schema::ShapeType::Timestamp,
         256  +
    "ScheduledEndTime",
         257  +
    9,
         258  +
);
         259  +
static STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_DETAILS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
         260  +
    ::aws_smithy_schema::ShapeId::from_parts(
         261  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput$ChangeDetails",
         262  +
        "com.amazonaws.ssm.synthetic",
         263  +
        "StartChangeRequestExecutionInput",
         264  +
    ),
         265  +
    ::aws_smithy_schema::ShapeType::String,
         266  +
    "ChangeDetails",
         267  +
    10,
         268  +
);
         269  +
static STARTCHANGEREQUESTEXECUTIONINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
         270  +
    ::aws_smithy_schema::ShapeId::from_parts(
         271  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionInput",
         272  +
        "com.amazonaws.ssm.synthetic",
         273  +
        "StartChangeRequestExecutionInput",
         274  +
    ),
         275  +
    ::aws_smithy_schema::ShapeType::Structure,
         276  +
    &[
         277  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_TIME,
         278  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_NAME,
         279  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_VERSION,
         280  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS,
         281  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_REQUEST_NAME,
         282  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CLIENT_TOKEN,
         283  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_AUTO_APPROVE,
         284  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS,
         285  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS,
         286  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_END_TIME,
         287  +
        &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_DETAILS,
         288  +
    ],
         289  +
)
         290  +
.with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
         291  +
.with_original_name("StartChangeRequestExecutionRequest");
         292  +
impl StartChangeRequestExecutionInput {
         293  +
    /// The schema for this shape.
         294  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &STARTCHANGEREQUESTEXECUTIONINPUT_SCHEMA;
         295  +
}
         296  +
impl ::aws_smithy_schema::serde::SerializableStruct for StartChangeRequestExecutionInput {
         297  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
         298  +
    fn serialize_members(
         299  +
        &self,
         300  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
         301  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
         302  +
        if let Some(ref val) = self.scheduled_time {
         303  +
            ser.write_timestamp(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_TIME, val)?;
         304  +
        }
         305  +
        if let Some(ref val) = self.document_name {
         306  +
            ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_NAME, val)?;
         307  +
        }
         308  +
        if let Some(ref val) = self.document_version {
         309  +
            ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_DOCUMENT_VERSION, val)?;
         310  +
        }
         311  +
        if let Some(ref val) = self.parameters {
         312  +
            ser.write_map(
         313  +
                &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS,
         314  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         315  +
                    for (key, value) in val {
         316  +
                        ser.write_string(&::aws_smithy_schema::prelude::STRING, key)?;
         317  +
         318  +
                        ser.write_list(
         319  +
                            &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE,
         320  +
                            &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         321  +
                                for item in value {
         322  +
                                    ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
         323  +
                                }
         324  +
                                Ok(())
         325  +
                            },
         326  +
                        )?;
         327  +
                    }
         328  +
                    Ok(())
         329  +
                },
         330  +
            )?;
         331  +
        }
         332  +
        if let Some(ref val) = self.change_request_name {
         333  +
            ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_REQUEST_NAME, val)?;
         334  +
        }
         335  +
        if let Some(ref val) = self.client_token {
         336  +
            ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CLIENT_TOKEN, val)?;
         337  +
        }
         338  +
        if let Some(ref val) = self.auto_approve {
         339  +
            ser.write_boolean(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_AUTO_APPROVE, *val)?;
         340  +
        }
         341  +
        if let Some(ref val) = self.runbooks {
         342  +
            ser.write_list(
         343  +
                &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_RUNBOOKS,
         344  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         345  +
                    for item in val {
         346  +
                        ser.write_struct(crate::types::Runbook::SCHEMA, item)?;
         347  +
                    }
         348  +
                    Ok(())
         349  +
                },
         350  +
            )?;
         351  +
        }
         352  +
        if let Some(ref val) = self.tags {
         353  +
            ser.write_list(
         354  +
                &STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_TAGS,
         355  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
         356  +
                    for item in val {
         357  +
                        ser.write_struct(crate::types::Tag::SCHEMA, item)?;
         358  +
                    }
         359  +
                    Ok(())
         360  +
                },
         361  +
            )?;
         362  +
        }
         363  +
        if let Some(ref val) = self.scheduled_end_time {
         364  +
            ser.write_timestamp(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_SCHEDULED_END_TIME, val)?;
         365  +
        }
         366  +
        if let Some(ref val) = self.change_details {
         367  +
            ser.write_string(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_CHANGE_DETAILS, val)?;
         368  +
        }
         369  +
        Ok(())
         370  +
    }
         371  +
}
         372  +
impl StartChangeRequestExecutionInput {
         373  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         374  +
    pub fn deserialize(
         375  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         376  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         377  +
        #[allow(unused_variables, unused_mut)]
         378  +
        let mut builder = Self::builder();
         379  +
        #[allow(
         380  +
            unused_variables,
         381  +
            unreachable_code,
         382  +
            clippy::single_match,
         383  +
            clippy::match_single_binding,
         384  +
            clippy::diverging_sub_expression
         385  +
        )]
         386  +
        deserializer.read_struct(&STARTCHANGEREQUESTEXECUTIONINPUT_SCHEMA, &mut |member, deser| {
         387  +
            match member.member_index() {
         388  +
                Some(0) => {
         389  +
                    if deser.is_null() {
         390  +
                        deser.read_null()?;
         391  +
                    } else {
         392  +
                        builder.scheduled_time = Some(deser.read_timestamp(member)?);
         393  +
                    }
         394  +
                }
         395  +
                Some(1) => {
         396  +
                    if deser.is_null() {
         397  +
                        deser.read_null()?;
         398  +
                    } else {
         399  +
                        builder.document_name = Some(deser.read_string(member)?);
         400  +
                    }
         401  +
                }
         402  +
                Some(2) => {
         403  +
                    if deser.is_null() {
         404  +
                        deser.read_null()?;
         405  +
                    } else {
         406  +
                        builder.document_version = Some(deser.read_string(member)?);
         407  +
                    }
         408  +
                }
         409  +
                Some(3) => {
         410  +
                    if deser.is_null() {
         411  +
                        deser.read_null()?;
         412  +
                    } else {
         413  +
                        builder.parameters = Some({
         414  +
                            let mut container = std::collections::HashMap::new();
         415  +
                            deser.read_map(member, &mut |key, deser| {
         416  +
                                container.insert(key, {
         417  +
                                    let mut list = Vec::new();
         418  +
                                    deser.read_list(&STARTCHANGEREQUESTEXECUTIONINPUT_MEMBER_PARAMETERS_VALUE, &mut |deser| {
         419  +
                                        list.push(deser.read_string(&::aws_smithy_schema::prelude::STRING)?);
         420  +
                                        Ok(())
         421  +
                                    })?;
         422  +
                                    list
         423  +
                                });
         424  +
                                Ok(())
         425  +
                            })?;
         426  +
                            container
         427  +
                        });
         428  +
                    }
         429  +
                }
         430  +
                Some(4) => {
         431  +
                    if deser.is_null() {
         432  +
                        deser.read_null()?;
         433  +
                    } else {
         434  +
                        builder.change_request_name = Some(deser.read_string(member)?);
         435  +
                    }
         436  +
                }
         437  +
                Some(5) => {
         438  +
                    if deser.is_null() {
         439  +
                        deser.read_null()?;
         440  +
                    } else {
         441  +
                        builder.client_token = Some(deser.read_string(member)?);
         442  +
                    }
         443  +
                }
         444  +
                Some(6) => {
         445  +
                    if deser.is_null() {
         446  +
                        deser.read_null()?;
         447  +
                    } else {
         448  +
                        builder.auto_approve = Some(deser.read_boolean(member)?);
         449  +
                    }
         450  +
                }
         451  +
                Some(7) => {
         452  +
                    if deser.is_null() {
         453  +
                        deser.read_null()?;
         454  +
                    } else {
         455  +
                        builder.runbooks = Some({
         456  +
                            let mut container = Vec::new();
         457  +
                            deser.read_list(member, &mut |deser| {
         458  +
                                container.push(crate::types::Runbook::deserialize(deser)?);
         459  +
                                Ok(())
         460  +
                            })?;
         461  +
                            container
         462  +
                        });
         463  +
                    }
         464  +
                }
         465  +
                Some(8) => {
         466  +
                    if deser.is_null() {
         467  +
                        deser.read_null()?;
         468  +
                    } else {
         469  +
                        builder.tags = Some({
         470  +
                            let mut container = Vec::new();
         471  +
                            deser.read_list(member, &mut |deser| {
         472  +
                                container.push(crate::types::Tag::deserialize(deser)?);
         473  +
                                Ok(())
         474  +
                            })?;
         475  +
                            container
         476  +
                        });
         477  +
                    }
         478  +
                }
         479  +
                Some(9) => {
         480  +
                    if deser.is_null() {
         481  +
                        deser.read_null()?;
         482  +
                    } else {
         483  +
                        builder.scheduled_end_time = Some(deser.read_timestamp(member)?);
         484  +
                    }
         485  +
                }
         486  +
                Some(10) => {
         487  +
                    if deser.is_null() {
         488  +
                        deser.read_null()?;
         489  +
                    } else {
         490  +
                        builder.change_details = Some(deser.read_string(member)?);
         491  +
                    }
         492  +
                }
         493  +
                _ => {}
         494  +
            }
         495  +
            Ok(())
         496  +
        })?;
         497  +
        builder.document_name = builder.document_name.or(Some(String::new()));
         498  +
        builder.runbooks = builder.runbooks.or(Some(Vec::new()));
         499  +
        builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
         500  +
    }
         501  +
}
         502  +
impl StartChangeRequestExecutionInput {
         503  +
    /// Deserializes this structure from a body deserializer and HTTP response.
         504  +
    pub fn deserialize_with_response(
         505  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         506  +
        _headers: &::aws_smithy_runtime_api::http::Headers,
         507  +
        _status: u16,
         508  +
        _body: &[u8],
         509  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         510  +
        Self::deserialize(deserializer)
         511  +
    }
         512  +
}
         513  +
impl StartChangeRequestExecutionInput {
         514  +
    /// Creates a new builder-style object to manufacture [`StartChangeRequestExecutionInput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionInput).
         515  +
    pub fn builder() -> crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionInputBuilder {
         516  +
        crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionInputBuilder::default()
         517  +
    }
         518  +
}
         519  +
         520  +
/// A builder for [`StartChangeRequestExecutionInput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionInput).
         521  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         522  +
#[non_exhaustive]
         523  +
pub struct StartChangeRequestExecutionInputBuilder {
         524  +
    pub(crate) scheduled_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         525  +
    pub(crate) document_name: ::std::option::Option<::std::string::String>,
         526  +
    pub(crate) document_version: ::std::option::Option<::std::string::String>,
         527  +
    pub(crate) parameters: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
         528  +
    pub(crate) change_request_name: ::std::option::Option<::std::string::String>,
         529  +
    pub(crate) client_token: ::std::option::Option<::std::string::String>,
         530  +
    pub(crate) auto_approve: ::std::option::Option<bool>,
         531  +
    pub(crate) runbooks: ::std::option::Option<::std::vec::Vec<crate::types::Runbook>>,
         532  +
    pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
         533  +
    pub(crate) scheduled_end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
         534  +
    pub(crate) change_details: ::std::option::Option<::std::string::String>,
         535  +
}
         536  +
impl StartChangeRequestExecutionInputBuilder {
         537  +
    /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
         538  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         539  +
    /// </note>
         540  +
    pub fn scheduled_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         541  +
        self.scheduled_time = ::std::option::Option::Some(input);
         542  +
        self
         543  +
    }
         544  +
    /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
         545  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         546  +
    /// </note>
         547  +
    pub fn set_scheduled_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         548  +
        self.scheduled_time = input;
         549  +
        self
         550  +
    }
         551  +
    /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
         552  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         553  +
    /// </note>
         554  +
    pub fn get_scheduled_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         555  +
        &self.scheduled_time
         556  +
    }
         557  +
    /// <p>The name of the change template document to run during the runbook workflow.</p>
         558  +
    /// This field is required.
         559  +
    pub fn document_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         560  +
        self.document_name = ::std::option::Option::Some(input.into());
         561  +
        self
         562  +
    }
         563  +
    /// <p>The name of the change template document to run during the runbook workflow.</p>
         564  +
    pub fn set_document_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         565  +
        self.document_name = input;
         566  +
        self
         567  +
    }
         568  +
    /// <p>The name of the change template document to run during the runbook workflow.</p>
         569  +
    pub fn get_document_name(&self) -> &::std::option::Option<::std::string::String> {
         570  +
        &self.document_name
         571  +
    }
         572  +
    /// <p>The version of the change template document to run during the runbook workflow.</p>
         573  +
    pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         574  +
        self.document_version = ::std::option::Option::Some(input.into());
         575  +
        self
         576  +
    }
         577  +
    /// <p>The version of the change template document to run during the runbook workflow.</p>
         578  +
    pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         579  +
        self.document_version = input;
         580  +
        self
         581  +
    }
         582  +
    /// <p>The version of the change template document to run during the runbook workflow.</p>
         583  +
    pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
         584  +
        &self.document_version
         585  +
    }
         586  +
    /// Adds a key-value pair to `parameters`.
         587  +
    ///
         588  +
    /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
         589  +
    ///
         590  +
    /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
         591  +
    pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<::std::string::String>) -> Self {
         592  +
        let mut hash_map = self.parameters.unwrap_or_default();
         593  +
        hash_map.insert(k.into(), v);
         594  +
        self.parameters = ::std::option::Option::Some(hash_map);
         595  +
        self
         596  +
    }
         597  +
    /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
         598  +
    pub fn set_parameters(
         599  +
        mut self,
         600  +
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
         601  +
    ) -> Self {
         602  +
        self.parameters = input;
         603  +
        self
         604  +
    }
         605  +
    /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
         606  +
    pub fn get_parameters(
         607  +
        &self,
         608  +
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
         609  +
        &self.parameters
         610  +
    }
         611  +
    /// <p>The name of the change request associated with the runbook workflow to be run.</p>
         612  +
    pub fn change_request_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         613  +
        self.change_request_name = ::std::option::Option::Some(input.into());
         614  +
        self
         615  +
    }
         616  +
    /// <p>The name of the change request associated with the runbook workflow to be run.</p>
         617  +
    pub fn set_change_request_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         618  +
        self.change_request_name = input;
         619  +
        self
         620  +
    }
         621  +
    /// <p>The name of the change request associated with the runbook workflow to be run.</p>
         622  +
    pub fn get_change_request_name(&self) -> &::std::option::Option<::std::string::String> {
         623  +
        &self.change_request_name
         624  +
    }
         625  +
    /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
         626  +
    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         627  +
        self.client_token = ::std::option::Option::Some(input.into());
         628  +
        self
         629  +
    }
         630  +
    /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
         631  +
    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         632  +
        self.client_token = input;
         633  +
        self
         634  +
    }
         635  +
    /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
         636  +
    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
         637  +
        &self.client_token
         638  +
    }
         639  +
    /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
         640  +
    /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
         641  +
    /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
         642  +
    /// </note>
         643  +
    pub fn auto_approve(mut self, input: bool) -> Self {
         644  +
        self.auto_approve = ::std::option::Option::Some(input);
         645  +
        self
         646  +
    }
         647  +
    /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
         648  +
    /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
         649  +
    /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
         650  +
    /// </note>
         651  +
    pub fn set_auto_approve(mut self, input: ::std::option::Option<bool>) -> Self {
         652  +
        self.auto_approve = input;
         653  +
        self
         654  +
    }
         655  +
    /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
         656  +
    /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
         657  +
    /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
         658  +
    /// </note>
         659  +
    pub fn get_auto_approve(&self) -> &::std::option::Option<bool> {
         660  +
        &self.auto_approve
         661  +
    }
         662  +
    /// Appends an item to `runbooks`.
         663  +
    ///
         664  +
    /// To override the contents of this collection use [`set_runbooks`](Self::set_runbooks).
         665  +
    ///
         666  +
    /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
         667  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         668  +
    /// </note>
         669  +
    pub fn runbooks(mut self, input: crate::types::Runbook) -> Self {
         670  +
        let mut v = self.runbooks.unwrap_or_default();
         671  +
        v.push(input);
         672  +
        self.runbooks = ::std::option::Option::Some(v);
         673  +
        self
         674  +
    }
         675  +
    /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
         676  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         677  +
    /// </note>
         678  +
    pub fn set_runbooks(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Runbook>>) -> Self {
         679  +
        self.runbooks = input;
         680  +
        self
         681  +
    }
         682  +
    /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
         683  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         684  +
    /// </note>
         685  +
    pub fn get_runbooks(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Runbook>> {
         686  +
        &self.runbooks
         687  +
    }
         688  +
    /// Appends an item to `tags`.
         689  +
    ///
         690  +
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
         691  +
    ///
         692  +
    /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
         693  +
    /// <ul>
         694  +
    /// <li>
         695  +
    /// <p><code>Key=Environment,Value=Production</code></p></li>
         696  +
    /// <li>
         697  +
    /// <p><code>Key=Region,Value=us-east-2</code></p></li>
         698  +
    /// </ul><note>
         699  +
    /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
         700  +
    /// </note>
         701  +
    pub fn tags(mut self, input: crate::types::Tag) -> Self {
         702  +
        let mut v = self.tags.unwrap_or_default();
         703  +
        v.push(input);
         704  +
        self.tags = ::std::option::Option::Some(v);
         705  +
        self
         706  +
    }
         707  +
    /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
         708  +
    /// <ul>
         709  +
    /// <li>
         710  +
    /// <p><code>Key=Environment,Value=Production</code></p></li>
         711  +
    /// <li>
         712  +
    /// <p><code>Key=Region,Value=us-east-2</code></p></li>
         713  +
    /// </ul><note>
         714  +
    /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
         715  +
    /// </note>
         716  +
    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
         717  +
        self.tags = input;
         718  +
        self
         719  +
    }
         720  +
    /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
         721  +
    /// <ul>
         722  +
    /// <li>
         723  +
    /// <p><code>Key=Environment,Value=Production</code></p></li>
         724  +
    /// <li>
         725  +
    /// <p><code>Key=Region,Value=us-east-2</code></p></li>
         726  +
    /// </ul><note>
         727  +
    /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
         728  +
    /// </note>
         729  +
    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
         730  +
        &self.tags
         731  +
    }
         732  +
    /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
         733  +
    pub fn scheduled_end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         734  +
        self.scheduled_end_time = ::std::option::Option::Some(input);
         735  +
        self
         736  +
    }
         737  +
    /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
         738  +
    pub fn set_scheduled_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         739  +
        self.scheduled_end_time = input;
         740  +
        self
         741  +
    }
         742  +
    /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
         743  +
    pub fn get_scheduled_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         744  +
        &self.scheduled_end_time
         745  +
    }
         746  +
    /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
         747  +
    pub fn change_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         748  +
        self.change_details = ::std::option::Option::Some(input.into());
         749  +
        self
         750  +
    }
         751  +
    /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
         752  +
    pub fn set_change_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         753  +
        self.change_details = input;
         754  +
        self
         755  +
    }
         756  +
    /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
         757  +
    pub fn get_change_details(&self) -> &::std::option::Option<::std::string::String> {
         758  +
        &self.change_details
         759  +
    }
         760  +
    /// Consumes the builder and constructs a [`StartChangeRequestExecutionInput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionInput).
         761  +
    pub fn build(
         762  +
        self,
         763  +
    ) -> ::std::result::Result<
         764  +
        crate::operation::start_change_request_execution::StartChangeRequestExecutionInput,
         765  +
        ::aws_smithy_types::error::operation::BuildError,
         766  +
    > {
         767  +
        ::std::result::Result::Ok(crate::operation::start_change_request_execution::StartChangeRequestExecutionInput {
         768  +
            scheduled_time: self.scheduled_time,
         769  +
            document_name: self.document_name,
         770  +
            document_version: self.document_version,
         771  +
            parameters: self.parameters,
         772  +
            change_request_name: self.change_request_name,
         773  +
            client_token: self.client_token,
         774  +
            auto_approve: self.auto_approve,
         775  +
            runbooks: self.runbooks,
         776  +
            tags: self.tags,
         777  +
            scheduled_end_time: self.scheduled_end_time,
         778  +
            change_details: self.change_details,
         779  +
        })
         780  +
    }
         781  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/start_change_request_execution/_start_change_request_execution_output.rs

@@ -0,1 +0,187 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           5  +
pub struct StartChangeRequestExecutionOutput {
           6  +
    /// <p>The unique ID of a runbook workflow operation. (A runbook workflow is a type of Automation operation.)</p>
           7  +
    pub automation_execution_id: ::std::option::Option<::std::string::String>,
           8  +
    _request_id: Option<String>,
           9  +
}
          10  +
impl StartChangeRequestExecutionOutput {
          11  +
    /// <p>The unique ID of a runbook workflow operation. (A runbook workflow is a type of Automation operation.)</p>
          12  +
    pub fn automation_execution_id(&self) -> ::std::option::Option<&str> {
          13  +
        self.automation_execution_id.as_deref()
          14  +
    }
          15  +
}
          16  +
static STARTCHANGEREQUESTEXECUTIONOUTPUT_MEMBER_AUTOMATION_EXECUTION_ID: ::aws_smithy_schema::Schema<'static> =
          17  +
    ::aws_smithy_schema::Schema::new_member(
          18  +
        ::aws_smithy_schema::ShapeId::from_parts(
          19  +
            "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionOutput$AutomationExecutionId",
          20  +
            "com.amazonaws.ssm.synthetic",
          21  +
            "StartChangeRequestExecutionOutput",
          22  +
        ),
          23  +
        ::aws_smithy_schema::ShapeType::String,
          24  +
        "AutomationExecutionId",
          25  +
        0,
          26  +
    );
          27  +
static STARTCHANGEREQUESTEXECUTIONOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          28  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          29  +
    ::aws_smithy_schema::ShapeType::String,
          30  +
    "request_id",
          31  +
    1,
          32  +
)
          33  +
.with_http_header("x-amzn-requestid");
          34  +
static STARTCHANGEREQUESTEXECUTIONOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          35  +
    ::aws_smithy_schema::ShapeId::from_parts(
          36  +
        "com.amazonaws.ssm.synthetic#StartChangeRequestExecutionOutput",
          37  +
        "com.amazonaws.ssm.synthetic",
          38  +
        "StartChangeRequestExecutionOutput",
          39  +
    ),
          40  +
    ::aws_smithy_schema::ShapeType::Structure,
          41  +
    &[
          42  +
        &STARTCHANGEREQUESTEXECUTIONOUTPUT_MEMBER_AUTOMATION_EXECUTION_ID,
          43  +
        &STARTCHANGEREQUESTEXECUTIONOUTPUT_MEMBER__REQUEST_ID,
          44  +
    ],
          45  +
)
          46  +
.with_original_name("StartChangeRequestExecutionResult");
          47  +
impl StartChangeRequestExecutionOutput {
          48  +
    /// The schema for this shape.
          49  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &STARTCHANGEREQUESTEXECUTIONOUTPUT_SCHEMA;
          50  +
}
          51  +
impl ::aws_smithy_schema::serde::SerializableStruct for StartChangeRequestExecutionOutput {
          52  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          53  +
    fn serialize_members(
          54  +
        &self,
          55  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          56  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          57  +
        if let Some(ref val) = self.automation_execution_id {
          58  +
            ser.write_string(&STARTCHANGEREQUESTEXECUTIONOUTPUT_MEMBER_AUTOMATION_EXECUTION_ID, val)?;
          59  +
        }
          60  +
        Ok(())
          61  +
    }
          62  +
}
          63  +
impl StartChangeRequestExecutionOutput {
          64  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
          65  +
    pub fn deserialize(
          66  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
          67  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
          68  +
        #[allow(unused_variables, unused_mut)]
          69  +
        let mut builder = Self::builder();
          70  +
        #[allow(
          71  +
            unused_variables,
          72  +
            unreachable_code,
          73  +
            clippy::single_match,
          74  +
            clippy::match_single_binding,
          75  +
            clippy::diverging_sub_expression
          76  +
        )]
          77  +
        deserializer.read_struct(&STARTCHANGEREQUESTEXECUTIONOUTPUT_SCHEMA, &mut |member, deser| {
          78  +
            match member.member_index() {
          79  +
                Some(0) => {
          80  +
                    if deser.is_null() {
          81  +
                        deser.read_null()?;
          82  +
                    } else {
          83  +
                        builder.automation_execution_id = Some(deser.read_string(member)?);
          84  +
                    }
          85  +
                }
          86  +
                Some(1) => {
          87  +
                    builder._request_id = Some(deser.read_string(member)?);
          88  +
                }
          89  +
                _ => {}
          90  +
            }
          91  +
            Ok(())
          92  +
        })?;
          93  +
        Ok(builder.build())
          94  +
    }
          95  +
}
          96  +
impl StartChangeRequestExecutionOutput {
          97  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
          98  +
    /// Header-bound members are read directly from headers, avoiding runtime
          99  +
    /// member iteration overhead. Body members are read via the deserializer.
         100  +
    pub fn deserialize_with_response(
         101  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         102  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         103  +
        _status: u16,
         104  +
        _body: &[u8],
         105  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         106  +
        #[allow(unused_variables, unused_mut)]
         107  +
        let mut builder = Self::builder();
         108  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         109  +
            builder._request_id = Some(val.to_string());
         110  +
        }
         111  +
         112  +
        #[allow(
         113  +
            unused_variables,
         114  +
            unreachable_code,
         115  +
            clippy::single_match,
         116  +
            clippy::match_single_binding,
         117  +
            clippy::diverging_sub_expression
         118  +
        )]
         119  +
        deserializer.read_struct(&STARTCHANGEREQUESTEXECUTIONOUTPUT_SCHEMA, &mut |member, deser| {
         120  +
            match member.member_index() {
         121  +
                Some(0) => {
         122  +
                    builder.automation_execution_id = Some(deser.read_string(member)?);
         123  +
                }
         124  +
                _ => {}
         125  +
            }
         126  +
            Ok(())
         127  +
        })?;
         128  +
        Ok(builder.build())
         129  +
    }
         130  +
}
         131  +
impl ::aws_types::request_id::RequestId for StartChangeRequestExecutionOutput {
         132  +
    fn request_id(&self) -> Option<&str> {
         133  +
        self._request_id.as_deref()
         134  +
    }
         135  +
}
         136  +
impl StartChangeRequestExecutionOutput {
         137  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         138  +
        self._request_id = request_id;
         139  +
        self
         140  +
    }
         141  +
}
         142  +
impl StartChangeRequestExecutionOutput {
         143  +
    /// Creates a new builder-style object to manufacture [`StartChangeRequestExecutionOutput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput).
         144  +
    pub fn builder() -> crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionOutputBuilder {
         145  +
        crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionOutputBuilder::default()
         146  +
    }
         147  +
}
         148  +
         149  +
/// A builder for [`StartChangeRequestExecutionOutput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput).
         150  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         151  +
#[non_exhaustive]
         152  +
pub struct StartChangeRequestExecutionOutputBuilder {
         153  +
    pub(crate) automation_execution_id: ::std::option::Option<::std::string::String>,
         154  +
    _request_id: Option<String>,
         155  +
}
         156  +
impl StartChangeRequestExecutionOutputBuilder {
         157  +
    /// <p>The unique ID of a runbook workflow operation. (A runbook workflow is a type of Automation operation.)</p>
         158  +
    pub fn automation_execution_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         159  +
        self.automation_execution_id = ::std::option::Option::Some(input.into());
         160  +
        self
         161  +
    }
         162  +
    /// <p>The unique ID of a runbook workflow operation. (A runbook workflow is a type of Automation operation.)</p>
         163  +
    pub fn set_automation_execution_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         164  +
        self.automation_execution_id = input;
         165  +
        self
         166  +
    }
         167  +
    /// <p>The unique ID of a runbook workflow operation. (A runbook workflow is a type of Automation operation.)</p>
         168  +
    pub fn get_automation_execution_id(&self) -> &::std::option::Option<::std::string::String> {
         169  +
        &self.automation_execution_id
         170  +
    }
         171  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         172  +
        self._request_id = Some(request_id.into());
         173  +
        self
         174  +
    }
         175  +
         176  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         177  +
        self._request_id = request_id;
         178  +
        self
         179  +
    }
         180  +
    /// Consumes the builder and constructs a [`StartChangeRequestExecutionOutput`](crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput).
         181  +
    pub fn build(self) -> crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput {
         182  +
        crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput {
         183  +
            automation_execution_id: self.automation_execution_id,
         184  +
            _request_id: self._request_id,
         185  +
        }
         186  +
    }
         187  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/start_change_request_execution/builders.rs

@@ -0,1 +0,333 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::start_change_request_execution::_start_change_request_execution_input::StartChangeRequestExecutionInputBuilder;
           3  +
           4  +
pub use crate::operation::start_change_request_execution::_start_change_request_execution_output::StartChangeRequestExecutionOutputBuilder;
           5  +
           6  +
impl crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionInputBuilder {
           7  +
    /// Sends a request with this input using the given client.
           8  +
    pub async fn send_with(
           9  +
        self,
          10  +
        client: &crate::Client,
          11  +
    ) -> ::std::result::Result<
          12  +
        crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::start_change_request_execution::StartChangeRequestExecutionError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.start_change_request_execution();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `StartChangeRequestExecution`.
          24  +
///
          25  +
/// <important>
          26  +
/// <p>Amazon Web Services Systems Manager Change Manager is no longer open to new customers. Existing customers can continue to use the service as normal. For more information, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/change-manager-availability-change.html">Amazon Web Services Systems Manager Change Manager availability change</a>.</p>
          27  +
/// </important>
          28  +
/// <p>Creates a change request for Change Manager. The Automation runbooks specified in the change request run only after all required approvals for the change request have been received.</p>
          29  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          30  +
pub struct StartChangeRequestExecutionFluentBuilder {
          31  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          32  +
    inner: crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionInputBuilder,
          33  +
    config_override: ::std::option::Option<crate::config::Builder>,
          34  +
}
          35  +
impl
          36  +
    crate::client::customize::internal::CustomizableSend<
          37  +
        crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput,
          38  +
        crate::operation::start_change_request_execution::StartChangeRequestExecutionError,
          39  +
    > for StartChangeRequestExecutionFluentBuilder
          40  +
{
          41  +
    fn send(
          42  +
        self,
          43  +
        config_override: crate::config::Builder,
          44  +
    ) -> crate::client::customize::internal::BoxFuture<
          45  +
        crate::client::customize::internal::SendResult<
          46  +
            crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput,
          47  +
            crate::operation::start_change_request_execution::StartChangeRequestExecutionError,
          48  +
        >,
          49  +
    > {
          50  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          51  +
    }
          52  +
}
          53  +
impl StartChangeRequestExecutionFluentBuilder {
          54  +
    /// Creates a new `StartChangeRequestExecutionFluentBuilder`.
          55  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          56  +
        Self {
          57  +
            handle,
          58  +
            inner: ::std::default::Default::default(),
          59  +
            config_override: ::std::option::Option::None,
          60  +
        }
          61  +
    }
          62  +
    /// Access the StartChangeRequestExecution as a reference.
          63  +
    pub fn as_input(&self) -> &crate::operation::start_change_request_execution::builders::StartChangeRequestExecutionInputBuilder {
          64  +
        &self.inner
          65  +
    }
          66  +
    /// Sends the request and returns the response.
          67  +
    ///
          68  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          69  +
    /// can be matched against.
          70  +
    ///
          71  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          72  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          73  +
    /// set when configuring the client.
          74  +
    pub async fn send(
          75  +
        self,
          76  +
    ) -> ::std::result::Result<
          77  +
        crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput,
          78  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          79  +
            crate::operation::start_change_request_execution::StartChangeRequestExecutionError,
          80  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          81  +
        >,
          82  +
    > {
          83  +
        let input = self
          84  +
            .inner
          85  +
            .build()
          86  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          87  +
        let runtime_plugins = crate::operation::start_change_request_execution::StartChangeRequestExecution::operation_runtime_plugins(
          88  +
            self.handle.runtime_plugins.clone(),
          89  +
            &self.handle.conf,
          90  +
            self.config_override,
          91  +
        );
          92  +
        crate::operation::start_change_request_execution::StartChangeRequestExecution::orchestrate(&runtime_plugins, input).await
          93  +
    }
          94  +
          95  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          96  +
    pub fn customize(
          97  +
        self,
          98  +
    ) -> crate::client::customize::CustomizableOperation<
          99  +
        crate::operation::start_change_request_execution::StartChangeRequestExecutionOutput,
         100  +
        crate::operation::start_change_request_execution::StartChangeRequestExecutionError,
         101  +
        Self,
         102  +
    > {
         103  +
        crate::client::customize::CustomizableOperation::new(self)
         104  +
    }
         105  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         106  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         107  +
        self
         108  +
    }
         109  +
         110  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         111  +
        self.config_override = config_override;
         112  +
        self
         113  +
    }
         114  +
    /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
         115  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         116  +
    /// </note>
         117  +
    pub fn scheduled_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         118  +
        self.inner = self.inner.scheduled_time(input);
         119  +
        self
         120  +
    }
         121  +
    /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
         122  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         123  +
    /// </note>
         124  +
    pub fn set_scheduled_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         125  +
        self.inner = self.inner.set_scheduled_time(input);
         126  +
        self
         127  +
    }
         128  +
    /// <p>The date and time specified in the change request to run the Automation runbooks.</p><note>
         129  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         130  +
    /// </note>
         131  +
    pub fn get_scheduled_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         132  +
        self.inner.get_scheduled_time()
         133  +
    }
         134  +
    /// <p>The name of the change template document to run during the runbook workflow.</p>
         135  +
    pub fn document_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         136  +
        self.inner = self.inner.document_name(input.into());
         137  +
        self
         138  +
    }
         139  +
    /// <p>The name of the change template document to run during the runbook workflow.</p>
         140  +
    pub fn set_document_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         141  +
        self.inner = self.inner.set_document_name(input);
         142  +
        self
         143  +
    }
         144  +
    /// <p>The name of the change template document to run during the runbook workflow.</p>
         145  +
    pub fn get_document_name(&self) -> &::std::option::Option<::std::string::String> {
         146  +
        self.inner.get_document_name()
         147  +
    }
         148  +
    /// <p>The version of the change template document to run during the runbook workflow.</p>
         149  +
    pub fn document_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         150  +
        self.inner = self.inner.document_version(input.into());
         151  +
        self
         152  +
    }
         153  +
    /// <p>The version of the change template document to run during the runbook workflow.</p>
         154  +
    pub fn set_document_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         155  +
        self.inner = self.inner.set_document_version(input);
         156  +
        self
         157  +
    }
         158  +
    /// <p>The version of the change template document to run during the runbook workflow.</p>
         159  +
    pub fn get_document_version(&self) -> &::std::option::Option<::std::string::String> {
         160  +
        self.inner.get_document_version()
         161  +
    }
         162  +
    ///
         163  +
    /// Adds a key-value pair to `Parameters`.
         164  +
    ///
         165  +
    /// To override the contents of this collection use [`set_parameters`](Self::set_parameters).
         166  +
    ///
         167  +
    /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
         168  +
    pub fn parameters(mut self, k: impl ::std::convert::Into<::std::string::String>, v: ::std::vec::Vec<::std::string::String>) -> Self {
         169  +
        self.inner = self.inner.parameters(k.into(), v);
         170  +
        self
         171  +
    }
         172  +
    /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
         173  +
    pub fn set_parameters(
         174  +
        mut self,
         175  +
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>>,
         176  +
    ) -> Self {
         177  +
        self.inner = self.inner.set_parameters(input);
         178  +
        self
         179  +
    }
         180  +
    /// <p>A key-value map of parameters that match the declared parameters in the change template document.</p>
         181  +
    pub fn get_parameters(
         182  +
        &self,
         183  +
    ) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::vec::Vec<::std::string::String>>> {
         184  +
        self.inner.get_parameters()
         185  +
    }
         186  +
    /// <p>The name of the change request associated with the runbook workflow to be run.</p>
         187  +
    pub fn change_request_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         188  +
        self.inner = self.inner.change_request_name(input.into());
         189  +
        self
         190  +
    }
         191  +
    /// <p>The name of the change request associated with the runbook workflow to be run.</p>
         192  +
    pub fn set_change_request_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         193  +
        self.inner = self.inner.set_change_request_name(input);
         194  +
        self
         195  +
    }
         196  +
    /// <p>The name of the change request associated with the runbook workflow to be run.</p>
         197  +
    pub fn get_change_request_name(&self) -> &::std::option::Option<::std::string::String> {
         198  +
        self.inner.get_change_request_name()
         199  +
    }
         200  +
    /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
         201  +
    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         202  +
        self.inner = self.inner.client_token(input.into());
         203  +
        self
         204  +
    }
         205  +
    /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
         206  +
    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         207  +
        self.inner = self.inner.set_client_token(input);
         208  +
        self
         209  +
    }
         210  +
    /// <p>The user-provided idempotency token. The token must be unique, is case insensitive, enforces the UUID format, and can't be reused.</p>
         211  +
    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
         212  +
        self.inner.get_client_token()
         213  +
    }
         214  +
    /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
         215  +
    /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
         216  +
    /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
         217  +
    /// </note>
         218  +
    pub fn auto_approve(mut self, input: bool) -> Self {
         219  +
        self.inner = self.inner.auto_approve(input);
         220  +
        self
         221  +
    }
         222  +
    /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
         223  +
    /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
         224  +
    /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
         225  +
    /// </note>
         226  +
    pub fn set_auto_approve(mut self, input: ::std::option::Option<bool>) -> Self {
         227  +
        self.inner = self.inner.set_auto_approve(input);
         228  +
        self
         229  +
    }
         230  +
    /// <p>Indicates whether the change request can be approved automatically without the need for manual approvals.</p>
         231  +
    /// <p>If <code>AutoApprovable</code> is enabled in a change template, then setting <code>AutoApprove</code> to <code>true</code> in <code>StartChangeRequestExecution</code> creates a change request that bypasses approver review.</p><note>
         232  +
    /// <p>Change Calendar restrictions are not bypassed in this scenario. If the state of an associated calendar is <code>CLOSED</code>, change freeze approvers must still grant permission for this change request to run. If they don't, the change won't be processed until the calendar state is again <code>OPEN</code>.</p>
         233  +
    /// </note>
         234  +
    pub fn get_auto_approve(&self) -> &::std::option::Option<bool> {
         235  +
        self.inner.get_auto_approve()
         236  +
    }
         237  +
    ///
         238  +
    /// Appends an item to `Runbooks`.
         239  +
    ///
         240  +
    /// To override the contents of this collection use [`set_runbooks`](Self::set_runbooks).
         241  +
    ///
         242  +
    /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
         243  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         244  +
    /// </note>
         245  +
    pub fn runbooks(mut self, input: crate::types::Runbook) -> Self {
         246  +
        self.inner = self.inner.runbooks(input);
         247  +
        self
         248  +
    }
         249  +
    /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
         250  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         251  +
    /// </note>
         252  +
    pub fn set_runbooks(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Runbook>>) -> Self {
         253  +
        self.inner = self.inner.set_runbooks(input);
         254  +
        self
         255  +
    }
         256  +
    /// <p>Information about the Automation runbooks that are run during the runbook workflow.</p><note>
         257  +
    /// <p>The Automation runbooks specified for the runbook workflow can't run until all required approvals for the change request have been received.</p>
         258  +
    /// </note>
         259  +
    pub fn get_runbooks(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Runbook>> {
         260  +
        self.inner.get_runbooks()
         261  +
    }
         262  +
    ///
         263  +
    /// Appends an item to `Tags`.
         264  +
    ///
         265  +
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
         266  +
    ///
         267  +
    /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
         268  +
    /// <ul>
         269  +
    /// <li>
         270  +
    /// <p><code>Key=Environment,Value=Production</code></p></li>
         271  +
    /// <li>
         272  +
    /// <p><code>Key=Region,Value=us-east-2</code></p></li>
         273  +
    /// </ul><note>
         274  +
    /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
         275  +
    /// </note>
         276  +
    pub fn tags(mut self, input: crate::types::Tag) -> Self {
         277  +
        self.inner = self.inner.tags(input);
         278  +
        self
         279  +
    }
         280  +
    /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
         281  +
    /// <ul>
         282  +
    /// <li>
         283  +
    /// <p><code>Key=Environment,Value=Production</code></p></li>
         284  +
    /// <li>
         285  +
    /// <p><code>Key=Region,Value=us-east-2</code></p></li>
         286  +
    /// </ul><note>
         287  +
    /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
         288  +
    /// </note>
         289  +
    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
         290  +
        self.inner = self.inner.set_tags(input);
         291  +
        self
         292  +
    }
         293  +
    /// <p>Optional metadata that you assign to a resource. You can specify a maximum of five tags for a change request. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a change request to identify an environment or target Amazon Web Services Region. In this case, you could specify the following key-value pairs:</p>
         294  +
    /// <ul>
         295  +
    /// <li>
         296  +
    /// <p><code>Key=Environment,Value=Production</code></p></li>
         297  +
    /// <li>
         298  +
    /// <p><code>Key=Region,Value=us-east-2</code></p></li>
         299  +
    /// </ul><note>
         300  +
    /// <p>The <code>Array Members</code> maximum value is reported as 1000. This number includes capacity reserved for internal operations. When calling the <code>StartChangeRequestExecution</code> action, you can specify a maximum of 5 tags. You can, however, use the <code>AddTagsToResource</code> action to add up to a total of 50 tags to an existing change request configuration.</p>
         301  +
    /// </note>
         302  +
    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
         303  +
        self.inner.get_tags()
         304  +
    }
         305  +
    /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
         306  +
    pub fn scheduled_end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
         307  +
        self.inner = self.inner.scheduled_end_time(input);
         308  +
        self
         309  +
    }
         310  +
    /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
         311  +
    pub fn set_scheduled_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
         312  +
        self.inner = self.inner.set_scheduled_end_time(input);
         313  +
        self
         314  +
    }
         315  +
    /// <p>The time that the requester expects the runbook workflow related to the change request to complete. The time is an estimate only that the requester provides for reviewers.</p>
         316  +
    pub fn get_scheduled_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
         317  +
        self.inner.get_scheduled_end_time()
         318  +
    }
         319  +
    /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
         320  +
    pub fn change_details(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         321  +
        self.inner = self.inner.change_details(input.into());
         322  +
        self
         323  +
    }
         324  +
    /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
         325  +
    pub fn set_change_details(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         326  +
        self.inner = self.inner.set_change_details(input);
         327  +
        self
         328  +
    }
         329  +
    /// <p>User-provided details about the change. If no details are provided, content specified in the <b>Template information</b> section of the associated change template is added.</p>
         330  +
    pub fn get_change_details(&self) -> &::std::option::Option<::std::string::String> {
         331  +
        self.inner.get_change_details()
         332  +
    }
         333  +
}