// SelectAdvisory sets the `SelectedAdvisoryID` field.
// Returns an error if the advisory ID does not exist in `Recommendations`
SelectAdvisory sets the `SelectedAdvisoryID` field.
Returns an error if the advisory ID does not exist in `Recommendations`
// SelectAdvisory sets the ` SelectedAdvisoryID ` field . // Returns an error if the advisory ID does not exist in ` Recommendations `
func (a *AWSAction) SelectAdvisory(id string) error {
	for _, r := range a.Recommendations {
		if r.GetID() == id {
			a.SelectedAdvisoryID = id
			return nil
		}
	}
	return errors.New("could not find advisory")
}
func ( a * AWSAction ) SelectAdvisory ( id string ) error { for _ , r := range a . Recommendations { if r . GetID ( ) == id { a . SelectedAdvisoryID = id return nil } } return errors . New ( " " ) }
SelectAdvisory sets the `SelectedAdvisoryID` field.
SelectAdvisory sets the ` SelectedAdvisoryID ` field .