public SecretKeySelectorArgs build() {
            if ($.key == null) {
                throw new MissingRequiredPropertyException("SecretKeySelectorArgs", "key");
            }
            return $;
        }
@param optional Specify whether the Secret or its key must be defined

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/SecretKeySelectorArgs.java