class SetServedVersionDecorator
    extends CustomResourceDefinitionVersionDecorator<CustomResourceDefinitionVersionFluent<?>> {

  private final boolean served;

  public SetServedVersionDecorator(String name, String version, boolean served) {
    super(name, version);
    this.served = served;
  }

  @Override
  public void andThenVisit(CustomResourceDefinitionVersionFluent<?> version) {
    version.withServed(served);
  }

  @Override
  public String toString() {<FILL_FUNCTION_BODY>}
}

    return getClass().getName() + " [name:" + getName() + ", version:" + getVersion() + ", served:" + served + "]";
  
<methods>public void <init>(java.lang.String, java.lang.String) ,public Class<? extends Decorator#RAW>[] after() ,public abstract void andThenVisit(CustomResourceDefinitionVersionFluent<?>) ,public Class<? extends Decorator#RAW>[] before() ,public boolean equals(java.lang.Object) ,public java.lang.String getName() ,public java.lang.String getVersion() ,public int hashCode() ,public void visit(VisitableBuilder) <variables>protected static final java.lang.String ANY,private final non-sealed java.lang.String name,private final non-sealed java.lang.String version,private final CustomResourceDefinitionVersionVisitor versionSelector,private final VersionVisitor versionVisitor