constraints = $constraints; } /** * @return LocationPolicyLocationConstraints */ public function getConstraints() { return $this->constraints; } /** * Preference for a given location. Set to either ALLOW orDENY. * * Accepted values: ALLOW, DENY, PREFERENCE_UNSPECIFIED * * @param self::PREFERENCE_* $preference */ public function setPreference($preference) { $this->preference = $preference; } /** * @return self::PREFERENCE_* */ public function getPreference() { return $this->preference; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(LocationPolicyLocation::class, 'Google_Service_Compute_LocationPolicyLocation');