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

software.amazon.smithy.traitcodegen.sections.EnumVariantSection Maven / Gradle / Ivy

/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

package software.amazon.smithy.traitcodegen.sections;

import software.amazon.smithy.model.shapes.MemberShape;
import software.amazon.smithy.utils.CodeSection;

/**
 * Contains an enum variant.
 */
public final class EnumVariantSection implements CodeSection {
    private final MemberShape memberShape;

    public EnumVariantSection(MemberShape memberShape) {
        this.memberShape = memberShape;
    }

    /**
     * {@link MemberShape} that this enum variant represents.
     */
    public MemberShape memberShape() {
        return memberShape;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy