Set the time at which the resource was last modified.

@param lastModified the lastModified value to set
@return the ComputeNodeGetRemoteLoginSettingsHeaders object itself.
435902
public ComputeNodeGetRemoteLoginSettingsHeaders withLastModified(DateTime lastModified) {
        if (lastModified == null) {
            this.lastModified = null;
        } else {
            this.lastModified = new DateTimeRfc1123(lastModified);
        }
        return this;
    }
1015811
public TaskGetHeaders withLastModified(DateTime lastModified) {
        if (lastModified == null) {
            this.lastModified = null;
        } else {
            this.lastModified = new DateTimeRfc1123(lastModified);
        }
        return this;
    }
446809
public AccountListNodeAgentSkusHeaders withLastModified(DateTime lastModified) {
        if (lastModified == null) {
            this.lastModified = null;
        } else {
            this.lastModified = new DateTimeRfc1123(lastModified);
        }
        return this;
    }
416034
public ComputeNodeReimageHeaders withLastModified(DateTime lastModified) {
        if (lastModified == null) {
            this.lastModified = null;
        } else {
            this.lastModified = new DateTimeRfc1123(lastModified);
        }
        return this;
    }
464713
public function lastModified($modified = null)
    {
        if ($modified && $modified > $this->last_modified) {
            $this->last_modified = $modified;
        }

        return $this->last_modified;
    }
415972
public PoolEvaluateAutoScaleHeaders withLastModified(DateTime lastModified) {
        if (lastModified == null) {
            this.lastModified = null;
        } else {
            this.lastModified = new DateTimeRfc1123(lastModified);
        }
        return this;
    }
1227287
public FileGetPropertiesFromTaskHeaders withLastModified(DateTime lastModified) {
        if (lastModified == null) {
            this.lastModified = null;
        } else {
            this.lastModified = new DateTimeRfc1123(lastModified);
        }
        return this;
    }
184070
public static boolean isModifiedSince(long ifModifiedSince, Calendar lastModified) {
        return lastModified != null && isModifiedSince(ifModifiedSince, lastModified.getTimeInMillis());
    }
869369
@Override
  @SuppressWarnings("unchecked")
  public void setModifiedWith(PROCESS modifiedWith) {
    this.modifiedWith = assertNotNull(modifiedWith, () -> "Modified with is required");
    this.lastModifiedWith = defaultIfNull(this.lastModifiedWith, this.modifiedWith);
  }
533562
public void setLastUpdatedTimes(java.util.Collection<DateTimeRange> lastUpdatedTimes) {
        if (lastUpdatedTimes == null) {
            this.lastUpdatedTimes = null;
            return;
        }

        this.lastUpdatedTimes = new java.util.ArrayList<DateTimeRange>(lastUpdatedTimes);
    }
1324567
public JobSchedulePatchHeaders withLastModified(DateTime lastModified) {
        if (lastModified == null) {
            this.lastModified = null;
        } else {
            this.lastModified = new DateTimeRfc1123(lastModified);
        }
        return this;
    }
1094239
public PoolEnableAutoScaleHeaders withLastModified(DateTime lastModified) {
        if (lastModified == null) {
            this.lastModified = null;
        } else {
            this.lastModified = new DateTimeRfc1123(lastModified);
        }
        return this;
    }
475509
public JobScheduleTerminateHeaders withLastModified(DateTime lastModified) {
        if (lastModified == null) {
            this.lastModified = null;
        } else {
            this.lastModified = new DateTimeRfc1123(lastModified);
        }
        return this;
    }
1334587
public function setLastModification($lastModification)
    {
        if ($lastModification instanceof \DateTime) {
            $lastModification = new LastModification($lastModification);
        }
        $this->elements[self::ELEMENT_LASTMOD] = $lastModification;

        return $this;
    }
1010912
public static void addLastModified(Result result, long lastModified) {
        result.with(HeaderNames.LAST_MODIFIED, DateUtil.formatForHttpHeader(lastModified));
    }
96228
public void setDateLastModified(String dateLastModified) {

        m_hasDateLastModified = true;
        try {
            if (dateLastModified != null) {
                TimestampMode timeMode = TimestampMode.getEnum(CmsMacroResolver.stripMacro(dateLastModified));
                switch (timeMode) {
                    case FILETIME:
                        m_resourceBuilder.setDateLastModified(-1); //Can't get the information right now, must set it afterward.
                        break;
                    case IMPORTTIME:
                        m_resourceBuilder.setDateLastModified(System.currentTimeMillis());
                        break;
                    case VFSTIME:
                    default:
                        m_resourceBuilder.setDateLastModified(convertTimestamp(dateLastModified));
                        break;
                }
            } else {
                m_resourceBuilder.setDateLastModified(System.currentTimeMillis());
            }
        } catch (Throwable e) {
            setThrowable(e);
        }
    }
246577
def get_last_modified_date(
            self,
            bucket: str,
            key: str,
    ) -> datetime:
        
        response = self.get_all_metadata(bucket, key)
        return response['LastModified']