_propDict)) { if (is_a($this->_propDict["authenticationMethod"], "\Beta\Microsoft\Graph\Model\VpnAuthenticationMethod") || is_null($this->_propDict["authenticationMethod"])) { return $this->_propDict["authenticationMethod"]; } else { $this->_propDict["authenticationMethod"] = new VpnAuthenticationMethod($this->_propDict["authenticationMethod"]); return $this->_propDict["authenticationMethod"]; } } return null; } /** * Sets the authenticationMethod * Authentication method. Possible values are: certificate, usernameAndPassword, sharedSecret, derivedCredential, azureAD. * * @param VpnAuthenticationMethod $val The authenticationMethod * * @return VpnConfiguration */ public function setAuthenticationMethod($val) { $this->_propDict["authenticationMethod"] = $val; return $this; } /** * Gets the connectionName * Connection name displayed to the user. * * @return string|null The connectionName */ public function getConnectionName() { if (array_key_exists("connectionName", $this->_propDict)) { return $this->_propDict["connectionName"]; } else { return null; } } /** * Sets the connectionName * Connection name displayed to the user. * * @param string $val The connectionName * * @return VpnConfiguration */ public function setConnectionName($val) { $this->_propDict["connectionName"] = $val; return $this; } /** * Gets the realm * Realm when connection type is set to Pulse Secure. * * @return string|null The realm */ public function getRealm() { if (array_key_exists("realm", $this->_propDict)) { return $this->_propDict["realm"]; } else { return null; } } /** * Sets the realm * Realm when connection type is set to Pulse Secure. * * @param string $val The realm * * @return VpnConfiguration */ public function setRealm($val) { $this->_propDict["realm"] = $val; return $this; } /** * Gets the role * Role when connection type is set to Pulse Secure. * * @return string|null The role */ public function getRole() { if (array_key_exists("role", $this->_propDict)) { return $this->_propDict["role"]; } else { return null; } } /** * Sets the role * Role when connection type is set to Pulse Secure. * * @param string $val The role * * @return VpnConfiguration */ public function setRole($val) { $this->_propDict["role"] = $val; return $this; } /** * Gets the servers * List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements. * * @return array|null The servers */ public function getServers() { if (array_key_exists("servers", $this->_propDict)) { return $this->_propDict["servers"]; } else { return null; } } /** * Sets the servers * List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements. * * @param VpnServer[] $val The servers * * @return VpnConfiguration */ public function setServers($val) { $this->_propDict["servers"] = $val; return $this; } }