// NewSetReclaimPolicy returns a NewMethod that writes a SetReclaimPolicy method
// for the supplied Object to the supplied file. The ReclaimPolicy is set in the
// supplied field - typically Spec or SpecTemplate.
NewSetReclaimPolicy returns a NewMethod that writes a SetReclaimPolicy method
for the supplied Object to the supplied file. The ReclaimPolicy is set in the
supplied field - typically Spec or SpecTemplate.
// NewSetReclaimPolicy returns a NewMethod that writes a SetReclaimPolicy method // for the supplied Object to the supplied file . The ReclaimPolicy is set in the // supplied field - typically Spec or SpecTemplate .
func NewSetReclaimPolicy(receiver, core, field string) New {
	return func(f *jen.File, o types.Object) {
		f.Commentf("SetReclaimPolicy of this %s.", o.Name())
		f.Func().Params(jen.Id(receiver).Op("*").Id(o.Name())).Id("SetReclaimPolicy").Params(jen.Id("r").Qual(core, "ReclaimPolicy")).Block(
			jen.Id(receiver).Dot(field).Dot("ReclaimPolicy").Op("=").Id("r"),
		)
	}
}
func NewSetReclaimPolicy ( receiver , core , field string ) New { return func ( f * jen . File , o types . Object ) { f . Commentf ( " " , o . Name ( ) ) f . Func ( ) . Params ( jen . Id ( receiver ) . Op ( " " ) . Id ( o . Name ( ) ) ) . Id ( " " ) . Params ( jen . Id ( " " ) . Qual ( core , " " ) ) . Block ( jen . Id ( receiver ) . Dot ( field ) . Dot ( " " ) . Op ( " " ) . Id ( " " ) , ) } }
NewSetReclaimPolicy returns a NewMethod that writes a SetReclaimPolicy method
for the supplied Object to the supplied file.
NewSetReclaimPolicy returns a NewMethod that writes a SetReclaimPolicy method for the supplied Object to the supplied file .