func expandHostNetworkSecurityPolicy(d *schema.ResourceData) *types.HostNetworkSecurityPolicy {
	obj := &types.HostNetworkSecurityPolicy{}
	if v, ok := d.GetOkExists("allow_promiscuous"); ok {
		obj.AllowPromiscuous = structure.BoolPtr(v.(bool))
	}
	if v, ok := d.GetOkExists("allow_forged_transmits"); ok {
		obj.ForgedTransmits = structure.BoolPtr(v.(bool))
	}
	if v, ok := d.GetOkExists("allow_mac_changes"); ok {
		obj.MacChanges = structure.BoolPtr(v.(bool))
	}
	return obj
}
func expandHostNetworkSecurityPolicy(d *schema.ResourceData) *types.HostNetworkSecurityPolicy {
	obj := &types.HostNetworkSecurityPolicy{}
	if v, ok := d.GetOkExists("allow_promiscuous"); ok {
		obj.AllowPromiscuous = structure.BoolPtr(v.(bool))
	}
	if v, ok := d.GetOkExists("allow_forged_transmits"); ok {
		obj.ForgedTransmits = structure.BoolPtr(v.(bool))
	}
	if v, ok := d.GetOkExists("allow_mac_changes"); ok {
		obj.MacChanges = structure.BoolPtr(v.(bool))
	}
	return obj
}
func expandHostNetworkSecurityPolicy ( d * schema . ResourceData ) * types . HostNetworkSecurityPolicy { obj := & types . HostNetworkSecurityPolicy { } if v , ok := d . GetOkExists ( " " ) ; ok { obj . AllowPromiscuous = structure . BoolPtr ( v . ( bool ) ) } if v , ok := d . GetOkExists ( " " ) ; ok { obj . ForgedTransmits = structure . BoolPtr ( v . ( bool ) ) } if v , ok := d . GetOkExists ( " " ) ; ok { obj . MacChanges = structure . BoolPtr ( v . ( bool ) ) } return obj }
// expandHostNetworkSecurityPolicy reads certain ResourceData keys and returns
// a HostNetworkSecurityPolicy.
expandHostNetworkSecurityPolicy reads certain ResourceData keys and returns a HostNetworkSecurityPolicy .