All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.cloudformation.model.ResourceChangeDetail Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS CloudFormation module holds the client classes that are used for communicating with AWS CloudFormation Service

There is a newer version: 2.29.39
Show newest version
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.cloudformation.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* For a resource with Modify as the action, the ResourceChange structure describes the * changes CloudFormation will make to that resource. *

*/ @Generated("software.amazon.awssdk:codegen") public final class ResourceChangeDetail implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField TARGET_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("Target") .getter(getter(ResourceChangeDetail::target)).setter(setter(Builder::target)) .constructor(ResourceTargetDefinition::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Target").build()).build(); private static final SdkField EVALUATION_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Evaluation").getter(getter(ResourceChangeDetail::evaluationAsString)) .setter(setter(Builder::evaluation)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Evaluation").build()).build(); private static final SdkField CHANGE_SOURCE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ChangeSource").getter(getter(ResourceChangeDetail::changeSourceAsString)) .setter(setter(Builder::changeSource)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ChangeSource").build()).build(); private static final SdkField CAUSING_ENTITY_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("CausingEntity").getter(getter(ResourceChangeDetail::causingEntity)) .setter(setter(Builder::causingEntity)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CausingEntity").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(TARGET_FIELD, EVALUATION_FIELD, CHANGE_SOURCE_FIELD, CAUSING_ENTITY_FIELD)); private static final Map> SDK_NAME_TO_FIELD = Collections .unmodifiableMap(new HashMap>() { { put("Target", TARGET_FIELD); put("Evaluation", EVALUATION_FIELD); put("ChangeSource", CHANGE_SOURCE_FIELD); put("CausingEntity", CAUSING_ENTITY_FIELD); } }); private static final long serialVersionUID = 1L; private final ResourceTargetDefinition target; private final String evaluation; private final String changeSource; private final String causingEntity; private ResourceChangeDetail(BuilderImpl builder) { this.target = builder.target; this.evaluation = builder.evaluation; this.changeSource = builder.changeSource; this.causingEntity = builder.causingEntity; } /** *

* A ResourceTargetDefinition structure that describes the field that CloudFormation will change and * whether the resource will be recreated. *

* * @return A ResourceTargetDefinition structure that describes the field that CloudFormation will * change and whether the resource will be recreated. */ public final ResourceTargetDefinition target() { return target; } /** *

* Indicates whether CloudFormation can determine the target value, and whether the target value will change before * you execute a change set. *

*

* For Static evaluations, CloudFormation can determine that the target value will change, and its * value. For example, if you directly modify the InstanceType property of an EC2 instance, * CloudFormation knows that this property value will change, and its value, so this is a Static * evaluation. *

*

* For Dynamic evaluations, can't determine the target value because it depends on the result of an * intrinsic function, such as a Ref or Fn::GetAtt intrinsic function, when the stack is * updated. For example, if your template includes a reference to a resource that's conditionally recreated, the * value of the reference (the physical ID of the resource) might change, depending on if the resource is recreated. * If the resource is recreated, it will have a new physical ID, so all references to that resource will also be * updated. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #evaluation} will * return {@link EvaluationType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #evaluationAsString}. *

* * @return Indicates whether CloudFormation can determine the target value, and whether the target value will change * before you execute a change set.

*

* For Static evaluations, CloudFormation can determine that the target value will change, and * its value. For example, if you directly modify the InstanceType property of an EC2 instance, * CloudFormation knows that this property value will change, and its value, so this is a * Static evaluation. *

*

* For Dynamic evaluations, can't determine the target value because it depends on the result * of an intrinsic function, such as a Ref or Fn::GetAtt intrinsic function, when * the stack is updated. For example, if your template includes a reference to a resource that's * conditionally recreated, the value of the reference (the physical ID of the resource) might change, * depending on if the resource is recreated. If the resource is recreated, it will have a new physical ID, * so all references to that resource will also be updated. * @see EvaluationType */ public final EvaluationType evaluation() { return EvaluationType.fromValue(evaluation); } /** *

* Indicates whether CloudFormation can determine the target value, and whether the target value will change before * you execute a change set. *

*

* For Static evaluations, CloudFormation can determine that the target value will change, and its * value. For example, if you directly modify the InstanceType property of an EC2 instance, * CloudFormation knows that this property value will change, and its value, so this is a Static * evaluation. *

*

* For Dynamic evaluations, can't determine the target value because it depends on the result of an * intrinsic function, such as a Ref or Fn::GetAtt intrinsic function, when the stack is * updated. For example, if your template includes a reference to a resource that's conditionally recreated, the * value of the reference (the physical ID of the resource) might change, depending on if the resource is recreated. * If the resource is recreated, it will have a new physical ID, so all references to that resource will also be * updated. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #evaluation} will * return {@link EvaluationType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #evaluationAsString}. *

* * @return Indicates whether CloudFormation can determine the target value, and whether the target value will change * before you execute a change set.

*

* For Static evaluations, CloudFormation can determine that the target value will change, and * its value. For example, if you directly modify the InstanceType property of an EC2 instance, * CloudFormation knows that this property value will change, and its value, so this is a * Static evaluation. *

*

* For Dynamic evaluations, can't determine the target value because it depends on the result * of an intrinsic function, such as a Ref or Fn::GetAtt intrinsic function, when * the stack is updated. For example, if your template includes a reference to a resource that's * conditionally recreated, the value of the reference (the physical ID of the resource) might change, * depending on if the resource is recreated. If the resource is recreated, it will have a new physical ID, * so all references to that resource will also be updated. * @see EvaluationType */ public final String evaluationAsString() { return evaluation; } /** *

* The group to which the CausingEntity value belongs. There are five entity groups: *

*
    *
  • *

    * ResourceReference entities are Ref intrinsic functions that refer to resources in the * template, such as { "Ref" : "MyEC2InstanceResource" }. *

    *
  • *
  • *

    * ParameterReference entities are Ref intrinsic functions that get template parameter * values, such as { "Ref" : "MyPasswordParameter" }. *

    *
  • *
  • *

    * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get resource * attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", "PublicDnsName" ] }. *

    *
  • *
  • *

    * DirectModification entities are changes that are made directly to the template. *

    *
  • *
  • *

    * Automatic entities are AWS::CloudFormation::Stack resource types, which are also known * as nested stacks. If you made no changes to the AWS::CloudFormation::Stack resource, CloudFormation * sets the ChangeSource to Automatic because the nested stack's template might have * changed. Changes to a nested stack's template aren't visible to CloudFormation until you run an update on the * parent stack. *

    *
  • *
*

* If the service returns an enum value that is not available in the current SDK version, {@link #changeSource} will * return {@link ChangeSource#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #changeSourceAsString}. *

* * @return The group to which the CausingEntity value belongs. There are five entity groups:

*
    *
  • *

    * ResourceReference entities are Ref intrinsic functions that refer to resources * in the template, such as { "Ref" : "MyEC2InstanceResource" }. *

    *
  • *
  • *

    * ParameterReference entities are Ref intrinsic functions that get template * parameter values, such as { "Ref" : "MyPasswordParameter" }. *

    *
  • *
  • *

    * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get resource * attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", "PublicDnsName" ] }. *

    *
  • *
  • *

    * DirectModification entities are changes that are made directly to the template. *

    *
  • *
  • *

    * Automatic entities are AWS::CloudFormation::Stack resource types, which are * also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack * resource, CloudFormation sets the ChangeSource to Automatic because the nested * stack's template might have changed. Changes to a nested stack's template aren't visible to * CloudFormation until you run an update on the parent stack. *

    *
  • * @see ChangeSource */ public final ChangeSource changeSource() { return ChangeSource.fromValue(changeSource); } /** *

    * The group to which the CausingEntity value belongs. There are five entity groups: *

    *
      *
    • *

      * ResourceReference entities are Ref intrinsic functions that refer to resources in the * template, such as { "Ref" : "MyEC2InstanceResource" }. *

      *
    • *
    • *

      * ParameterReference entities are Ref intrinsic functions that get template parameter * values, such as { "Ref" : "MyPasswordParameter" }. *

      *
    • *
    • *

      * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get resource * attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", "PublicDnsName" ] }. *

      *
    • *
    • *

      * DirectModification entities are changes that are made directly to the template. *

      *
    • *
    • *

      * Automatic entities are AWS::CloudFormation::Stack resource types, which are also known * as nested stacks. If you made no changes to the AWS::CloudFormation::Stack resource, CloudFormation * sets the ChangeSource to Automatic because the nested stack's template might have * changed. Changes to a nested stack's template aren't visible to CloudFormation until you run an update on the * parent stack. *

      *
    • *
    *

    * If the service returns an enum value that is not available in the current SDK version, {@link #changeSource} will * return {@link ChangeSource#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #changeSourceAsString}. *

    * * @return The group to which the CausingEntity value belongs. There are five entity groups:

    *
      *
    • *

      * ResourceReference entities are Ref intrinsic functions that refer to resources * in the template, such as { "Ref" : "MyEC2InstanceResource" }. *

      *
    • *
    • *

      * ParameterReference entities are Ref intrinsic functions that get template * parameter values, such as { "Ref" : "MyPasswordParameter" }. *

      *
    • *
    • *

      * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get resource * attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", "PublicDnsName" ] }. *

      *
    • *
    • *

      * DirectModification entities are changes that are made directly to the template. *

      *
    • *
    • *

      * Automatic entities are AWS::CloudFormation::Stack resource types, which are * also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack * resource, CloudFormation sets the ChangeSource to Automatic because the nested * stack's template might have changed. Changes to a nested stack's template aren't visible to * CloudFormation until you run an update on the parent stack. *

      *
    • * @see ChangeSource */ public final String changeSourceAsString() { return changeSource; } /** *

      * The identity of the entity that triggered this change. This entity is a member of the group that's specified by * the ChangeSource field. For example, if you modified the value of the KeyPairName * parameter, the CausingEntity is the name of the parameter (KeyPairName). *

      *

      * If the ChangeSource value is DirectModification, no value is given for * CausingEntity. *

      * * @return The identity of the entity that triggered this change. This entity is a member of the group that's * specified by the ChangeSource field. For example, if you modified the value of the * KeyPairName parameter, the CausingEntity is the name of the parameter ( * KeyPairName).

      *

      * If the ChangeSource value is DirectModification, no value is given for * CausingEntity. */ public final String causingEntity() { return causingEntity; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(target()); hashCode = 31 * hashCode + Objects.hashCode(evaluationAsString()); hashCode = 31 * hashCode + Objects.hashCode(changeSourceAsString()); hashCode = 31 * hashCode + Objects.hashCode(causingEntity()); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ResourceChangeDetail)) { return false; } ResourceChangeDetail other = (ResourceChangeDetail) obj; return Objects.equals(target(), other.target()) && Objects.equals(evaluationAsString(), other.evaluationAsString()) && Objects.equals(changeSourceAsString(), other.changeSourceAsString()) && Objects.equals(causingEntity(), other.causingEntity()); } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public final String toString() { return ToString.builder("ResourceChangeDetail").add("Target", target()).add("Evaluation", evaluationAsString()) .add("ChangeSource", changeSourceAsString()).add("CausingEntity", causingEntity()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "Target": return Optional.ofNullable(clazz.cast(target())); case "Evaluation": return Optional.ofNullable(clazz.cast(evaluationAsString())); case "ChangeSource": return Optional.ofNullable(clazz.cast(changeSourceAsString())); case "CausingEntity": return Optional.ofNullable(clazz.cast(causingEntity())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } @Override public final Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } private static Function getter(Function g) { return obj -> g.apply((ResourceChangeDetail) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

      * A ResourceTargetDefinition structure that describes the field that CloudFormation will change * and whether the resource will be recreated. *

      * * @param target * A ResourceTargetDefinition structure that describes the field that CloudFormation will * change and whether the resource will be recreated. * @return Returns a reference to this object so that method calls can be chained together. */ Builder target(ResourceTargetDefinition target); /** *

      * A ResourceTargetDefinition structure that describes the field that CloudFormation will change * and whether the resource will be recreated. *

      * This is a convenience method that creates an instance of the {@link ResourceTargetDefinition.Builder} * avoiding the need to create one manually via {@link ResourceTargetDefinition#builder()}. * *

      * When the {@link Consumer} completes, {@link ResourceTargetDefinition.Builder#build()} is called immediately * and its result is passed to {@link #target(ResourceTargetDefinition)}. * * @param target * a consumer that will call methods on {@link ResourceTargetDefinition.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #target(ResourceTargetDefinition) */ default Builder target(Consumer target) { return target(ResourceTargetDefinition.builder().applyMutation(target).build()); } /** *

      * Indicates whether CloudFormation can determine the target value, and whether the target value will change * before you execute a change set. *

      *

      * For Static evaluations, CloudFormation can determine that the target value will change, and its * value. For example, if you directly modify the InstanceType property of an EC2 instance, * CloudFormation knows that this property value will change, and its value, so this is a Static * evaluation. *

      *

      * For Dynamic evaluations, can't determine the target value because it depends on the result of an * intrinsic function, such as a Ref or Fn::GetAtt intrinsic function, when the stack * is updated. For example, if your template includes a reference to a resource that's conditionally recreated, * the value of the reference (the physical ID of the resource) might change, depending on if the resource is * recreated. If the resource is recreated, it will have a new physical ID, so all references to that resource * will also be updated. *

      * * @param evaluation * Indicates whether CloudFormation can determine the target value, and whether the target value will * change before you execute a change set.

      *

      * For Static evaluations, CloudFormation can determine that the target value will change, * and its value. For example, if you directly modify the InstanceType property of an EC2 * instance, CloudFormation knows that this property value will change, and its value, so this is a * Static evaluation. *

      *

      * For Dynamic evaluations, can't determine the target value because it depends on the * result of an intrinsic function, such as a Ref or Fn::GetAtt intrinsic * function, when the stack is updated. For example, if your template includes a reference to a resource * that's conditionally recreated, the value of the reference (the physical ID of the resource) might * change, depending on if the resource is recreated. If the resource is recreated, it will have a new * physical ID, so all references to that resource will also be updated. * @see EvaluationType * @return Returns a reference to this object so that method calls can be chained together. * @see EvaluationType */ Builder evaluation(String evaluation); /** *

      * Indicates whether CloudFormation can determine the target value, and whether the target value will change * before you execute a change set. *

      *

      * For Static evaluations, CloudFormation can determine that the target value will change, and its * value. For example, if you directly modify the InstanceType property of an EC2 instance, * CloudFormation knows that this property value will change, and its value, so this is a Static * evaluation. *

      *

      * For Dynamic evaluations, can't determine the target value because it depends on the result of an * intrinsic function, such as a Ref or Fn::GetAtt intrinsic function, when the stack * is updated. For example, if your template includes a reference to a resource that's conditionally recreated, * the value of the reference (the physical ID of the resource) might change, depending on if the resource is * recreated. If the resource is recreated, it will have a new physical ID, so all references to that resource * will also be updated. *

      * * @param evaluation * Indicates whether CloudFormation can determine the target value, and whether the target value will * change before you execute a change set.

      *

      * For Static evaluations, CloudFormation can determine that the target value will change, * and its value. For example, if you directly modify the InstanceType property of an EC2 * instance, CloudFormation knows that this property value will change, and its value, so this is a * Static evaluation. *

      *

      * For Dynamic evaluations, can't determine the target value because it depends on the * result of an intrinsic function, such as a Ref or Fn::GetAtt intrinsic * function, when the stack is updated. For example, if your template includes a reference to a resource * that's conditionally recreated, the value of the reference (the physical ID of the resource) might * change, depending on if the resource is recreated. If the resource is recreated, it will have a new * physical ID, so all references to that resource will also be updated. * @see EvaluationType * @return Returns a reference to this object so that method calls can be chained together. * @see EvaluationType */ Builder evaluation(EvaluationType evaluation); /** *

      * The group to which the CausingEntity value belongs. There are five entity groups: *

      *
        *
      • *

        * ResourceReference entities are Ref intrinsic functions that refer to resources in * the template, such as { "Ref" : "MyEC2InstanceResource" }. *

        *
      • *
      • *

        * ParameterReference entities are Ref intrinsic functions that get template parameter * values, such as { "Ref" : "MyPasswordParameter" }. *

        *
      • *
      • *

        * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get resource * attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", "PublicDnsName" ] }. *

        *
      • *
      • *

        * DirectModification entities are changes that are made directly to the template. *

        *
      • *
      • *

        * Automatic entities are AWS::CloudFormation::Stack resource types, which are also * known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack resource, * CloudFormation sets the ChangeSource to Automatic because the nested stack's * template might have changed. Changes to a nested stack's template aren't visible to CloudFormation until you * run an update on the parent stack. *

        *
      • *
      * * @param changeSource * The group to which the CausingEntity value belongs. There are five entity groups:

      *
        *
      • *

        * ResourceReference entities are Ref intrinsic functions that refer to * resources in the template, such as { "Ref" : "MyEC2InstanceResource" }. *

        *
      • *
      • *

        * ParameterReference entities are Ref intrinsic functions that get template * parameter values, such as { "Ref" : "MyPasswordParameter" }. *

        *
      • *
      • *

        * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get * resource attribute values, such as * { "Fn::GetAtt" : [ "MyEC2InstanceResource", "PublicDnsName" ] }. *

        *
      • *
      • *

        * DirectModification entities are changes that are made directly to the template. *

        *
      • *
      • *

        * Automatic entities are AWS::CloudFormation::Stack resource types, which are * also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack * resource, CloudFormation sets the ChangeSource to Automatic because the * nested stack's template might have changed. Changes to a nested stack's template aren't visible to * CloudFormation until you run an update on the parent stack. *

        *
      • * @see ChangeSource * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeSource */ Builder changeSource(String changeSource); /** *

        * The group to which the CausingEntity value belongs. There are five entity groups: *

        *
          *
        • *

          * ResourceReference entities are Ref intrinsic functions that refer to resources in * the template, such as { "Ref" : "MyEC2InstanceResource" }. *

          *
        • *
        • *

          * ParameterReference entities are Ref intrinsic functions that get template parameter * values, such as { "Ref" : "MyPasswordParameter" }. *

          *
        • *
        • *

          * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get resource * attribute values, such as { "Fn::GetAtt" : [ "MyEC2InstanceResource", "PublicDnsName" ] }. *

          *
        • *
        • *

          * DirectModification entities are changes that are made directly to the template. *

          *
        • *
        • *

          * Automatic entities are AWS::CloudFormation::Stack resource types, which are also * known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack resource, * CloudFormation sets the ChangeSource to Automatic because the nested stack's * template might have changed. Changes to a nested stack's template aren't visible to CloudFormation until you * run an update on the parent stack. *

          *
        • *
        * * @param changeSource * The group to which the CausingEntity value belongs. There are five entity groups:

        *
          *
        • *

          * ResourceReference entities are Ref intrinsic functions that refer to * resources in the template, such as { "Ref" : "MyEC2InstanceResource" }. *

          *
        • *
        • *

          * ParameterReference entities are Ref intrinsic functions that get template * parameter values, such as { "Ref" : "MyPasswordParameter" }. *

          *
        • *
        • *

          * ResourceAttribute entities are Fn::GetAtt intrinsic functions that get * resource attribute values, such as * { "Fn::GetAtt" : [ "MyEC2InstanceResource", "PublicDnsName" ] }. *

          *
        • *
        • *

          * DirectModification entities are changes that are made directly to the template. *

          *
        • *
        • *

          * Automatic entities are AWS::CloudFormation::Stack resource types, which are * also known as nested stacks. If you made no changes to the AWS::CloudFormation::Stack * resource, CloudFormation sets the ChangeSource to Automatic because the * nested stack's template might have changed. Changes to a nested stack's template aren't visible to * CloudFormation until you run an update on the parent stack. *

          *
        • * @see ChangeSource * @return Returns a reference to this object so that method calls can be chained together. * @see ChangeSource */ Builder changeSource(ChangeSource changeSource); /** *

          * The identity of the entity that triggered this change. This entity is a member of the group that's specified * by the ChangeSource field. For example, if you modified the value of the * KeyPairName parameter, the CausingEntity is the name of the parameter ( * KeyPairName). *

          *

          * If the ChangeSource value is DirectModification, no value is given for * CausingEntity. *

          * * @param causingEntity * The identity of the entity that triggered this change. This entity is a member of the group that's * specified by the ChangeSource field. For example, if you modified the value of the * KeyPairName parameter, the CausingEntity is the name of the parameter ( * KeyPairName).

          *

          * If the ChangeSource value is DirectModification, no value is given for * CausingEntity. * @return Returns a reference to this object so that method calls can be chained together. */ Builder causingEntity(String causingEntity); } static final class BuilderImpl implements Builder { private ResourceTargetDefinition target; private String evaluation; private String changeSource; private String causingEntity; private BuilderImpl() { } private BuilderImpl(ResourceChangeDetail model) { target(model.target); evaluation(model.evaluation); changeSource(model.changeSource); causingEntity(model.causingEntity); } public final ResourceTargetDefinition.Builder getTarget() { return target != null ? target.toBuilder() : null; } public final void setTarget(ResourceTargetDefinition.BuilderImpl target) { this.target = target != null ? target.build() : null; } @Override public final Builder target(ResourceTargetDefinition target) { this.target = target; return this; } public final String getEvaluation() { return evaluation; } public final void setEvaluation(String evaluation) { this.evaluation = evaluation; } @Override public final Builder evaluation(String evaluation) { this.evaluation = evaluation; return this; } @Override public final Builder evaluation(EvaluationType evaluation) { this.evaluation(evaluation == null ? null : evaluation.toString()); return this; } public final String getChangeSource() { return changeSource; } public final void setChangeSource(String changeSource) { this.changeSource = changeSource; } @Override public final Builder changeSource(String changeSource) { this.changeSource = changeSource; return this; } @Override public final Builder changeSource(ChangeSource changeSource) { this.changeSource(changeSource == null ? null : changeSource.toString()); return this; } public final String getCausingEntity() { return causingEntity; } public final void setCausingEntity(String causingEntity) { this.causingEntity = causingEntity; } @Override public final Builder causingEntity(String causingEntity) { this.causingEntity = causingEntity; return this; } @Override public ResourceChangeDetail build() { return new ResourceChangeDetail(this); } @Override public List> sdkFields() { return SDK_FIELDS; } @Override public Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy