src/ServiceManagement/Models/CreateServiceOptions.php
public function setAffinityGroup($affinityGroup)
    {
        Validate::isString($affinityGroup, 'affinityGroup');
        Validate::notNullOrEmpty($affinityGroup, 'affinityGroup');

        $this->_affinityGroup = $affinityGroup;
    }
public function setAffinityGroup($affinityGroup)
    {
        Validate::isString($affinityGroup, 'affinityGroup');
        Validate::notNullOrEmpty($affinityGroup, 'affinityGroup');

        $this->_affinityGroup = $affinityGroup;
    }
public function setAffinityGroup ( $ affinityGroup ) { Validate :: isString ( $ affinityGroup , 'affinityGroup' ) ; Validate :: notNullOrEmpty ( $ affinityGroup , 'affinityGroup' ) ; $ this -> _affinityGroup = $ affinityGroup ; }
Sets the affinityGroup.

@param string $affinityGroup The affinityGroup
Sets the affinityGroup .