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

com.amazonaws.services.config.model.OrganizationConformancePackStatus 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.config.model;

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

/**
 * 

* Returns the status for an organization conformance pack in an organization. *

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

* The name that you assign to organization conformance pack. *

*/ private String organizationConformancePackName; /** *

* Indicates deployment status of an organization conformance pack. When management account calls * PutOrganizationConformancePack for the first time, conformance pack status is created in all the member accounts. * When management account calls PutOrganizationConformancePack for the second time, conformance pack status is * updated in all the member accounts. Additionally, conformance pack status is updated when one or more member * accounts join or leave an organization. Conformance pack status is deleted when the management account deletes * OrganizationConformancePack in all the member accounts and disables service access for * config-multiaccountsetup.amazonaws.com. *

*

* Config sets the state of the conformance pack to: *

*
    *
  • *

    * CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all the * member accounts. *

    *
  • *
  • *

    * CREATE_IN_PROGRESS when an organization conformance pack creation is in progress. *

    *
  • *
  • *

    * CREATE_FAILED when an organization conformance pack creation failed in one or more member accounts * within that organization. *

    *
  • *
  • *

    * DELETE_FAILED when an organization conformance pack deletion failed in one or more member accounts * within that organization. *

    *
  • *
  • *

    * DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress. *

    *
  • *
  • *

    * DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from all the * member accounts. *

    *
  • *
  • *

    * UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all the * member accounts. *

    *
  • *
  • *

    * UPDATE_IN_PROGRESS when an organization conformance pack update is in progress. *

    *
  • *
  • *

    * UPDATE_FAILED when an organization conformance pack update failed in one or more member accounts * within that organization. *

    *
  • *
*/ private String status; /** *

* An error code that is returned when organization conformance pack creation or deletion has failed in a member * account. *

*/ private String errorCode; /** *

* An error message indicating that organization conformance pack creation or deletion failed due to an error. *

*/ private String errorMessage; /** *

* The timestamp of the last update. *

*/ private java.util.Date lastUpdateTime; /** *

* The name that you assign to organization conformance pack. *

* * @param organizationConformancePackName * The name that you assign to organization conformance pack. */ public void setOrganizationConformancePackName(String organizationConformancePackName) { this.organizationConformancePackName = organizationConformancePackName; } /** *

* The name that you assign to organization conformance pack. *

* * @return The name that you assign to organization conformance pack. */ public String getOrganizationConformancePackName() { return this.organizationConformancePackName; } /** *

* The name that you assign to organization conformance pack. *

* * @param organizationConformancePackName * The name that you assign to organization conformance pack. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationConformancePackStatus withOrganizationConformancePackName(String organizationConformancePackName) { setOrganizationConformancePackName(organizationConformancePackName); return this; } /** *

* Indicates deployment status of an organization conformance pack. When management account calls * PutOrganizationConformancePack for the first time, conformance pack status is created in all the member accounts. * When management account calls PutOrganizationConformancePack for the second time, conformance pack status is * updated in all the member accounts. Additionally, conformance pack status is updated when one or more member * accounts join or leave an organization. Conformance pack status is deleted when the management account deletes * OrganizationConformancePack in all the member accounts and disables service access for * config-multiaccountsetup.amazonaws.com. *

*

* Config sets the state of the conformance pack to: *

*
    *
  • *

    * CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all the * member accounts. *

    *
  • *
  • *

    * CREATE_IN_PROGRESS when an organization conformance pack creation is in progress. *

    *
  • *
  • *

    * CREATE_FAILED when an organization conformance pack creation failed in one or more member accounts * within that organization. *

    *
  • *
  • *

    * DELETE_FAILED when an organization conformance pack deletion failed in one or more member accounts * within that organization. *

    *
  • *
  • *

    * DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress. *

    *
  • *
  • *

    * DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from all the * member accounts. *

    *
  • *
  • *

    * UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all the * member accounts. *

    *
  • *
  • *

    * UPDATE_IN_PROGRESS when an organization conformance pack update is in progress. *

    *
  • *
  • *

    * UPDATE_FAILED when an organization conformance pack update failed in one or more member accounts * within that organization. *

    *
  • *
* * @param status * Indicates deployment status of an organization conformance pack. When management account calls * PutOrganizationConformancePack for the first time, conformance pack status is created in all the member * accounts. When management account calls PutOrganizationConformancePack for the second time, conformance * pack status is updated in all the member accounts. Additionally, conformance pack status is updated when * one or more member accounts join or leave an organization. Conformance pack status is deleted when the * management account deletes OrganizationConformancePack in all the member accounts and disables service * access for config-multiaccountsetup.amazonaws.com.

*

* Config sets the state of the conformance pack to: *

*
    *
  • *

    * CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all * the member accounts. *

    *
  • *
  • *

    * CREATE_IN_PROGRESS when an organization conformance pack creation is in progress. *

    *
  • *
  • *

    * CREATE_FAILED when an organization conformance pack creation failed in one or more member * accounts within that organization. *

    *
  • *
  • *

    * DELETE_FAILED when an organization conformance pack deletion failed in one or more member * accounts within that organization. *

    *
  • *
  • *

    * DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress. *

    *
  • *
  • *

    * DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from * all the member accounts. *

    *
  • *
  • *

    * UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all * the member accounts. *

    *
  • *
  • *

    * UPDATE_IN_PROGRESS when an organization conformance pack update is in progress. *

    *
  • *
  • *

    * UPDATE_FAILED when an organization conformance pack update failed in one or more member * accounts within that organization. *

    *
  • * @see OrganizationResourceStatus */ public void setStatus(String status) { this.status = status; } /** *

    * Indicates deployment status of an organization conformance pack. When management account calls * PutOrganizationConformancePack for the first time, conformance pack status is created in all the member accounts. * When management account calls PutOrganizationConformancePack for the second time, conformance pack status is * updated in all the member accounts. Additionally, conformance pack status is updated when one or more member * accounts join or leave an organization. Conformance pack status is deleted when the management account deletes * OrganizationConformancePack in all the member accounts and disables service access for * config-multiaccountsetup.amazonaws.com. *

    *

    * Config sets the state of the conformance pack to: *

    *
      *
    • *

      * CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all the * member accounts. *

      *
    • *
    • *

      * CREATE_IN_PROGRESS when an organization conformance pack creation is in progress. *

      *
    • *
    • *

      * CREATE_FAILED when an organization conformance pack creation failed in one or more member accounts * within that organization. *

      *
    • *
    • *

      * DELETE_FAILED when an organization conformance pack deletion failed in one or more member accounts * within that organization. *

      *
    • *
    • *

      * DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress. *

      *
    • *
    • *

      * DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from all the * member accounts. *

      *
    • *
    • *

      * UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all the * member accounts. *

      *
    • *
    • *

      * UPDATE_IN_PROGRESS when an organization conformance pack update is in progress. *

      *
    • *
    • *

      * UPDATE_FAILED when an organization conformance pack update failed in one or more member accounts * within that organization. *

      *
    • *
    * * @return Indicates deployment status of an organization conformance pack. When management account calls * PutOrganizationConformancePack for the first time, conformance pack status is created in all the member * accounts. When management account calls PutOrganizationConformancePack for the second time, conformance * pack status is updated in all the member accounts. Additionally, conformance pack status is updated when * one or more member accounts join or leave an organization. Conformance pack status is deleted when the * management account deletes OrganizationConformancePack in all the member accounts and disables service * access for config-multiaccountsetup.amazonaws.com.

    *

    * Config sets the state of the conformance pack to: *

    *
      *
    • *

      * CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all * the member accounts. *

      *
    • *
    • *

      * CREATE_IN_PROGRESS when an organization conformance pack creation is in progress. *

      *
    • *
    • *

      * CREATE_FAILED when an organization conformance pack creation failed in one or more member * accounts within that organization. *

      *
    • *
    • *

      * DELETE_FAILED when an organization conformance pack deletion failed in one or more member * accounts within that organization. *

      *
    • *
    • *

      * DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress. *

      *
    • *
    • *

      * DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from * all the member accounts. *

      *
    • *
    • *

      * UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all * the member accounts. *

      *
    • *
    • *

      * UPDATE_IN_PROGRESS when an organization conformance pack update is in progress. *

      *
    • *
    • *

      * UPDATE_FAILED when an organization conformance pack update failed in one or more member * accounts within that organization. *

      *
    • * @see OrganizationResourceStatus */ public String getStatus() { return this.status; } /** *

      * Indicates deployment status of an organization conformance pack. When management account calls * PutOrganizationConformancePack for the first time, conformance pack status is created in all the member accounts. * When management account calls PutOrganizationConformancePack for the second time, conformance pack status is * updated in all the member accounts. Additionally, conformance pack status is updated when one or more member * accounts join or leave an organization. Conformance pack status is deleted when the management account deletes * OrganizationConformancePack in all the member accounts and disables service access for * config-multiaccountsetup.amazonaws.com. *

      *

      * Config sets the state of the conformance pack to: *

      *
        *
      • *

        * CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all the * member accounts. *

        *
      • *
      • *

        * CREATE_IN_PROGRESS when an organization conformance pack creation is in progress. *

        *
      • *
      • *

        * CREATE_FAILED when an organization conformance pack creation failed in one or more member accounts * within that organization. *

        *
      • *
      • *

        * DELETE_FAILED when an organization conformance pack deletion failed in one or more member accounts * within that organization. *

        *
      • *
      • *

        * DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress. *

        *
      • *
      • *

        * DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from all the * member accounts. *

        *
      • *
      • *

        * UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all the * member accounts. *

        *
      • *
      • *

        * UPDATE_IN_PROGRESS when an organization conformance pack update is in progress. *

        *
      • *
      • *

        * UPDATE_FAILED when an organization conformance pack update failed in one or more member accounts * within that organization. *

        *
      • *
      * * @param status * Indicates deployment status of an organization conformance pack. When management account calls * PutOrganizationConformancePack for the first time, conformance pack status is created in all the member * accounts. When management account calls PutOrganizationConformancePack for the second time, conformance * pack status is updated in all the member accounts. Additionally, conformance pack status is updated when * one or more member accounts join or leave an organization. Conformance pack status is deleted when the * management account deletes OrganizationConformancePack in all the member accounts and disables service * access for config-multiaccountsetup.amazonaws.com.

      *

      * Config sets the state of the conformance pack to: *

      *
        *
      • *

        * CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all * the member accounts. *

        *
      • *
      • *

        * CREATE_IN_PROGRESS when an organization conformance pack creation is in progress. *

        *
      • *
      • *

        * CREATE_FAILED when an organization conformance pack creation failed in one or more member * accounts within that organization. *

        *
      • *
      • *

        * DELETE_FAILED when an organization conformance pack deletion failed in one or more member * accounts within that organization. *

        *
      • *
      • *

        * DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress. *

        *
      • *
      • *

        * DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from * all the member accounts. *

        *
      • *
      • *

        * UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all * the member accounts. *

        *
      • *
      • *

        * UPDATE_IN_PROGRESS when an organization conformance pack update is in progress. *

        *
      • *
      • *

        * UPDATE_FAILED when an organization conformance pack update failed in one or more member * accounts within that organization. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see OrganizationResourceStatus */ public OrganizationConformancePackStatus withStatus(String status) { setStatus(status); return this; } /** *

        * Indicates deployment status of an organization conformance pack. When management account calls * PutOrganizationConformancePack for the first time, conformance pack status is created in all the member accounts. * When management account calls PutOrganizationConformancePack for the second time, conformance pack status is * updated in all the member accounts. Additionally, conformance pack status is updated when one or more member * accounts join or leave an organization. Conformance pack status is deleted when the management account deletes * OrganizationConformancePack in all the member accounts and disables service access for * config-multiaccountsetup.amazonaws.com. *

        *

        * Config sets the state of the conformance pack to: *

        *
          *
        • *

          * CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all the * member accounts. *

          *
        • *
        • *

          * CREATE_IN_PROGRESS when an organization conformance pack creation is in progress. *

          *
        • *
        • *

          * CREATE_FAILED when an organization conformance pack creation failed in one or more member accounts * within that organization. *

          *
        • *
        • *

          * DELETE_FAILED when an organization conformance pack deletion failed in one or more member accounts * within that organization. *

          *
        • *
        • *

          * DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress. *

          *
        • *
        • *

          * DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from all the * member accounts. *

          *
        • *
        • *

          * UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all the * member accounts. *

          *
        • *
        • *

          * UPDATE_IN_PROGRESS when an organization conformance pack update is in progress. *

          *
        • *
        • *

          * UPDATE_FAILED when an organization conformance pack update failed in one or more member accounts * within that organization. *

          *
        • *
        * * @param status * Indicates deployment status of an organization conformance pack. When management account calls * PutOrganizationConformancePack for the first time, conformance pack status is created in all the member * accounts. When management account calls PutOrganizationConformancePack for the second time, conformance * pack status is updated in all the member accounts. Additionally, conformance pack status is updated when * one or more member accounts join or leave an organization. Conformance pack status is deleted when the * management account deletes OrganizationConformancePack in all the member accounts and disables service * access for config-multiaccountsetup.amazonaws.com.

        *

        * Config sets the state of the conformance pack to: *

        *
          *
        • *

          * CREATE_SUCCESSFUL when an organization conformance pack has been successfully created in all * the member accounts. *

          *
        • *
        • *

          * CREATE_IN_PROGRESS when an organization conformance pack creation is in progress. *

          *
        • *
        • *

          * CREATE_FAILED when an organization conformance pack creation failed in one or more member * accounts within that organization. *

          *
        • *
        • *

          * DELETE_FAILED when an organization conformance pack deletion failed in one or more member * accounts within that organization. *

          *
        • *
        • *

          * DELETE_IN_PROGRESS when an organization conformance pack deletion is in progress. *

          *
        • *
        • *

          * DELETE_SUCCESSFUL when an organization conformance pack has been successfully deleted from * all the member accounts. *

          *
        • *
        • *

          * UPDATE_SUCCESSFUL when an organization conformance pack has been successfully updated in all * the member accounts. *

          *
        • *
        • *

          * UPDATE_IN_PROGRESS when an organization conformance pack update is in progress. *

          *
        • *
        • *

          * UPDATE_FAILED when an organization conformance pack update failed in one or more member * accounts within that organization. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see OrganizationResourceStatus */ public OrganizationConformancePackStatus withStatus(OrganizationResourceStatus status) { this.status = status.toString(); return this; } /** *

          * An error code that is returned when organization conformance pack creation or deletion has failed in a member * account. *

          * * @param errorCode * An error code that is returned when organization conformance pack creation or deletion has failed in a * member account. */ public void setErrorCode(String errorCode) { this.errorCode = errorCode; } /** *

          * An error code that is returned when organization conformance pack creation or deletion has failed in a member * account. *

          * * @return An error code that is returned when organization conformance pack creation or deletion has failed in a * member account. */ public String getErrorCode() { return this.errorCode; } /** *

          * An error code that is returned when organization conformance pack creation or deletion has failed in a member * account. *

          * * @param errorCode * An error code that is returned when organization conformance pack creation or deletion has failed in a * member account. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationConformancePackStatus withErrorCode(String errorCode) { setErrorCode(errorCode); return this; } /** *

          * An error message indicating that organization conformance pack creation or deletion failed due to an error. *

          * * @param errorMessage * An error message indicating that organization conformance pack creation or deletion failed due to an * error. */ public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** *

          * An error message indicating that organization conformance pack creation or deletion failed due to an error. *

          * * @return An error message indicating that organization conformance pack creation or deletion failed due to an * error. */ public String getErrorMessage() { return this.errorMessage; } /** *

          * An error message indicating that organization conformance pack creation or deletion failed due to an error. *

          * * @param errorMessage * An error message indicating that organization conformance pack creation or deletion failed due to an * error. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationConformancePackStatus withErrorMessage(String errorMessage) { setErrorMessage(errorMessage); return this; } /** *

          * The timestamp of the last update. *

          * * @param lastUpdateTime * The timestamp of the last update. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** *

          * The timestamp of the last update. *

          * * @return The timestamp of the last update. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** *

          * The timestamp of the last update. *

          * * @param lastUpdateTime * The timestamp of the last update. * @return Returns a reference to this object so that method calls can be chained together. */ public OrganizationConformancePackStatus withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); 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 (getOrganizationConformancePackName() != null) sb.append("OrganizationConformancePackName: ").append(getOrganizationConformancePackName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getErrorCode() != null) sb.append("ErrorCode: ").append(getErrorCode()).append(","); if (getErrorMessage() != null) sb.append("ErrorMessage: ").append(getErrorMessage()).append(","); if (getLastUpdateTime() != null) sb.append("LastUpdateTime: ").append(getLastUpdateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OrganizationConformancePackStatus == false) return false; OrganizationConformancePackStatus other = (OrganizationConformancePackStatus) obj; if (other.getOrganizationConformancePackName() == null ^ this.getOrganizationConformancePackName() == null) return false; if (other.getOrganizationConformancePackName() != null && other.getOrganizationConformancePackName().equals(this.getOrganizationConformancePackName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getErrorCode() == null ^ this.getErrorCode() == null) return false; if (other.getErrorCode() != null && other.getErrorCode().equals(this.getErrorCode()) == false) return false; if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) return false; if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == false) return false; if (other.getLastUpdateTime() == null ^ this.getLastUpdateTime() == null) return false; if (other.getLastUpdateTime() != null && other.getLastUpdateTime().equals(this.getLastUpdateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOrganizationConformancePackName() == null) ? 0 : getOrganizationConformancePackName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode()); return hashCode; } @Override public OrganizationConformancePackStatus clone() { try { return (OrganizationConformancePackStatus) 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.config.model.transform.OrganizationConformancePackStatusMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy