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

software.amazon.awssdk.services.cloudformation.model.StackResourceDetail 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.time.Instant;
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;

/**
 * 

* Contains detailed information about the specified stack resource. *

*/ @Generated("software.amazon.awssdk:codegen") public final class StackResourceDetail implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField STACK_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("StackName").getter(getter(StackResourceDetail::stackName)).setter(setter(Builder::stackName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StackName").build()).build(); private static final SdkField STACK_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("StackId").getter(getter(StackResourceDetail::stackId)).setter(setter(Builder::stackId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StackId").build()).build(); private static final SdkField LOGICAL_RESOURCE_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("LogicalResourceId").getter(getter(StackResourceDetail::logicalResourceId)) .setter(setter(Builder::logicalResourceId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LogicalResourceId").build()).build(); private static final SdkField PHYSICAL_RESOURCE_ID_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("PhysicalResourceId").getter(getter(StackResourceDetail::physicalResourceId)) .setter(setter(Builder::physicalResourceId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PhysicalResourceId").build()) .build(); private static final SdkField RESOURCE_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ResourceType").getter(getter(StackResourceDetail::resourceType)).setter(setter(Builder::resourceType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ResourceType").build()).build(); private static final SdkField LAST_UPDATED_TIMESTAMP_FIELD = SdkField. builder(MarshallingType.INSTANT) .memberName("LastUpdatedTimestamp").getter(getter(StackResourceDetail::lastUpdatedTimestamp)) .setter(setter(Builder::lastUpdatedTimestamp)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LastUpdatedTimestamp").build()) .build(); private static final SdkField RESOURCE_STATUS_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ResourceStatus").getter(getter(StackResourceDetail::resourceStatusAsString)) .setter(setter(Builder::resourceStatus)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ResourceStatus").build()).build(); private static final SdkField RESOURCE_STATUS_REASON_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ResourceStatusReason").getter(getter(StackResourceDetail::resourceStatusReason)) .setter(setter(Builder::resourceStatusReason)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ResourceStatusReason").build()) .build(); private static final SdkField DESCRIPTION_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Description").getter(getter(StackResourceDetail::description)).setter(setter(Builder::description)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Description").build()).build(); private static final SdkField METADATA_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Metadata").getter(getter(StackResourceDetail::metadata)).setter(setter(Builder::metadata)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Metadata").build()).build(); private static final SdkField DRIFT_INFORMATION_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("DriftInformation") .getter(getter(StackResourceDetail::driftInformation)).setter(setter(Builder::driftInformation)) .constructor(StackResourceDriftInformation::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DriftInformation").build()).build(); private static final SdkField MODULE_INFO_FIELD = SdkField. builder(MarshallingType.SDK_POJO) .memberName("ModuleInfo").getter(getter(StackResourceDetail::moduleInfo)).setter(setter(Builder::moduleInfo)) .constructor(ModuleInfo::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ModuleInfo").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(STACK_NAME_FIELD, STACK_ID_FIELD, LOGICAL_RESOURCE_ID_FIELD, PHYSICAL_RESOURCE_ID_FIELD, RESOURCE_TYPE_FIELD, LAST_UPDATED_TIMESTAMP_FIELD, RESOURCE_STATUS_FIELD, RESOURCE_STATUS_REASON_FIELD, DESCRIPTION_FIELD, METADATA_FIELD, DRIFT_INFORMATION_FIELD, MODULE_INFO_FIELD)); private static final Map> SDK_NAME_TO_FIELD = Collections .unmodifiableMap(new HashMap>() { { put("StackName", STACK_NAME_FIELD); put("StackId", STACK_ID_FIELD); put("LogicalResourceId", LOGICAL_RESOURCE_ID_FIELD); put("PhysicalResourceId", PHYSICAL_RESOURCE_ID_FIELD); put("ResourceType", RESOURCE_TYPE_FIELD); put("LastUpdatedTimestamp", LAST_UPDATED_TIMESTAMP_FIELD); put("ResourceStatus", RESOURCE_STATUS_FIELD); put("ResourceStatusReason", RESOURCE_STATUS_REASON_FIELD); put("Description", DESCRIPTION_FIELD); put("Metadata", METADATA_FIELD); put("DriftInformation", DRIFT_INFORMATION_FIELD); put("ModuleInfo", MODULE_INFO_FIELD); } }); private static final long serialVersionUID = 1L; private final String stackName; private final String stackId; private final String logicalResourceId; private final String physicalResourceId; private final String resourceType; private final Instant lastUpdatedTimestamp; private final String resourceStatus; private final String resourceStatusReason; private final String description; private final String metadata; private final StackResourceDriftInformation driftInformation; private final ModuleInfo moduleInfo; private StackResourceDetail(BuilderImpl builder) { this.stackName = builder.stackName; this.stackId = builder.stackId; this.logicalResourceId = builder.logicalResourceId; this.physicalResourceId = builder.physicalResourceId; this.resourceType = builder.resourceType; this.lastUpdatedTimestamp = builder.lastUpdatedTimestamp; this.resourceStatus = builder.resourceStatus; this.resourceStatusReason = builder.resourceStatusReason; this.description = builder.description; this.metadata = builder.metadata; this.driftInformation = builder.driftInformation; this.moduleInfo = builder.moduleInfo; } /** *

* The name associated with the stack. *

* * @return The name associated with the stack. */ public final String stackName() { return stackName; } /** *

* Unique identifier of the stack. *

* * @return Unique identifier of the stack. */ public final String stackId() { return stackId; } /** *

* The logical name of the resource specified in the template. *

* * @return The logical name of the resource specified in the template. */ public final String logicalResourceId() { return logicalResourceId; } /** *

* The name or unique identifier that corresponds to a physical instance ID of a resource supported by * CloudFormation. *

* * @return The name or unique identifier that corresponds to a physical instance ID of a resource supported by * CloudFormation. */ public final String physicalResourceId() { return physicalResourceId; } /** *

* Type of resource. For more information, see Amazon * Web Services resource and property types reference in the CloudFormation User Guide. *

* * @return Type of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide. */ public final String resourceType() { return resourceType; } /** *

* Time the status was updated. *

* * @return Time the status was updated. */ public final Instant lastUpdatedTimestamp() { return lastUpdatedTimestamp; } /** *

* Current status of the resource. *

*

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

* * @return Current status of the resource. * @see ResourceStatus */ public final ResourceStatus resourceStatus() { return ResourceStatus.fromValue(resourceStatus); } /** *

* Current status of the resource. *

*

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

* * @return Current status of the resource. * @see ResourceStatus */ public final String resourceStatusAsString() { return resourceStatus; } /** *

* Success/failure message associated with the resource. *

* * @return Success/failure message associated with the resource. */ public final String resourceStatusReason() { return resourceStatusReason; } /** *

* User defined description associated with the resource. *

* * @return User defined description associated with the resource. */ public final String description() { return description; } /** *

* The content of the Metadata attribute declared for the resource. For more information, see Metadata * attribute in the CloudFormation User Guide. *

* * @return The content of the Metadata attribute declared for the resource. For more information, see * * Metadata attribute in the CloudFormation User Guide. */ public final String metadata() { return metadata; } /** *

* Information about whether the resource's actual configuration differs, or has drifted, from its expected * configuration, as defined in the stack template and any values specified as template parameters. For more * information, see Detect unmanaged * configuration changes to stacks and resources with drift detection. *

* * @return Information about whether the resource's actual configuration differs, or has drifted, from its * expected configuration, as defined in the stack template and any values specified as template parameters. * For more information, see Detect * unmanaged configuration changes to stacks and resources with drift detection. */ public final StackResourceDriftInformation driftInformation() { return driftInformation; } /** *

* Contains information about the module from which the resource was created, if the resource was created from a * module included in the stack template. *

* * @return Contains information about the module from which the resource was created, if the resource was created * from a module included in the stack template. */ public final ModuleInfo moduleInfo() { return moduleInfo; } @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(stackName()); hashCode = 31 * hashCode + Objects.hashCode(stackId()); hashCode = 31 * hashCode + Objects.hashCode(logicalResourceId()); hashCode = 31 * hashCode + Objects.hashCode(physicalResourceId()); hashCode = 31 * hashCode + Objects.hashCode(resourceType()); hashCode = 31 * hashCode + Objects.hashCode(lastUpdatedTimestamp()); hashCode = 31 * hashCode + Objects.hashCode(resourceStatusAsString()); hashCode = 31 * hashCode + Objects.hashCode(resourceStatusReason()); hashCode = 31 * hashCode + Objects.hashCode(description()); hashCode = 31 * hashCode + Objects.hashCode(metadata()); hashCode = 31 * hashCode + Objects.hashCode(driftInformation()); hashCode = 31 * hashCode + Objects.hashCode(moduleInfo()); 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 StackResourceDetail)) { return false; } StackResourceDetail other = (StackResourceDetail) obj; return Objects.equals(stackName(), other.stackName()) && Objects.equals(stackId(), other.stackId()) && Objects.equals(logicalResourceId(), other.logicalResourceId()) && Objects.equals(physicalResourceId(), other.physicalResourceId()) && Objects.equals(resourceType(), other.resourceType()) && Objects.equals(lastUpdatedTimestamp(), other.lastUpdatedTimestamp()) && Objects.equals(resourceStatusAsString(), other.resourceStatusAsString()) && Objects.equals(resourceStatusReason(), other.resourceStatusReason()) && Objects.equals(description(), other.description()) && Objects.equals(metadata(), other.metadata()) && Objects.equals(driftInformation(), other.driftInformation()) && Objects.equals(moduleInfo(), other.moduleInfo()); } /** * 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("StackResourceDetail").add("StackName", stackName()).add("StackId", stackId()) .add("LogicalResourceId", logicalResourceId()).add("PhysicalResourceId", physicalResourceId()) .add("ResourceType", resourceType()).add("LastUpdatedTimestamp", lastUpdatedTimestamp()) .add("ResourceStatus", resourceStatusAsString()).add("ResourceStatusReason", resourceStatusReason()) .add("Description", description()).add("Metadata", metadata()).add("DriftInformation", driftInformation()) .add("ModuleInfo", moduleInfo()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "StackName": return Optional.ofNullable(clazz.cast(stackName())); case "StackId": return Optional.ofNullable(clazz.cast(stackId())); case "LogicalResourceId": return Optional.ofNullable(clazz.cast(logicalResourceId())); case "PhysicalResourceId": return Optional.ofNullable(clazz.cast(physicalResourceId())); case "ResourceType": return Optional.ofNullable(clazz.cast(resourceType())); case "LastUpdatedTimestamp": return Optional.ofNullable(clazz.cast(lastUpdatedTimestamp())); case "ResourceStatus": return Optional.ofNullable(clazz.cast(resourceStatusAsString())); case "ResourceStatusReason": return Optional.ofNullable(clazz.cast(resourceStatusReason())); case "Description": return Optional.ofNullable(clazz.cast(description())); case "Metadata": return Optional.ofNullable(clazz.cast(metadata())); case "DriftInformation": return Optional.ofNullable(clazz.cast(driftInformation())); case "ModuleInfo": return Optional.ofNullable(clazz.cast(moduleInfo())); 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((StackResourceDetail) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* The name associated with the stack. *

* * @param stackName * The name associated with the stack. * @return Returns a reference to this object so that method calls can be chained together. */ Builder stackName(String stackName); /** *

* Unique identifier of the stack. *

* * @param stackId * Unique identifier of the stack. * @return Returns a reference to this object so that method calls can be chained together. */ Builder stackId(String stackId); /** *

* The logical name of the resource specified in the template. *

* * @param logicalResourceId * The logical name of the resource specified in the template. * @return Returns a reference to this object so that method calls can be chained together. */ Builder logicalResourceId(String logicalResourceId); /** *

* The name or unique identifier that corresponds to a physical instance ID of a resource supported by * CloudFormation. *

* * @param physicalResourceId * The name or unique identifier that corresponds to a physical instance ID of a resource supported by * CloudFormation. * @return Returns a reference to this object so that method calls can be chained together. */ Builder physicalResourceId(String physicalResourceId); /** *

* Type of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User Guide. *

* * @param resourceType * Type of resource. For more information, see Amazon Web Services resource and property types reference in the CloudFormation User * Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder resourceType(String resourceType); /** *

* Time the status was updated. *

* * @param lastUpdatedTimestamp * Time the status was updated. * @return Returns a reference to this object so that method calls can be chained together. */ Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp); /** *

* Current status of the resource. *

* * @param resourceStatus * Current status of the resource. * @see ResourceStatus * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceStatus */ Builder resourceStatus(String resourceStatus); /** *

* Current status of the resource. *

* * @param resourceStatus * Current status of the resource. * @see ResourceStatus * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceStatus */ Builder resourceStatus(ResourceStatus resourceStatus); /** *

* Success/failure message associated with the resource. *

* * @param resourceStatusReason * Success/failure message associated with the resource. * @return Returns a reference to this object so that method calls can be chained together. */ Builder resourceStatusReason(String resourceStatusReason); /** *

* User defined description associated with the resource. *

* * @param description * User defined description associated with the resource. * @return Returns a reference to this object so that method calls can be chained together. */ Builder description(String description); /** *

* The content of the Metadata attribute declared for the resource. For more information, see Metadata * attribute in the CloudFormation User Guide. *

* * @param metadata * The content of the Metadata attribute declared for the resource. For more information, * see Metadata attribute in the CloudFormation User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder metadata(String metadata); /** *

* Information about whether the resource's actual configuration differs, or has drifted, from its * expected configuration, as defined in the stack template and any values specified as template parameters. For * more information, see Detect * unmanaged configuration changes to stacks and resources with drift detection. *

* * @param driftInformation * Information about whether the resource's actual configuration differs, or has drifted, from its * expected configuration, as defined in the stack template and any values specified as template * parameters. For more information, see Detect unmanaged configuration changes to stacks and resources with drift detection. * @return Returns a reference to this object so that method calls can be chained together. */ Builder driftInformation(StackResourceDriftInformation driftInformation); /** *

* Information about whether the resource's actual configuration differs, or has drifted, from its * expected configuration, as defined in the stack template and any values specified as template parameters. For * more information, see Detect * unmanaged configuration changes to stacks and resources with drift detection. *

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

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

* Contains information about the module from which the resource was created, if the resource was created from a * module included in the stack template. *

* * @param moduleInfo * Contains information about the module from which the resource was created, if the resource was created * from a module included in the stack template. * @return Returns a reference to this object so that method calls can be chained together. */ Builder moduleInfo(ModuleInfo moduleInfo); /** *

* Contains information about the module from which the resource was created, if the resource was created from a * module included in the stack template. *

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

* When the {@link Consumer} completes, {@link ModuleInfo.Builder#build()} is called immediately and its result * is passed to {@link #moduleInfo(ModuleInfo)}. * * @param moduleInfo * a consumer that will call methods on {@link ModuleInfo.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #moduleInfo(ModuleInfo) */ default Builder moduleInfo(Consumer moduleInfo) { return moduleInfo(ModuleInfo.builder().applyMutation(moduleInfo).build()); } } static final class BuilderImpl implements Builder { private String stackName; private String stackId; private String logicalResourceId; private String physicalResourceId; private String resourceType; private Instant lastUpdatedTimestamp; private String resourceStatus; private String resourceStatusReason; private String description; private String metadata; private StackResourceDriftInformation driftInformation; private ModuleInfo moduleInfo; private BuilderImpl() { } private BuilderImpl(StackResourceDetail model) { stackName(model.stackName); stackId(model.stackId); logicalResourceId(model.logicalResourceId); physicalResourceId(model.physicalResourceId); resourceType(model.resourceType); lastUpdatedTimestamp(model.lastUpdatedTimestamp); resourceStatus(model.resourceStatus); resourceStatusReason(model.resourceStatusReason); description(model.description); metadata(model.metadata); driftInformation(model.driftInformation); moduleInfo(model.moduleInfo); } public final String getStackName() { return stackName; } public final void setStackName(String stackName) { this.stackName = stackName; } @Override public final Builder stackName(String stackName) { this.stackName = stackName; return this; } public final String getStackId() { return stackId; } public final void setStackId(String stackId) { this.stackId = stackId; } @Override public final Builder stackId(String stackId) { this.stackId = stackId; return this; } public final String getLogicalResourceId() { return logicalResourceId; } public final void setLogicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; } @Override public final Builder logicalResourceId(String logicalResourceId) { this.logicalResourceId = logicalResourceId; return this; } public final String getPhysicalResourceId() { return physicalResourceId; } public final void setPhysicalResourceId(String physicalResourceId) { this.physicalResourceId = physicalResourceId; } @Override public final Builder physicalResourceId(String physicalResourceId) { this.physicalResourceId = physicalResourceId; return this; } public final String getResourceType() { return resourceType; } public final void setResourceType(String resourceType) { this.resourceType = resourceType; } @Override public final Builder resourceType(String resourceType) { this.resourceType = resourceType; return this; } public final Instant getLastUpdatedTimestamp() { return lastUpdatedTimestamp; } public final void setLastUpdatedTimestamp(Instant lastUpdatedTimestamp) { this.lastUpdatedTimestamp = lastUpdatedTimestamp; } @Override public final Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp) { this.lastUpdatedTimestamp = lastUpdatedTimestamp; return this; } public final String getResourceStatus() { return resourceStatus; } public final void setResourceStatus(String resourceStatus) { this.resourceStatus = resourceStatus; } @Override public final Builder resourceStatus(String resourceStatus) { this.resourceStatus = resourceStatus; return this; } @Override public final Builder resourceStatus(ResourceStatus resourceStatus) { this.resourceStatus(resourceStatus == null ? null : resourceStatus.toString()); return this; } public final String getResourceStatusReason() { return resourceStatusReason; } public final void setResourceStatusReason(String resourceStatusReason) { this.resourceStatusReason = resourceStatusReason; } @Override public final Builder resourceStatusReason(String resourceStatusReason) { this.resourceStatusReason = resourceStatusReason; return this; } public final String getDescription() { return description; } public final void setDescription(String description) { this.description = description; } @Override public final Builder description(String description) { this.description = description; return this; } public final String getMetadata() { return metadata; } public final void setMetadata(String metadata) { this.metadata = metadata; } @Override public final Builder metadata(String metadata) { this.metadata = metadata; return this; } public final StackResourceDriftInformation.Builder getDriftInformation() { return driftInformation != null ? driftInformation.toBuilder() : null; } public final void setDriftInformation(StackResourceDriftInformation.BuilderImpl driftInformation) { this.driftInformation = driftInformation != null ? driftInformation.build() : null; } @Override public final Builder driftInformation(StackResourceDriftInformation driftInformation) { this.driftInformation = driftInformation; return this; } public final ModuleInfo.Builder getModuleInfo() { return moduleInfo != null ? moduleInfo.toBuilder() : null; } public final void setModuleInfo(ModuleInfo.BuilderImpl moduleInfo) { this.moduleInfo = moduleInfo != null ? moduleInfo.build() : null; } @Override public final Builder moduleInfo(ModuleInfo moduleInfo) { this.moduleInfo = moduleInfo; return this; } @Override public StackResourceDetail build() { return new StackResourceDetail(this); } @Override public List> sdkFields() { return SDK_FIELDS; } @Override public Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy