All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.securityhub.model.PatchSummary Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Provides an overview of the patch compliance status for an instance against a selected compliance standard. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PatchSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The identifier of the compliance standard that was used to determine the patch compliance status. *

*

* Length Constraints: Minimum length of 1. Maximum length of 256. *

*/ private String id; /** *

* The number of patches from the compliance standard that were installed successfully. *

*

* The value can be an integer from 0 to 100000. *

*/ private Integer installedCount; /** *

* The number of patches that are part of the compliance standard but are not installed. The count includes patches * that failed to install. *

*

* The value can be an integer from 0 to 100000. *

*/ private Integer missingCount; /** *

* The number of patches from the compliance standard that failed to install. *

*

* The value can be an integer from 0 to 100000. *

*/ private Integer failedCount; /** *

* The number of installed patches that are not part of the compliance standard. *

*

* The value can be an integer from 0 to 100000. *

*/ private Integer installedOtherCount; /** *

* The number of patches that are installed but are also on a list of patches that the customer rejected. *

*

* The value can be an integer from 0 to 100000. *

*/ private Integer installedRejectedCount; /** *

* The number of patches that were applied, but that require the instance to be rebooted in order to be marked as * installed. *

*

* The value can be an integer from 0 to 100000. *

*/ private Integer installedPendingReboot; /** *

* Indicates when the operation started. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
*/ private String operationStartTime; /** *

* Indicates when the operation completed. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
*/ private String operationEndTime; /** *

* The reboot option specified for the instance. *

*

* Length Constraints: Minimum length of 1. Maximum length of 256. *

*/ private String rebootOption; /** *

* The type of patch operation performed. For Patch Manager, the values are SCAN and * INSTALL. *

*

* Length Constraints: Minimum length of 1. Maximum length of 256. *

*/ private String operation; /** *

* The identifier of the compliance standard that was used to determine the patch compliance status. *

*

* Length Constraints: Minimum length of 1. Maximum length of 256. *

* * @param id * The identifier of the compliance standard that was used to determine the patch compliance status.

*

* Length Constraints: Minimum length of 1. Maximum length of 256. */ public void setId(String id) { this.id = id; } /** *

* The identifier of the compliance standard that was used to determine the patch compliance status. *

*

* Length Constraints: Minimum length of 1. Maximum length of 256. *

* * @return The identifier of the compliance standard that was used to determine the patch compliance status.

*

* Length Constraints: Minimum length of 1. Maximum length of 256. */ public String getId() { return this.id; } /** *

* The identifier of the compliance standard that was used to determine the patch compliance status. *

*

* Length Constraints: Minimum length of 1. Maximum length of 256. *

* * @param id * The identifier of the compliance standard that was used to determine the patch compliance status.

*

* Length Constraints: Minimum length of 1. Maximum length of 256. * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withId(String id) { setId(id); return this; } /** *

* The number of patches from the compliance standard that were installed successfully. *

*

* The value can be an integer from 0 to 100000. *

* * @param installedCount * The number of patches from the compliance standard that were installed successfully.

*

* The value can be an integer from 0 to 100000. */ public void setInstalledCount(Integer installedCount) { this.installedCount = installedCount; } /** *

* The number of patches from the compliance standard that were installed successfully. *

*

* The value can be an integer from 0 to 100000. *

* * @return The number of patches from the compliance standard that were installed successfully.

*

* The value can be an integer from 0 to 100000. */ public Integer getInstalledCount() { return this.installedCount; } /** *

* The number of patches from the compliance standard that were installed successfully. *

*

* The value can be an integer from 0 to 100000. *

* * @param installedCount * The number of patches from the compliance standard that were installed successfully.

*

* The value can be an integer from 0 to 100000. * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withInstalledCount(Integer installedCount) { setInstalledCount(installedCount); return this; } /** *

* The number of patches that are part of the compliance standard but are not installed. The count includes patches * that failed to install. *

*

* The value can be an integer from 0 to 100000. *

* * @param missingCount * The number of patches that are part of the compliance standard but are not installed. The count includes * patches that failed to install.

*

* The value can be an integer from 0 to 100000. */ public void setMissingCount(Integer missingCount) { this.missingCount = missingCount; } /** *

* The number of patches that are part of the compliance standard but are not installed. The count includes patches * that failed to install. *

*

* The value can be an integer from 0 to 100000. *

* * @return The number of patches that are part of the compliance standard but are not installed. The count includes * patches that failed to install.

*

* The value can be an integer from 0 to 100000. */ public Integer getMissingCount() { return this.missingCount; } /** *

* The number of patches that are part of the compliance standard but are not installed. The count includes patches * that failed to install. *

*

* The value can be an integer from 0 to 100000. *

* * @param missingCount * The number of patches that are part of the compliance standard but are not installed. The count includes * patches that failed to install.

*

* The value can be an integer from 0 to 100000. * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withMissingCount(Integer missingCount) { setMissingCount(missingCount); return this; } /** *

* The number of patches from the compliance standard that failed to install. *

*

* The value can be an integer from 0 to 100000. *

* * @param failedCount * The number of patches from the compliance standard that failed to install.

*

* The value can be an integer from 0 to 100000. */ public void setFailedCount(Integer failedCount) { this.failedCount = failedCount; } /** *

* The number of patches from the compliance standard that failed to install. *

*

* The value can be an integer from 0 to 100000. *

* * @return The number of patches from the compliance standard that failed to install.

*

* The value can be an integer from 0 to 100000. */ public Integer getFailedCount() { return this.failedCount; } /** *

* The number of patches from the compliance standard that failed to install. *

*

* The value can be an integer from 0 to 100000. *

* * @param failedCount * The number of patches from the compliance standard that failed to install.

*

* The value can be an integer from 0 to 100000. * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withFailedCount(Integer failedCount) { setFailedCount(failedCount); return this; } /** *

* The number of installed patches that are not part of the compliance standard. *

*

* The value can be an integer from 0 to 100000. *

* * @param installedOtherCount * The number of installed patches that are not part of the compliance standard.

*

* The value can be an integer from 0 to 100000. */ public void setInstalledOtherCount(Integer installedOtherCount) { this.installedOtherCount = installedOtherCount; } /** *

* The number of installed patches that are not part of the compliance standard. *

*

* The value can be an integer from 0 to 100000. *

* * @return The number of installed patches that are not part of the compliance standard.

*

* The value can be an integer from 0 to 100000. */ public Integer getInstalledOtherCount() { return this.installedOtherCount; } /** *

* The number of installed patches that are not part of the compliance standard. *

*

* The value can be an integer from 0 to 100000. *

* * @param installedOtherCount * The number of installed patches that are not part of the compliance standard.

*

* The value can be an integer from 0 to 100000. * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withInstalledOtherCount(Integer installedOtherCount) { setInstalledOtherCount(installedOtherCount); return this; } /** *

* The number of patches that are installed but are also on a list of patches that the customer rejected. *

*

* The value can be an integer from 0 to 100000. *

* * @param installedRejectedCount * The number of patches that are installed but are also on a list of patches that the customer rejected.

*

* The value can be an integer from 0 to 100000. */ public void setInstalledRejectedCount(Integer installedRejectedCount) { this.installedRejectedCount = installedRejectedCount; } /** *

* The number of patches that are installed but are also on a list of patches that the customer rejected. *

*

* The value can be an integer from 0 to 100000. *

* * @return The number of patches that are installed but are also on a list of patches that the customer * rejected.

*

* The value can be an integer from 0 to 100000. */ public Integer getInstalledRejectedCount() { return this.installedRejectedCount; } /** *

* The number of patches that are installed but are also on a list of patches that the customer rejected. *

*

* The value can be an integer from 0 to 100000. *

* * @param installedRejectedCount * The number of patches that are installed but are also on a list of patches that the customer rejected.

*

* The value can be an integer from 0 to 100000. * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withInstalledRejectedCount(Integer installedRejectedCount) { setInstalledRejectedCount(installedRejectedCount); return this; } /** *

* The number of patches that were applied, but that require the instance to be rebooted in order to be marked as * installed. *

*

* The value can be an integer from 0 to 100000. *

* * @param installedPendingReboot * The number of patches that were applied, but that require the instance to be rebooted in order to be * marked as installed.

*

* The value can be an integer from 0 to 100000. */ public void setInstalledPendingReboot(Integer installedPendingReboot) { this.installedPendingReboot = installedPendingReboot; } /** *

* The number of patches that were applied, but that require the instance to be rebooted in order to be marked as * installed. *

*

* The value can be an integer from 0 to 100000. *

* * @return The number of patches that were applied, but that require the instance to be rebooted in order to be * marked as installed.

*

* The value can be an integer from 0 to 100000. */ public Integer getInstalledPendingReboot() { return this.installedPendingReboot; } /** *

* The number of patches that were applied, but that require the instance to be rebooted in order to be marked as * installed. *

*

* The value can be an integer from 0 to 100000. *

* * @param installedPendingReboot * The number of patches that were applied, but that require the instance to be rebooted in order to be * marked as installed.

*

* The value can be an integer from 0 to 100000. * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withInstalledPendingReboot(Integer installedPendingReboot) { setInstalledPendingReboot(installedPendingReboot); return this; } /** *

* Indicates when the operation started. *

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

    *
  • *
* * @param operationStartTime * Indicates when the operation started.

*

* This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

*
    *
  • *

    * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

    *
  • *
  • *

    * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

    *
  • */ public void setOperationStartTime(String operationStartTime) { this.operationStartTime = operationStartTime; } /** *

    * Indicates when the operation started. *

    *

    * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

    *
      *
    • *

      * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

      *
    • *
    * * @return Indicates when the operation started.

    *

    * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

    *
      *
    • *

      * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

      *
    • *
    • *

      * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

      *
    • */ public String getOperationStartTime() { return this.operationStartTime; } /** *

      * Indicates when the operation started. *

      *

      * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

      *
        *
      • *

        * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

        *
      • *
      * * @param operationStartTime * Indicates when the operation started.

      *

      * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

      *
        *
      • *

        * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

        *
      • *
      • *

        * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withOperationStartTime(String operationStartTime) { setOperationStartTime(operationStartTime); return this; } /** *

        * Indicates when the operation completed. *

        *

        * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

        *
          *
        • *

          * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

          *
        • *
        * * @param operationEndTime * Indicates when the operation completed.

        *

        * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

        *
          *
        • *

          * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

          *
        • *
        • *

          * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

          *
        • */ public void setOperationEndTime(String operationEndTime) { this.operationEndTime = operationEndTime; } /** *

          * Indicates when the operation completed. *

          *

          * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

          *
            *
          • *

            * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

            *
          • *
          * * @return Indicates when the operation completed.

          *

          * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

          *
            *
          • *

            * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

            *
          • *
          • *

            * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

            *
          • */ public String getOperationEndTime() { return this.operationEndTime; } /** *

            * Indicates when the operation completed. *

            *

            * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 * digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

            *
              *
            • *

              * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, 2024-01-04T15:25:10.123456789+17:59) *

              *
            • *
            * * @param operationEndTime * Indicates when the operation completed.

            *

            * This field accepts only the specified formats. Timestamps can end with Z or * ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a * maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples: *

            *
              *
            • *

              * YYYY-MM-DDTHH:MM:SSZ (for example, 2019-01-31T23:00:00Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ (for example, 2019-01-31T23:00:00.123456789Z) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS+HH:MM (for example, 2024-01-04T15:25:10+17:59) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS-HHMM (for example, 2024-01-04T15:25:10-1759) *

              *
            • *
            • *

              * YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM (for example, * 2024-01-04T15:25:10.123456789+17:59) *

              *
            • * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withOperationEndTime(String operationEndTime) { setOperationEndTime(operationEndTime); return this; } /** *

              * The reboot option specified for the instance. *

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. *

              * * @param rebootOption * The reboot option specified for the instance.

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. */ public void setRebootOption(String rebootOption) { this.rebootOption = rebootOption; } /** *

              * The reboot option specified for the instance. *

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. *

              * * @return The reboot option specified for the instance.

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. */ public String getRebootOption() { return this.rebootOption; } /** *

              * The reboot option specified for the instance. *

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. *

              * * @param rebootOption * The reboot option specified for the instance.

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withRebootOption(String rebootOption) { setRebootOption(rebootOption); return this; } /** *

              * The type of patch operation performed. For Patch Manager, the values are SCAN and * INSTALL. *

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. *

              * * @param operation * The type of patch operation performed. For Patch Manager, the values are SCAN and * INSTALL.

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. */ public void setOperation(String operation) { this.operation = operation; } /** *

              * The type of patch operation performed. For Patch Manager, the values are SCAN and * INSTALL. *

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. *

              * * @return The type of patch operation performed. For Patch Manager, the values are SCAN and * INSTALL.

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. */ public String getOperation() { return this.operation; } /** *

              * The type of patch operation performed. For Patch Manager, the values are SCAN and * INSTALL. *

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. *

              * * @param operation * The type of patch operation performed. For Patch Manager, the values are SCAN and * INSTALL.

              *

              * Length Constraints: Minimum length of 1. Maximum length of 256. * @return Returns a reference to this object so that method calls can be chained together. */ public PatchSummary withOperation(String operation) { setOperation(operation); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getInstalledCount() != null) sb.append("InstalledCount: ").append(getInstalledCount()).append(","); if (getMissingCount() != null) sb.append("MissingCount: ").append(getMissingCount()).append(","); if (getFailedCount() != null) sb.append("FailedCount: ").append(getFailedCount()).append(","); if (getInstalledOtherCount() != null) sb.append("InstalledOtherCount: ").append(getInstalledOtherCount()).append(","); if (getInstalledRejectedCount() != null) sb.append("InstalledRejectedCount: ").append(getInstalledRejectedCount()).append(","); if (getInstalledPendingReboot() != null) sb.append("InstalledPendingReboot: ").append(getInstalledPendingReboot()).append(","); if (getOperationStartTime() != null) sb.append("OperationStartTime: ").append(getOperationStartTime()).append(","); if (getOperationEndTime() != null) sb.append("OperationEndTime: ").append(getOperationEndTime()).append(","); if (getRebootOption() != null) sb.append("RebootOption: ").append(getRebootOption()).append(","); if (getOperation() != null) sb.append("Operation: ").append(getOperation()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PatchSummary == false) return false; PatchSummary other = (PatchSummary) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getInstalledCount() == null ^ this.getInstalledCount() == null) return false; if (other.getInstalledCount() != null && other.getInstalledCount().equals(this.getInstalledCount()) == false) return false; if (other.getMissingCount() == null ^ this.getMissingCount() == null) return false; if (other.getMissingCount() != null && other.getMissingCount().equals(this.getMissingCount()) == false) return false; if (other.getFailedCount() == null ^ this.getFailedCount() == null) return false; if (other.getFailedCount() != null && other.getFailedCount().equals(this.getFailedCount()) == false) return false; if (other.getInstalledOtherCount() == null ^ this.getInstalledOtherCount() == null) return false; if (other.getInstalledOtherCount() != null && other.getInstalledOtherCount().equals(this.getInstalledOtherCount()) == false) return false; if (other.getInstalledRejectedCount() == null ^ this.getInstalledRejectedCount() == null) return false; if (other.getInstalledRejectedCount() != null && other.getInstalledRejectedCount().equals(this.getInstalledRejectedCount()) == false) return false; if (other.getInstalledPendingReboot() == null ^ this.getInstalledPendingReboot() == null) return false; if (other.getInstalledPendingReboot() != null && other.getInstalledPendingReboot().equals(this.getInstalledPendingReboot()) == false) return false; if (other.getOperationStartTime() == null ^ this.getOperationStartTime() == null) return false; if (other.getOperationStartTime() != null && other.getOperationStartTime().equals(this.getOperationStartTime()) == false) return false; if (other.getOperationEndTime() == null ^ this.getOperationEndTime() == null) return false; if (other.getOperationEndTime() != null && other.getOperationEndTime().equals(this.getOperationEndTime()) == false) return false; if (other.getRebootOption() == null ^ this.getRebootOption() == null) return false; if (other.getRebootOption() != null && other.getRebootOption().equals(this.getRebootOption()) == false) return false; if (other.getOperation() == null ^ this.getOperation() == null) return false; if (other.getOperation() != null && other.getOperation().equals(this.getOperation()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getInstalledCount() == null) ? 0 : getInstalledCount().hashCode()); hashCode = prime * hashCode + ((getMissingCount() == null) ? 0 : getMissingCount().hashCode()); hashCode = prime * hashCode + ((getFailedCount() == null) ? 0 : getFailedCount().hashCode()); hashCode = prime * hashCode + ((getInstalledOtherCount() == null) ? 0 : getInstalledOtherCount().hashCode()); hashCode = prime * hashCode + ((getInstalledRejectedCount() == null) ? 0 : getInstalledRejectedCount().hashCode()); hashCode = prime * hashCode + ((getInstalledPendingReboot() == null) ? 0 : getInstalledPendingReboot().hashCode()); hashCode = prime * hashCode + ((getOperationStartTime() == null) ? 0 : getOperationStartTime().hashCode()); hashCode = prime * hashCode + ((getOperationEndTime() == null) ? 0 : getOperationEndTime().hashCode()); hashCode = prime * hashCode + ((getRebootOption() == null) ? 0 : getRebootOption().hashCode()); hashCode = prime * hashCode + ((getOperation() == null) ? 0 : getOperation().hashCode()); return hashCode; } @Override public PatchSummary clone() { try { return (PatchSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securityhub.model.transform.PatchSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy