_propDict)) { if (is_a($this->_propDict["createdDateTime"], "\DateTime") || is_null($this->_propDict["createdDateTime"])) { return $this->_propDict["createdDateTime"]; } else { $this->_propDict["createdDateTime"] = new \DateTime($this->_propDict["createdDateTime"]); return $this->_propDict["createdDateTime"]; } } return null; } /** * Sets the createdDateTime * * @param \DateTime $val The value to assign to the createdDateTime * * @return AwsAccessKeyDetails The AwsAccessKeyDetails */ public function setCreatedDateTime($val) { $this->_propDict["createdDateTime"] = $val; return $this; } /** * Gets the lastUsedDateTime * * @return \DateTime|null The lastUsedDateTime */ public function getLastUsedDateTime() { if (array_key_exists("lastUsedDateTime", $this->_propDict)) { if (is_a($this->_propDict["lastUsedDateTime"], "\DateTime") || is_null($this->_propDict["lastUsedDateTime"])) { return $this->_propDict["lastUsedDateTime"]; } else { $this->_propDict["lastUsedDateTime"] = new \DateTime($this->_propDict["lastUsedDateTime"]); return $this->_propDict["lastUsedDateTime"]; } } return null; } /** * Sets the lastUsedDateTime * * @param \DateTime $val The value to assign to the lastUsedDateTime * * @return AwsAccessKeyDetails The AwsAccessKeyDetails */ public function setLastUsedDateTime($val) { $this->_propDict["lastUsedDateTime"] = $val; return $this; } }