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

com.amazonaws.services.simplesystemsmanagement.model.ServiceSetting 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.simplesystemsmanagement.model;

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

/**
 * 

* The service setting data structure. *

*

* ServiceSetting is an account-level setting for an Amazon Web Services service. This setting defines how * a user interacts with or uses a service or a feature of a service. For example, if an Amazon Web Services service * charges money to the account based on feature or service usage, then the Amazon Web Services service team might * create a default setting of "false". This means the user can't use this feature unless they change the setting to * "true" and intentionally opt in for a paid feature. *

*

* Services map a SettingId object to a setting value. Amazon Web Services services teams define the * default value for a SettingId. You can't create a new SettingId, but you can overwrite the * default value if you have the ssm:UpdateServiceSetting permission for the setting. Use the * UpdateServiceSetting API operation to change the default setting. Or, use the ResetServiceSetting to * change the value back to the original value defined by the Amazon Web Services service team. *

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

* The ID of the service setting. *

*/ private String settingId; /** *

* The value of the service setting. *

*/ private String settingValue; /** *

* The last time the service setting was modified. *

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

* The ARN of the last modified user. This field is populated only if the setting value was overwritten. *

*/ private String lastModifiedUser; /** *

* The ARN of the service setting. *

*/ private String aRN; /** *

* The status of the service setting. The value can be Default, Customized or PendingUpdate. *

*
    *
  • *

    * Default: The current setting uses a default value provisioned by the Amazon Web Services service team. *

    *
  • *
  • *

    * Customized: The current setting use a custom value specified by the customer. *

    *
  • *
  • *

    * PendingUpdate: The current setting uses a default or custom value, but a setting change request is pending * approval. *

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

* The ID of the service setting. *

* * @param settingId * The ID of the service setting. */ public void setSettingId(String settingId) { this.settingId = settingId; } /** *

* The ID of the service setting. *

* * @return The ID of the service setting. */ public String getSettingId() { return this.settingId; } /** *

* The ID of the service setting. *

* * @param settingId * The ID of the service setting. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSetting withSettingId(String settingId) { setSettingId(settingId); return this; } /** *

* The value of the service setting. *

* * @param settingValue * The value of the service setting. */ public void setSettingValue(String settingValue) { this.settingValue = settingValue; } /** *

* The value of the service setting. *

* * @return The value of the service setting. */ public String getSettingValue() { return this.settingValue; } /** *

* The value of the service setting. *

* * @param settingValue * The value of the service setting. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSetting withSettingValue(String settingValue) { setSettingValue(settingValue); return this; } /** *

* The last time the service setting was modified. *

* * @param lastModifiedDate * The last time the service setting was modified. */ public void setLastModifiedDate(java.util.Date lastModifiedDate) { this.lastModifiedDate = lastModifiedDate; } /** *

* The last time the service setting was modified. *

* * @return The last time the service setting was modified. */ public java.util.Date getLastModifiedDate() { return this.lastModifiedDate; } /** *

* The last time the service setting was modified. *

* * @param lastModifiedDate * The last time the service setting was modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSetting withLastModifiedDate(java.util.Date lastModifiedDate) { setLastModifiedDate(lastModifiedDate); return this; } /** *

* The ARN of the last modified user. This field is populated only if the setting value was overwritten. *

* * @param lastModifiedUser * The ARN of the last modified user. This field is populated only if the setting value was overwritten. */ public void setLastModifiedUser(String lastModifiedUser) { this.lastModifiedUser = lastModifiedUser; } /** *

* The ARN of the last modified user. This field is populated only if the setting value was overwritten. *

* * @return The ARN of the last modified user. This field is populated only if the setting value was overwritten. */ public String getLastModifiedUser() { return this.lastModifiedUser; } /** *

* The ARN of the last modified user. This field is populated only if the setting value was overwritten. *

* * @param lastModifiedUser * The ARN of the last modified user. This field is populated only if the setting value was overwritten. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSetting withLastModifiedUser(String lastModifiedUser) { setLastModifiedUser(lastModifiedUser); return this; } /** *

* The ARN of the service setting. *

* * @param aRN * The ARN of the service setting. */ public void setARN(String aRN) { this.aRN = aRN; } /** *

* The ARN of the service setting. *

* * @return The ARN of the service setting. */ public String getARN() { return this.aRN; } /** *

* The ARN of the service setting. *

* * @param aRN * The ARN of the service setting. * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSetting withARN(String aRN) { setARN(aRN); return this; } /** *

* The status of the service setting. The value can be Default, Customized or PendingUpdate. *

*
    *
  • *

    * Default: The current setting uses a default value provisioned by the Amazon Web Services service team. *

    *
  • *
  • *

    * Customized: The current setting use a custom value specified by the customer. *

    *
  • *
  • *

    * PendingUpdate: The current setting uses a default or custom value, but a setting change request is pending * approval. *

    *
  • *
* * @param status * The status of the service setting. The value can be Default, Customized or PendingUpdate.

*
    *
  • *

    * Default: The current setting uses a default value provisioned by the Amazon Web Services service team. *

    *
  • *
  • *

    * Customized: The current setting use a custom value specified by the customer. *

    *
  • *
  • *

    * PendingUpdate: The current setting uses a default or custom value, but a setting change request is pending * approval. *

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

    * The status of the service setting. The value can be Default, Customized or PendingUpdate. *

    *
      *
    • *

      * Default: The current setting uses a default value provisioned by the Amazon Web Services service team. *

      *
    • *
    • *

      * Customized: The current setting use a custom value specified by the customer. *

      *
    • *
    • *

      * PendingUpdate: The current setting uses a default or custom value, but a setting change request is pending * approval. *

      *
    • *
    * * @return The status of the service setting. The value can be Default, Customized or PendingUpdate.

    *
      *
    • *

      * Default: The current setting uses a default value provisioned by the Amazon Web Services service team. *

      *
    • *
    • *

      * Customized: The current setting use a custom value specified by the customer. *

      *
    • *
    • *

      * PendingUpdate: The current setting uses a default or custom value, but a setting change request is * pending approval. *

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

      * The status of the service setting. The value can be Default, Customized or PendingUpdate. *

      *
        *
      • *

        * Default: The current setting uses a default value provisioned by the Amazon Web Services service team. *

        *
      • *
      • *

        * Customized: The current setting use a custom value specified by the customer. *

        *
      • *
      • *

        * PendingUpdate: The current setting uses a default or custom value, but a setting change request is pending * approval. *

        *
      • *
      * * @param status * The status of the service setting. The value can be Default, Customized or PendingUpdate.

      *
        *
      • *

        * Default: The current setting uses a default value provisioned by the Amazon Web Services service team. *

        *
      • *
      • *

        * Customized: The current setting use a custom value specified by the customer. *

        *
      • *
      • *

        * PendingUpdate: The current setting uses a default or custom value, but a setting change request is pending * approval. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public ServiceSetting withStatus(String status) { setStatus(status); 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 (getSettingId() != null) sb.append("SettingId: ").append(getSettingId()).append(","); if (getSettingValue() != null) sb.append("SettingValue: ").append(getSettingValue()).append(","); if (getLastModifiedDate() != null) sb.append("LastModifiedDate: ").append(getLastModifiedDate()).append(","); if (getLastModifiedUser() != null) sb.append("LastModifiedUser: ").append(getLastModifiedUser()).append(","); if (getARN() != null) sb.append("ARN: ").append(getARN()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServiceSetting == false) return false; ServiceSetting other = (ServiceSetting) obj; if (other.getSettingId() == null ^ this.getSettingId() == null) return false; if (other.getSettingId() != null && other.getSettingId().equals(this.getSettingId()) == false) return false; if (other.getSettingValue() == null ^ this.getSettingValue() == null) return false; if (other.getSettingValue() != null && other.getSettingValue().equals(this.getSettingValue()) == false) return false; if (other.getLastModifiedDate() == null ^ this.getLastModifiedDate() == null) return false; if (other.getLastModifiedDate() != null && other.getLastModifiedDate().equals(this.getLastModifiedDate()) == false) return false; if (other.getLastModifiedUser() == null ^ this.getLastModifiedUser() == null) return false; if (other.getLastModifiedUser() != null && other.getLastModifiedUser().equals(this.getLastModifiedUser()) == false) return false; if (other.getARN() == null ^ this.getARN() == null) return false; if (other.getARN() != null && other.getARN().equals(this.getARN()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSettingId() == null) ? 0 : getSettingId().hashCode()); hashCode = prime * hashCode + ((getSettingValue() == null) ? 0 : getSettingValue().hashCode()); hashCode = prime * hashCode + ((getLastModifiedDate() == null) ? 0 : getLastModifiedDate().hashCode()); hashCode = prime * hashCode + ((getLastModifiedUser() == null) ? 0 : getLastModifiedUser().hashCode()); hashCode = prime * hashCode + ((getARN() == null) ? 0 : getARN().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public ServiceSetting clone() { try { return (ServiceSetting) 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.simplesystemsmanagement.model.transform.ServiceSettingMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy