func flattenHostNicTeamingPolicy(d *schema.ResourceData, obj *types.HostNicTeamingPolicy) error {
	if obj.RollingOrder != nil {
		v := *obj.RollingOrder
		d.Set("failback", !v)
	}
	if obj.NotifySwitches != nil {
		d.Set("notify_switches", obj.NotifySwitches)
	}
	d.Set("teaming_policy", obj.Policy)
	if err := flattenHostNicFailureCriteria(d, obj.FailureCriteria); err != nil {
		return err
	}
	if err := flattenHostNicOrderPolicy(d, obj.NicOrder); err != nil {
		return err
	}
	return nil
}
func flattenHostNicTeamingPolicy(d *schema.ResourceData, obj *types.HostNicTeamingPolicy) error {
	if obj.RollingOrder != nil {
		v := *obj.RollingOrder
		d.Set("failback", !v)
	}
	if obj.NotifySwitches != nil {
		d.Set("notify_switches", obj.NotifySwitches)
	}
	d.Set("teaming_policy", obj.Policy)
	if err := flattenHostNicFailureCriteria(d, obj.FailureCriteria); err != nil {
		return err
	}
	if err := flattenHostNicOrderPolicy(d, obj.NicOrder); err != nil {
		return err
	}
	return nil
}
func flattenHostNicTeamingPolicy ( d * schema . ResourceData , obj * types . HostNicTeamingPolicy ) error { if obj . RollingOrder != nil { v := * obj . RollingOrder d . Set ( " " , ! v ) } if obj . NotifySwitches != nil { d . Set ( " " , obj . NotifySwitches ) } d . Set ( " " , obj . Policy ) if err := flattenHostNicFailureCriteria ( d , obj . FailureCriteria ) ; err != nil { return err } if err := flattenHostNicOrderPolicy ( d , obj . NicOrder ) ; err != nil { return err } return nil }
// flattenHostNicTeamingPolicy reads various fields from a HostNicTeamingPolicy
// into the passed in ResourceData.
flattenHostNicTeamingPolicy reads various fields from a HostNicTeamingPolicy into the passed in ResourceData .