accessKeyId = $accessKeyId; $this->accessKeySecret = $accessKeySecret; $this->roleArn = $roleArn; $this->roleSessionName = $roleSessionName; $this->policy = $policy; } /** * @return string */ public function getAccessKeyId() { return $this->accessKeyId; } /** * @return string */ public function getAccessKeySecret() { return $this->accessKeySecret; } /** * @return string */ public function getRoleArn() { return $this->roleArn; } /** * @return string */ public function getRoleSessionName() { return $this->roleSessionName; } /** * @return string */ public function getPolicy() { return $this->policy; } /** * @return string */ public function __toString() { return "$this->accessKeyId#$this->accessKeySecret#$this->roleArn#$this->roleSessionName"; } }