public DeviceTaintRule build() {
            final var _resultValue = new DeviceTaintRule();
            _resultValue.apiVersion = apiVersion;
            _resultValue.kind = kind;
            _resultValue.metadata = metadata;
            _resultValue.spec = spec;
            return _resultValue;
        }
@return Spec specifies the selector and one taint.

Changing the spec automatically increments the metadata.generation number.
sdk/java/src/main/java/com/pulumi/kubernetes/resource/v1alpha3/outputs/DeviceTaintRule.java