endPoint = $args['EndPoint']; $this->accessKeyID = $args['AccessKeyID']; $this->accessKeySecret = $args['AccessKeySecret']; $this->instanceName = $args['InstanceName']; if (isset($args['ConnectionTimeout'])) { $this->connectionTimeout = $args['ConnectionTimeout']; } if (isset($args['SocketTimeout'])) { $this->socketTimeout = $args['SocketTimeout']; } if (!isset($args['RetryPolicy'])) { $this->retryPolicy = new DefaultRetryPolicy(); } else { $this->retryPolicy = $args['RetryPolicy']; } if (!isset($args['ErrorLogHandler'])) { $this->errorLogHandler = "defaultOTSErrorLogHandler"; } else { $this->errorLogHandler = $args['ErrorLogHandler']; } if (!isset($args['DebugLogHandler'])) { $this->debugLogHandler = 'defaultOTSDebugLogHandler'; } else { $this->debugLogHandler = $args['DebugLogHandler']; } } public function getEndPoint() { return $this->endPoint; } public function getAccessKeyID() { return $this->accessKeyID; } public function getAccessKeySecret() { return $this->accessKeySecret; } public function getInstanceName() { return $this->instanceName; } }