1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The <code>ResourceChange</code> structure describes the resource and the action that CloudFormation will perform on it if you execute this change set.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ResourceChange {
/// <p>The action that will be taken on the physical resource when the change set is executed.</p>
/// <ul>
/// <li>
/// <p><code>Delete</code> The resource will be deleted.</p></li>
/// <li>
/// <p><code>Retain</code> The resource will be retained.</p></li>
/// <li>
/// <p><code>Snapshot</code> The resource will have a snapshot taken.</p></li>
/// <li>
/// <p><code>ReplaceAndDelete</code> The resource will be replaced and then deleted.</p></li>
/// <li>
/// <p><code>ReplaceAndRetain</code> The resource will be replaced and then retained.</p></li>
/// <li>
/// <p><code>ReplaceAndSnapshot</code> The resource will be replaced and then have a snapshot taken.</p></li>
/// </ul>
pub policy_action: ::std::option::Option<crate::types::PolicyAction>,
/// <p>The action that CloudFormation takes on the resource, such as <code>Add</code> (adds a new resource), <code>Modify</code> (changes a resource), <code>Remove</code> (deletes a resource), <code>Import</code> (imports a resource), or <code>Dynamic</code> (exact action for the resource can't be determined).</p>
pub action: ::std::option::Option<crate::types::ChangeAction>,
/// <p>The resource's logical ID, which is defined in the stack's template.</p>
pub logical_resource_id: ::std::option::Option<::std::string::String>,
/// <p>The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.</p>
pub physical_resource_id: ::std::option::Option<::std::string::String>,
/// <p>The type of CloudFormation resource, such as <code>AWS::S3::Bucket</code>.</p>
pub resource_type: ::std::option::Option<::std::string::String>,
/// <p>For the <code>Modify</code> action, indicates whether CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of the <code>RequiresRecreation</code> property in the <code>ResourceTargetDefinition</code> structure. For example, if the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Static</code>, <code>Replacement</code> is <code>True</code>. If the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Dynamic</code>, <code>Replacement</code> is <code>Conditionally</code>.</p>
/// <p>If you have multiple changes with different <code>RequiresRecreation</code> values, the <code>Replacement</code> value depends on the change with the most impact. A <code>RequiresRecreation</code> value of <code>Always</code> has the most impact, followed by <code>Conditionally</code>, and then <code>Never</code>.</p>
pub replacement: ::std::option::Option<crate::types::Replacement>,
/// <p>For the <code>Modify</code> action, indicates which resource attribute is triggering this update, such as a change in the resource attribute's <code>Metadata</code>, <code>Properties</code>, or <code>Tags</code>.</p>
pub scope: ::std::option::Option<::std::vec::Vec<crate::types::ResourceAttribute>>,
/// <p>For the <code>Modify</code> action, a list of <code>ResourceChangeDetail</code> structures that describes the changes that CloudFormation will make to the resource.</p>
pub details: ::std::option::Option<::std::vec::Vec<crate::types::ResourceChangeDetail>>,
/// <p>The change set ID of the nested change set.</p>
pub change_set_id: ::std::option::Option<::std::string::String>,
/// <p>Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.</p>
pub module_info: ::std::option::Option<crate::types::ModuleInfo>,
/// <p>An encoded JSON string containing the context of the resource before the change is executed.</p>
pub before_context: ::std::option::Option<::std::string::String>,
/// <p>An encoded JSON string containing the context of the resource after the change is executed.</p>
pub after_context: ::std::option::Option<::std::string::String>,
}
impl ResourceChange {
/// <p>The action that will be taken on the physical resource when the change set is executed.</p>
/// <ul>
/// <li>
/// <p><code>Delete</code> The resource will be deleted.</p></li>
/// <li>
/// <p><code>Retain</code> The resource will be retained.</p></li>
/// <li>
/// <p><code>Snapshot</code> The resource will have a snapshot taken.</p></li>
/// <li>
/// <p><code>ReplaceAndDelete</code> The resource will be replaced and then deleted.</p></li>
/// <li>
/// <p><code>ReplaceAndRetain</code> The resource will be replaced and then retained.</p></li>
/// <li>
/// <p><code>ReplaceAndSnapshot</code> The resource will be replaced and then have a snapshot taken.</p></li>
/// </ul>
pub fn policy_action(&self) -> ::std::option::Option<&crate::types::PolicyAction> {
self.policy_action.as_ref()
}
/// <p>The action that CloudFormation takes on the resource, such as <code>Add</code> (adds a new resource), <code>Modify</code> (changes a resource), <code>Remove</code> (deletes a resource), <code>Import</code> (imports a resource), or <code>Dynamic</code> (exact action for the resource can't be determined).</p>
pub fn action(&self) -> ::std::option::Option<&crate::types::ChangeAction> {
self.action.as_ref()
}
/// <p>The resource's logical ID, which is defined in the stack's template.</p>
pub fn logical_resource_id(&self) -> ::std::option::Option<&str> {
self.logical_resource_id.as_deref()
}
/// <p>The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.</p>
pub fn physical_resource_id(&self) -> ::std::option::Option<&str> {
self.physical_resource_id.as_deref()
}
/// <p>The type of CloudFormation resource, such as <code>AWS::S3::Bucket</code>.</p>
pub fn resource_type(&self) -> ::std::option::Option<&str> {
self.resource_type.as_deref()
}
/// <p>For the <code>Modify</code> action, indicates whether CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of the <code>RequiresRecreation</code> property in the <code>ResourceTargetDefinition</code> structure. For example, if the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Static</code>, <code>Replacement</code> is <code>True</code>. If the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Dynamic</code>, <code>Replacement</code> is <code>Conditionally</code>.</p>
/// <p>If you have multiple changes with different <code>RequiresRecreation</code> values, the <code>Replacement</code> value depends on the change with the most impact. A <code>RequiresRecreation</code> value of <code>Always</code> has the most impact, followed by <code>Conditionally</code>, and then <code>Never</code>.</p>
pub fn replacement(&self) -> ::std::option::Option<&crate::types::Replacement> {
self.replacement.as_ref()
}
/// <p>For the <code>Modify</code> action, indicates which resource attribute is triggering this update, such as a change in the resource attribute's <code>Metadata</code>, <code>Properties</code>, or <code>Tags</code>.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.scope.is_none()`.
pub fn scope(&self) -> &[crate::types::ResourceAttribute] {
self.scope.as_deref().unwrap_or_default()
}
/// <p>For the <code>Modify</code> action, a list of <code>ResourceChangeDetail</code> structures that describes the changes that CloudFormation will make to the resource.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.details.is_none()`.
pub fn details(&self) -> &[crate::types::ResourceChangeDetail] {
self.details.as_deref().unwrap_or_default()
}
/// <p>The change set ID of the nested change set.</p>
pub fn change_set_id(&self) -> ::std::option::Option<&str> {
self.change_set_id.as_deref()
}
/// <p>Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.</p>
pub fn module_info(&self) -> ::std::option::Option<&crate::types::ModuleInfo> {
self.module_info.as_ref()
}
/// <p>An encoded JSON string containing the context of the resource before the change is executed.</p>
pub fn before_context(&self) -> ::std::option::Option<&str> {
self.before_context.as_deref()
}
/// <p>An encoded JSON string containing the context of the resource after the change is executed.</p>
pub fn after_context(&self) -> ::std::option::Option<&str> {
self.after_context.as_deref()
}
}
impl ResourceChange {
/// Creates a new builder-style object to manufacture [`ResourceChange`](crate::types::ResourceChange).
pub fn builder() -> crate::types::builders::ResourceChangeBuilder {
crate::types::builders::ResourceChangeBuilder::default()
}
}
/// A builder for [`ResourceChange`](crate::types::ResourceChange).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ResourceChangeBuilder {
pub(crate) policy_action: ::std::option::Option<crate::types::PolicyAction>,
pub(crate) action: ::std::option::Option<crate::types::ChangeAction>,
pub(crate) logical_resource_id: ::std::option::Option<::std::string::String>,
pub(crate) physical_resource_id: ::std::option::Option<::std::string::String>,
pub(crate) resource_type: ::std::option::Option<::std::string::String>,
pub(crate) replacement: ::std::option::Option<crate::types::Replacement>,
pub(crate) scope: ::std::option::Option<::std::vec::Vec<crate::types::ResourceAttribute>>,
pub(crate) details: ::std::option::Option<::std::vec::Vec<crate::types::ResourceChangeDetail>>,
pub(crate) change_set_id: ::std::option::Option<::std::string::String>,
pub(crate) module_info: ::std::option::Option<crate::types::ModuleInfo>,
pub(crate) before_context: ::std::option::Option<::std::string::String>,
pub(crate) after_context: ::std::option::Option<::std::string::String>,
}
impl ResourceChangeBuilder {
/// <p>The action that will be taken on the physical resource when the change set is executed.</p>
/// <ul>
/// <li>
/// <p><code>Delete</code> The resource will be deleted.</p></li>
/// <li>
/// <p><code>Retain</code> The resource will be retained.</p></li>
/// <li>
/// <p><code>Snapshot</code> The resource will have a snapshot taken.</p></li>
/// <li>
/// <p><code>ReplaceAndDelete</code> The resource will be replaced and then deleted.</p></li>
/// <li>
/// <p><code>ReplaceAndRetain</code> The resource will be replaced and then retained.</p></li>
/// <li>
/// <p><code>ReplaceAndSnapshot</code> The resource will be replaced and then have a snapshot taken.</p></li>
/// </ul>
pub fn policy_action(mut self, input: crate::types::PolicyAction) -> Self {
self.policy_action = ::std::option::Option::Some(input);
self
}
/// <p>The action that will be taken on the physical resource when the change set is executed.</p>
/// <ul>
/// <li>
/// <p><code>Delete</code> The resource will be deleted.</p></li>
/// <li>
/// <p><code>Retain</code> The resource will be retained.</p></li>
/// <li>
/// <p><code>Snapshot</code> The resource will have a snapshot taken.</p></li>
/// <li>
/// <p><code>ReplaceAndDelete</code> The resource will be replaced and then deleted.</p></li>
/// <li>
/// <p><code>ReplaceAndRetain</code> The resource will be replaced and then retained.</p></li>
/// <li>
/// <p><code>ReplaceAndSnapshot</code> The resource will be replaced and then have a snapshot taken.</p></li>
/// </ul>
pub fn set_policy_action(mut self, input: ::std::option::Option<crate::types::PolicyAction>) -> Self {
self.policy_action = input;
self
}
/// <p>The action that will be taken on the physical resource when the change set is executed.</p>
/// <ul>
/// <li>
/// <p><code>Delete</code> The resource will be deleted.</p></li>
/// <li>
/// <p><code>Retain</code> The resource will be retained.</p></li>
/// <li>
/// <p><code>Snapshot</code> The resource will have a snapshot taken.</p></li>
/// <li>
/// <p><code>ReplaceAndDelete</code> The resource will be replaced and then deleted.</p></li>
/// <li>
/// <p><code>ReplaceAndRetain</code> The resource will be replaced and then retained.</p></li>
/// <li>
/// <p><code>ReplaceAndSnapshot</code> The resource will be replaced and then have a snapshot taken.</p></li>
/// </ul>
pub fn get_policy_action(&self) -> &::std::option::Option<crate::types::PolicyAction> {
&self.policy_action
}
/// <p>The action that CloudFormation takes on the resource, such as <code>Add</code> (adds a new resource), <code>Modify</code> (changes a resource), <code>Remove</code> (deletes a resource), <code>Import</code> (imports a resource), or <code>Dynamic</code> (exact action for the resource can't be determined).</p>
pub fn action(mut self, input: crate::types::ChangeAction) -> Self {
self.action = ::std::option::Option::Some(input);
self
}
/// <p>The action that CloudFormation takes on the resource, such as <code>Add</code> (adds a new resource), <code>Modify</code> (changes a resource), <code>Remove</code> (deletes a resource), <code>Import</code> (imports a resource), or <code>Dynamic</code> (exact action for the resource can't be determined).</p>
pub fn set_action(mut self, input: ::std::option::Option<crate::types::ChangeAction>) -> Self {
self.action = input;
self
}
/// <p>The action that CloudFormation takes on the resource, such as <code>Add</code> (adds a new resource), <code>Modify</code> (changes a resource), <code>Remove</code> (deletes a resource), <code>Import</code> (imports a resource), or <code>Dynamic</code> (exact action for the resource can't be determined).</p>
pub fn get_action(&self) -> &::std::option::Option<crate::types::ChangeAction> {
&self.action
}
/// <p>The resource's logical ID, which is defined in the stack's template.</p>
pub fn logical_resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.logical_resource_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The resource's logical ID, which is defined in the stack's template.</p>
pub fn set_logical_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.logical_resource_id = input;
self
}
/// <p>The resource's logical ID, which is defined in the stack's template.</p>
pub fn get_logical_resource_id(&self) -> &::std::option::Option<::std::string::String> {
&self.logical_resource_id
}
/// <p>The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.</p>
pub fn physical_resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.physical_resource_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.</p>
pub fn set_physical_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.physical_resource_id = input;
self
}
/// <p>The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.</p>
pub fn get_physical_resource_id(&self) -> &::std::option::Option<::std::string::String> {
&self.physical_resource_id
}
/// <p>The type of CloudFormation resource, such as <code>AWS::S3::Bucket</code>.</p>
pub fn resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The type of CloudFormation resource, such as <code>AWS::S3::Bucket</code>.</p>
pub fn set_resource_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resource_type = input;
self
}
/// <p>The type of CloudFormation resource, such as <code>AWS::S3::Bucket</code>.</p>
pub fn get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_type
}
/// <p>For the <code>Modify</code> action, indicates whether CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of the <code>RequiresRecreation</code> property in the <code>ResourceTargetDefinition</code> structure. For example, if the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Static</code>, <code>Replacement</code> is <code>True</code>. If the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Dynamic</code>, <code>Replacement</code> is <code>Conditionally</code>.</p>
/// <p>If you have multiple changes with different <code>RequiresRecreation</code> values, the <code>Replacement</code> value depends on the change with the most impact. A <code>RequiresRecreation</code> value of <code>Always</code> has the most impact, followed by <code>Conditionally</code>, and then <code>Never</code>.</p>
pub fn replacement(mut self, input: crate::types::Replacement) -> Self {
self.replacement = ::std::option::Option::Some(input);
self
}
/// <p>For the <code>Modify</code> action, indicates whether CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of the <code>RequiresRecreation</code> property in the <code>ResourceTargetDefinition</code> structure. For example, if the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Static</code>, <code>Replacement</code> is <code>True</code>. If the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Dynamic</code>, <code>Replacement</code> is <code>Conditionally</code>.</p>
/// <p>If you have multiple changes with different <code>RequiresRecreation</code> values, the <code>Replacement</code> value depends on the change with the most impact. A <code>RequiresRecreation</code> value of <code>Always</code> has the most impact, followed by <code>Conditionally</code>, and then <code>Never</code>.</p>
pub fn set_replacement(mut self, input: ::std::option::Option<crate::types::Replacement>) -> Self {
self.replacement = input;
self
}
/// <p>For the <code>Modify</code> action, indicates whether CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of the <code>RequiresRecreation</code> property in the <code>ResourceTargetDefinition</code> structure. For example, if the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Static</code>, <code>Replacement</code> is <code>True</code>. If the <code>RequiresRecreation</code> field is <code>Always</code> and the <code>Evaluation</code> field is <code>Dynamic</code>, <code>Replacement</code> is <code>Conditionally</code>.</p>
/// <p>If you have multiple changes with different <code>RequiresRecreation</code> values, the <code>Replacement</code> value depends on the change with the most impact. A <code>RequiresRecreation</code> value of <code>Always</code> has the most impact, followed by <code>Conditionally</code>, and then <code>Never</code>.</p>
pub fn get_replacement(&self) -> &::std::option::Option<crate::types::Replacement> {
&self.replacement
}
/// Appends an item to `scope`.
///
/// To override the contents of this collection use [`set_scope`](Self::set_scope).
///
/// <p>For the <code>Modify</code> action, indicates which resource attribute is triggering this update, such as a change in the resource attribute's <code>Metadata</code>, <code>Properties</code>, or <code>Tags</code>.</p>
pub fn scope(mut self, input: crate::types::ResourceAttribute) -> Self {
let mut v = self.scope.unwrap_or_default();
v.push(input);
self.scope = ::std::option::Option::Some(v);
self
}
/// <p>For the <code>Modify</code> action, indicates which resource attribute is triggering this update, such as a change in the resource attribute's <code>Metadata</code>, <code>Properties</code>, or <code>Tags</code>.</p>
pub fn set_scope(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ResourceAttribute>>) -> Self {
self.scope = input;
self
}
/// <p>For the <code>Modify</code> action, indicates which resource attribute is triggering this update, such as a change in the resource attribute's <code>Metadata</code>, <code>Properties</code>, or <code>Tags</code>.</p>
pub fn get_scope(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ResourceAttribute>> {
&self.scope
}
/// Appends an item to `details`.
///
/// To override the contents of this collection use [`set_details`](Self::set_details).
///
/// <p>For the <code>Modify</code> action, a list of <code>ResourceChangeDetail</code> structures that describes the changes that CloudFormation will make to the resource.</p>
pub fn details(mut self, input: crate::types::ResourceChangeDetail) -> Self {
let mut v = self.details.unwrap_or_default();
v.push(input);
self.details = ::std::option::Option::Some(v);
self
}
/// <p>For the <code>Modify</code> action, a list of <code>ResourceChangeDetail</code> structures that describes the changes that CloudFormation will make to the resource.</p>
pub fn set_details(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ResourceChangeDetail>>) -> Self {
self.details = input;
self
}
/// <p>For the <code>Modify</code> action, a list of <code>ResourceChangeDetail</code> structures that describes the changes that CloudFormation will make to the resource.</p>
pub fn get_details(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ResourceChangeDetail>> {
&self.details
}
/// <p>The change set ID of the nested 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 change set ID of the nested 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 change set ID of the nested change set.</p>
pub fn get_change_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.change_set_id
}
/// <p>Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.</p>
pub fn module_info(mut self, input: crate::types::ModuleInfo) -> Self {
self.module_info = ::std::option::Option::Some(input);
self
}
/// <p>Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.</p>
pub fn set_module_info(mut self, input: ::std::option::Option<crate::types::ModuleInfo>) -> Self {
self.module_info = input;
self
}
/// <p>Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.</p>
pub fn get_module_info(&self) -> &::std::option::Option<crate::types::ModuleInfo> {
&self.module_info
}
/// <p>An encoded JSON string containing the context of the resource before the change is executed.</p>
pub fn before_context(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.before_context = ::std::option::Option::Some(input.into());
self
}
/// <p>An encoded JSON string containing the context of the resource before the change is executed.</p>
pub fn set_before_context(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.before_context = input;
self
}
/// <p>An encoded JSON string containing the context of the resource before the change is executed.</p>
pub fn get_before_context(&self) -> &::std::option::Option<::std::string::String> {
&self.before_context
}
/// <p>An encoded JSON string containing the context of the resource after the change is executed.</p>
pub fn after_context(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.after_context = ::std::option::Option::Some(input.into());
self
}
/// <p>An encoded JSON string containing the context of the resource after the change is executed.</p>
pub fn set_after_context(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.after_context = input;
self
}
/// <p>An encoded JSON string containing the context of the resource after the change is executed.</p>
pub fn get_after_context(&self) -> &::std::option::Option<::std::string::String> {
&self.after_context
}
/// Consumes the builder and constructs a [`ResourceChange`](crate::types::ResourceChange).
pub fn build(self) -> crate::types::ResourceChange {
crate::types::ResourceChange {
policy_action: self.policy_action,
action: self.action,
logical_resource_id: self.logical_resource_id,
physical_resource_id: self.physical_resource_id,
resource_type: self.resource_type,
replacement: self.replacement,
scope: self.scope,
details: self.details,
change_set_id: self.change_set_id,
module_info: self.module_info,
before_context: self.before_context,
after_context: self.after_context,
}
}
}