software.amazon.awssdk.services.cloudformation.model.ResourceChangeDetail Maven / Gradle / Ivy
Show all versions of cloudformation Show documentation
/*
* Copyright 2014-2019 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.List;
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 AWS 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).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)
.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)
.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)
.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 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 AWS CloudFormation will change
* and whether the resource will be recreated.
*
*
* @return A ResourceTargetDefinition
structure that describes the field that AWS CloudFormation will
* change and whether the resource will be recreated.
*/
public ResourceTargetDefinition target() {
return target;
}
/**
*
* Indicates whether AWS CloudFormation can determine the target value, and whether the target value will change
* before you execute a change set.
*
*
* For Static
evaluations, AWS 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, AWS
* CloudFormation knows that this property value will change, and its value, so this is a Static
* evaluation.
*
*
* For Dynamic
evaluations, cannot 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 is 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 AWS CloudFormation can determine the target value, and whether the target value will
* change before you execute a change set.
*
* For Static
evaluations, AWS 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, AWS CloudFormation knows that this property value will change, and its value, so this is a
* Static
evaluation.
*
*
* For Dynamic
evaluations, cannot 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 is
* 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 EvaluationType evaluation() {
return EvaluationType.fromValue(evaluation);
}
/**
*
* Indicates whether AWS CloudFormation can determine the target value, and whether the target value will change
* before you execute a change set.
*
*
* For Static
evaluations, AWS 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, AWS
* CloudFormation knows that this property value will change, and its value, so this is a Static
* evaluation.
*
*
* For Dynamic
evaluations, cannot 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 is 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 AWS CloudFormation can determine the target value, and whether the target value will
* change before you execute a change set.
*
* For Static
evaluations, AWS 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, AWS CloudFormation knows that this property value will change, and its value, so this is a
* Static
evaluation.
*
*
* For Dynamic
evaluations, cannot 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 is
* 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 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, AWS
* 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 AWS 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, AWS 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 AWS
* CloudFormation until you run an update on the parent stack.
*
*
* @see ChangeSource
*/
public 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, AWS
* 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 AWS 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, AWS 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 AWS
* CloudFormation until you run an update on the parent stack.
*
*
* @see ChangeSource
*/
public String changeSourceAsString() {
return changeSource;
}
/**
*
* The identity of the entity that triggered this change. This entity is a member of the group that is 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 is
* 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 String causingEntity() {
return causingEntity;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public 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 boolean equals(Object obj) {
return equalsBySdkFields(obj);
}
@Override
public 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 String toString() {
return ToString.builder("ResourceChangeDetail").add("Target", target()).add("Evaluation", evaluationAsString())
.add("ChangeSource", changeSourceAsString()).add("CausingEntity", causingEntity()).build();
}
public 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 List> sdkFields() {
return SDK_FIELDS;
}
private static Function
*
* For Static
evaluations, AWS 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, AWS CloudFormation knows that this property value will change, and its value, so this
* is a Static
evaluation.
*
*
* For Dynamic
evaluations, cannot 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 is 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 AWS CloudFormation can determine the target value, and whether the target value will change
* before you execute a change set.
*
*
* For Static
evaluations, AWS 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, AWS
* CloudFormation knows that this property value will change, and its value, so this is a Static
* evaluation.
*
*
* For Dynamic
evaluations, cannot 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 is 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 AWS CloudFormation can determine the target value, and whether the target value will
* change before you execute a change set.
*
* For Static
evaluations, AWS 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, AWS CloudFormation knows that this property value will change, and its value, so this
* is a Static
evaluation.
*
*
* For Dynamic
evaluations, cannot 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 is 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, AWS
* 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 AWS 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, AWS 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 AWS
* 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, AWS
* 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 AWS 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, AWS 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 AWS
* 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 is 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 is
* 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;
}
@Override
public final Builder target(ResourceTargetDefinition target) {
this.target = target;
return this;
}
public final void setTarget(ResourceTargetDefinition.BuilderImpl target) {
this.target = target != null ? target.build() : null;
}
public final String getEvaluationAsString() {
return 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 void setEvaluation(String evaluation) {
this.evaluation = evaluation;
}
public final String getChangeSourceAsString() {
return 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 void setChangeSource(String changeSource) {
this.changeSource = changeSource;
}
public final String getCausingEntity() {
return causingEntity;
}
@Override
public final Builder causingEntity(String causingEntity) {
this.causingEntity = causingEntity;
return this;
}
public final void setCausingEntity(String causingEntity) {
this.causingEntity = causingEntity;
}
@Override
public ResourceChangeDetail build() {
return new ResourceChangeDetail(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}