IResourceBuilder<T> Methods
InterfaceMethods2 members
Defines a builder for creating resources of type
T. WithAnnotation(ResourceAnnotationMutationBehavior)Section titled WithAnnotation(ResourceAnnotationMutationBehavior)virtualIResourceBuilder<T> Adds an annotation to the resource being built.
public interface IResourceBuilder<T>{ public virtual IResourceBuilder<T> WithAnnotation<TAnnotation>( ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) { // ... }}Parameters
behaviorResourceAnnotationMutationBehavioroptionalThe behavior to use when adding the annotation.Returns
IResourceBuilder<T>The resource builder instance.WithAnnotation(TAnnotation, ResourceAnnotationMutationBehavior)Section titled WithAnnotation(TAnnotation, ResourceAnnotationMutationBehavior)abstractIResourceBuilder<T> Adds an annotation to the resource being built.
public interface IResourceBuilder<T>{ public abstract IResourceBuilder<T> WithAnnotation<TAnnotation>( TAnnotation annotation, ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append) { // ... }}Parameters
annotationTAnnotationThe annotation to add.behaviorResourceAnnotationMutationBehavioroptionalThe behavior to use when adding the annotation.Returns
IResourceBuilder<T>The resource builder instance.