1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The <code>ChangeSetSummary</code> structure describes a change set, its status, and the stack with which it's associated.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ChangeSetSummary {
/// <p>The ID of the stack with which the change set is associated.</p>
pub stack_id: ::std::option::Option<::std::string::String>,
/// <p>The name of the stack with which the change set is associated.</p>
pub stack_name: ::std::option::Option<::std::string::String>,
/// <p>The ID of the change set.</p>
pub change_set_id: ::std::option::Option<::std::string::String>,
/// <p>The name of the change set.</p>
pub change_set_name: ::std::option::Option<::std::string::String>,
/// <p>If the change set execution status is <code>AVAILABLE</code>, you can execute the change set. If you can't execute the change set, the status indicates why. For example, a change set might be in an <code>UNAVAILABLE</code> state because CloudFormation is still creating it or in an <code>OBSOLETE</code> state because the stack was already updated.</p>
pub execution_status: ::std::option::Option<crate::types::ExecutionStatus>,
/// <p>The state of the change set, such as <code>CREATE_IN_PROGRESS</code>, <code>CREATE_COMPLETE</code>, or <code>FAILED</code>.</p>
pub status: ::std::option::Option<crate::types::ChangeSetStatus>,
/// <p>A description of the change set's status. For example, if your change set is in the <code>FAILED</code> state, CloudFormation shows the error message.</p>
pub status_reason: ::std::option::Option<::std::string::String>,
/// <p>The start time when the change set was created, in UTC.</p>
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>Descriptive information about the change set.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>Specifies the current setting of <code>IncludeNestedStacks</code> for the change set.</p>
pub include_nested_stacks: ::std::option::Option<bool>,
/// <p>The parent change set ID.</p>
pub parent_change_set_id: ::std::option::Option<::std::string::String>,
/// <p>The root change set ID.</p>
pub root_change_set_id: ::std::option::Option<::std::string::String>,
/// <p>Indicates if the change set imports resources that already exist.</p>
pub import_existing_resources: ::std::option::Option<bool>,
}
impl ChangeSetSummary {
/// <p>The ID of the stack with which the change set is associated.</p>
pub fn stack_id(&self) -> ::std::option::Option<&str> {
self.stack_id.as_deref()
}
/// <p>The name of the stack with which the change set is associated.</p>
pub fn stack_name(&self) -> ::std::option::Option<&str> {
self.stack_name.as_deref()
}
/// <p>The ID of the change set.</p>
pub fn change_set_id(&self) -> ::std::option::Option<&str> {
self.change_set_id.as_deref()
}
/// <p>The name of the change set.</p>
pub fn change_set_name(&self) -> ::std::option::Option<&str> {
self.change_set_name.as_deref()
}
/// <p>If the change set execution status is <code>AVAILABLE</code>, you can execute the change set. If you can't execute the change set, the status indicates why. For example, a change set might be in an <code>UNAVAILABLE</code> state because CloudFormation is still creating it or in an <code>OBSOLETE</code> state because the stack was already updated.</p>
pub fn execution_status(&self) -> ::std::option::Option<&crate::types::ExecutionStatus> {
self.execution_status.as_ref()
}
/// <p>The state of the change set, such as <code>CREATE_IN_PROGRESS</code>, <code>CREATE_COMPLETE</code>, or <code>FAILED</code>.</p>
pub fn status(&self) -> ::std::option::Option<&crate::types::ChangeSetStatus> {
self.status.as_ref()
}
/// <p>A description of the change set's status. For example, if your change set is in the <code>FAILED</code> state, CloudFormation shows the error message.</p>
pub fn status_reason(&self) -> ::std::option::Option<&str> {
self.status_reason.as_deref()
}
/// <p>The start time when the change set was created, in UTC.</p>
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
/// <p>Descriptive information about the change set.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>Specifies the current setting of <code>IncludeNestedStacks</code> for the change set.</p>
pub fn include_nested_stacks(&self) -> ::std::option::Option<bool> {
self.include_nested_stacks
}
/// <p>The parent change set ID.</p>
pub fn parent_change_set_id(&self) -> ::std::option::Option<&str> {
self.parent_change_set_id.as_deref()
}
/// <p>The root change set ID.</p>
pub fn root_change_set_id(&self) -> ::std::option::Option<&str> {
self.root_change_set_id.as_deref()
}
/// <p>Indicates if the change set imports resources that already exist.</p>
pub fn import_existing_resources(&self) -> ::std::option::Option<bool> {
self.import_existing_resources
}
}
impl ChangeSetSummary {
/// Creates a new builder-style object to manufacture [`ChangeSetSummary`](crate::types::ChangeSetSummary).
pub fn builder() -> crate::types::builders::ChangeSetSummaryBuilder {
crate::types::builders::ChangeSetSummaryBuilder::default()
}
}
/// A builder for [`ChangeSetSummary`](crate::types::ChangeSetSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ChangeSetSummaryBuilder {
pub(crate) stack_id: ::std::option::Option<::std::string::String>,
pub(crate) stack_name: ::std::option::Option<::std::string::String>,
pub(crate) change_set_id: ::std::option::Option<::std::string::String>,
pub(crate) change_set_name: ::std::option::Option<::std::string::String>,
pub(crate) execution_status: ::std::option::Option<crate::types::ExecutionStatus>,
pub(crate) status: ::std::option::Option<crate::types::ChangeSetStatus>,
pub(crate) status_reason: ::std::option::Option<::std::string::String>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) include_nested_stacks: ::std::option::Option<bool>,
pub(crate) parent_change_set_id: ::std::option::Option<::std::string::String>,
pub(crate) root_change_set_id: ::std::option::Option<::std::string::String>,
pub(crate) import_existing_resources: ::std::option::Option<bool>,
}
impl ChangeSetSummaryBuilder {
/// <p>The ID of the stack with which the change set is associated.</p>
pub fn stack_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stack_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the stack with which the change set is associated.</p>
pub fn set_stack_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stack_id = input;
self
}
/// <p>The ID of the stack with which the change set is associated.</p>
pub fn get_stack_id(&self) -> &::std::option::Option<::std::string::String> {
&self.stack_id
}
/// <p>The name of the stack with which the change set is associated.</p>
pub fn stack_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.stack_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the stack with which the change set is associated.</p>
pub fn set_stack_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.stack_name = input;
self
}
/// <p>The name of the stack with which the change set is associated.</p>
pub fn get_stack_name(&self) -> &::std::option::Option<::std::string::String> {
&self.stack_name
}
/// <p>The ID of the change set.</p>
pub fn change_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.change_set_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the change set.</p>
pub fn set_change_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.change_set_id = input;
self
}
/// <p>The ID of the change set.</p>
pub fn get_change_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.change_set_id
}
/// <p>The name of the change set.</p>
pub fn change_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.change_set_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the change set.</p>
pub fn set_change_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.change_set_name = input;
self
}
/// <p>The name of the change set.</p>
pub fn get_change_set_name(&self) -> &::std::option::Option<::std::string::String> {
&self.change_set_name
}
/// <p>If the change set execution status is <code>AVAILABLE</code>, you can execute the change set. If you can't execute the change set, the status indicates why. For example, a change set might be in an <code>UNAVAILABLE</code> state because CloudFormation is still creating it or in an <code>OBSOLETE</code> state because the stack was already updated.</p>
pub fn execution_status(mut self, input: crate::types::ExecutionStatus) -> Self {
self.execution_status = ::std::option::Option::Some(input);
self
}
/// <p>If the change set execution status is <code>AVAILABLE</code>, you can execute the change set. If you can't execute the change set, the status indicates why. For example, a change set might be in an <code>UNAVAILABLE</code> state because CloudFormation is still creating it or in an <code>OBSOLETE</code> state because the stack was already updated.</p>
pub fn set_execution_status(mut self, input: ::std::option::Option<crate::types::ExecutionStatus>) -> Self {
self.execution_status = input;
self
}
/// <p>If the change set execution status is <code>AVAILABLE</code>, you can execute the change set. If you can't execute the change set, the status indicates why. For example, a change set might be in an <code>UNAVAILABLE</code> state because CloudFormation is still creating it or in an <code>OBSOLETE</code> state because the stack was already updated.</p>
pub fn get_execution_status(&self) -> &::std::option::Option<crate::types::ExecutionStatus> {
&self.execution_status
}
/// <p>The state of the change set, such as <code>CREATE_IN_PROGRESS</code>, <code>CREATE_COMPLETE</code>, or <code>FAILED</code>.</p>
pub fn status(mut self, input: crate::types::ChangeSetStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
/// <p>The state of the change set, such as <code>CREATE_IN_PROGRESS</code>, <code>CREATE_COMPLETE</code>, or <code>FAILED</code>.</p>
pub fn set_status(mut self, input: ::std::option::Option<crate::types::ChangeSetStatus>) -> Self {
self.status = input;
self
}
/// <p>The state of the change set, such as <code>CREATE_IN_PROGRESS</code>, <code>CREATE_COMPLETE</code>, or <code>FAILED</code>.</p>
pub fn get_status(&self) -> &::std::option::Option<crate::types::ChangeSetStatus> {
&self.status
}
/// <p>A description of the change set's status. For example, if your change set is in the <code>FAILED</code> state, CloudFormation shows the error message.</p>
pub fn status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status_reason = ::std::option::Option::Some(input.into());
self
}
/// <p>A description of the change set's status. For example, if your change set is in the <code>FAILED</code> state, CloudFormation shows the error message.</p>
pub fn set_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status_reason = input;
self
}
/// <p>A description of the change set's status. For example, if your change set is in the <code>FAILED</code> state, CloudFormation shows the error message.</p>
pub fn get_status_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.status_reason
}
/// <p>The start time when the change set was created, in UTC.</p>
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
/// <p>The start time when the change set was created, in UTC.</p>
pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time = input;
self
}
/// <p>The start time when the change set was created, in UTC.</p>
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
/// <p>Descriptive information about the change set.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>Descriptive information about the change set.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>Descriptive information about the change set.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>Specifies the current setting of <code>IncludeNestedStacks</code> for the change set.</p>
pub fn include_nested_stacks(mut self, input: bool) -> Self {
self.include_nested_stacks = ::std::option::Option::Some(input);
self
}
/// <p>Specifies the current setting of <code>IncludeNestedStacks</code> for the change set.</p>
pub fn set_include_nested_stacks(mut self, input: ::std::option::Option<bool>) -> Self {
self.include_nested_stacks = input;
self
}
/// <p>Specifies the current setting of <code>IncludeNestedStacks</code> for the change set.</p>
pub fn get_include_nested_stacks(&self) -> &::std::option::Option<bool> {
&self.include_nested_stacks
}
/// <p>The parent change set ID.</p>
pub fn parent_change_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.parent_change_set_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The parent change set ID.</p>
pub fn set_parent_change_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.parent_change_set_id = input;
self
}
/// <p>The parent change set ID.</p>
pub fn get_parent_change_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.parent_change_set_id
}
/// <p>The root change set ID.</p>
pub fn root_change_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.root_change_set_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The root change set ID.</p>
pub fn set_root_change_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.root_change_set_id = input;
self
}
/// <p>The root change set ID.</p>
pub fn get_root_change_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.root_change_set_id
}
/// <p>Indicates if the change set imports resources that already exist.</p>
pub fn import_existing_resources(mut self, input: bool) -> Self {
self.import_existing_resources = ::std::option::Option::Some(input);
self
}
/// <p>Indicates if the change set imports resources that already exist.</p>
pub fn set_import_existing_resources(mut self, input: ::std::option::Option<bool>) -> Self {
self.import_existing_resources = input;
self
}
/// <p>Indicates if the change set imports resources that already exist.</p>
pub fn get_import_existing_resources(&self) -> &::std::option::Option<bool> {
&self.import_existing_resources
}
/// Consumes the builder and constructs a [`ChangeSetSummary`](crate::types::ChangeSetSummary).
pub fn build(self) -> crate::types::ChangeSetSummary {
crate::types::ChangeSetSummary {
stack_id: self.stack_id,
stack_name: self.stack_name,
change_set_id: self.change_set_id,
change_set_name: self.change_set_name,
execution_status: self.execution_status,
status: self.status,
status_reason: self.status_reason,
creation_time: self.creation_time,
description: self.description,
include_nested_stacks: self.include_nested_stacks,
parent_change_set_id: self.parent_change_set_id,
root_change_set_id: self.root_change_set_id,
import_existing_resources: self.import_existing_resources,
}
}
}