/* * Copyright 2018-2023 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.AmazonWebServiceRequest; /** *

* The request body of the UpdateServiceSetting API operation. *

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

* The Amazon Resource Name (ARN) of the service setting to update. For example, * arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled. The * setting ID can be one of the following. *

* * *

* Permissions to update the /ssm/managed-instance/default-ec2-instance-management-role setting should * only be provided to administrators. Implement least privilege access when allowing individuals to configure or * modify the Default Host Management Configuration. *

*
*/ private String settingId; /** *

* The new value to specify for the service setting. The following list specifies the available values for each * setting. *

* */ private String settingValue; /** *

* The Amazon Resource Name (ARN) of the service setting to update. For example, * arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled. The * setting ID can be one of the following. *

* * *

* Permissions to update the /ssm/managed-instance/default-ec2-instance-management-role setting should * only be provided to administrators. Implement least privilege access when allowing individuals to configure or * modify the Default Host Management Configuration. *

*
* * @param settingId * The Amazon Resource Name (ARN) of the service setting to update. For example, * arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled * . The setting ID can be one of the following.

* * *

* Permissions to update the /ssm/managed-instance/default-ec2-instance-management-role setting * should only be provided to administrators. Implement least privilege access when allowing individuals to * configure or modify the Default Host Management Configuration. *

*/ public void setSettingId(String settingId) { this.settingId = settingId; } /** *

* The Amazon Resource Name (ARN) of the service setting to update. For example, * arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled. The * setting ID can be one of the following. *

* * *

* Permissions to update the /ssm/managed-instance/default-ec2-instance-management-role setting should * only be provided to administrators. Implement least privilege access when allowing individuals to configure or * modify the Default Host Management Configuration. *

*
* * @return The Amazon Resource Name (ARN) of the service setting to update. For example, * arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled * . The setting ID can be one of the following.

* * *

* Permissions to update the /ssm/managed-instance/default-ec2-instance-management-role setting * should only be provided to administrators. Implement least privilege access when allowing individuals to * configure or modify the Default Host Management Configuration. *

*/ public String getSettingId() { return this.settingId; } /** *

* The Amazon Resource Name (ARN) of the service setting to update. For example, * arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled. The * setting ID can be one of the following. *

* * *

* Permissions to update the /ssm/managed-instance/default-ec2-instance-management-role setting should * only be provided to administrators. Implement least privilege access when allowing individuals to configure or * modify the Default Host Management Configuration. *

*
* * @param settingId * The Amazon Resource Name (ARN) of the service setting to update. For example, * arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled * . The setting ID can be one of the following.

* * *

* Permissions to update the /ssm/managed-instance/default-ec2-instance-management-role setting * should only be provided to administrators. Implement least privilege access when allowing individuals to * configure or modify the Default Host Management Configuration. *

* @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServiceSettingRequest withSettingId(String settingId) { setSettingId(settingId); return this; } /** *

* The new value to specify for the service setting. The following list specifies the available values for each * setting. *

*
    *
  • *

    * /ssm/managed-instance/default-ec2-instance-management-role: The name of an IAM role *

    *
  • *
  • *

    * /ssm/automation/customer-script-log-destination: CloudWatch *

    *
  • *
  • *

    * /ssm/automation/customer-script-log-group-name: The name of an Amazon CloudWatch Logs log group *

    *
  • *
  • *

    * /ssm/documents/console/public-sharing-permission: Enable or Disable *

    *
  • *
  • *

    * /ssm/managed-instance/activation-tier: standard or advanced *

    *
  • *
  • *

    * /ssm/opsinsights/opscenter: Enabled or Disabled *

    *
  • *
  • *

    * /ssm/parameter-store/default-parameter-tier: Standard, Advanced, * Intelligent-Tiering *

    *
  • *
  • *

    * /ssm/parameter-store/high-throughput-enabled: true or false *

    *
  • *
* * @param settingValue * The new value to specify for the service setting. The following list specifies the available values for * each setting.

*
    *
  • *

    * /ssm/managed-instance/default-ec2-instance-management-role: The name of an IAM role *

    *
  • *
  • *

    * /ssm/automation/customer-script-log-destination: CloudWatch *

    *
  • *
  • *

    * /ssm/automation/customer-script-log-group-name: The name of an Amazon CloudWatch Logs log * group *

    *
  • *
  • *

    * /ssm/documents/console/public-sharing-permission: Enable or Disable *

    *
  • *
  • *

    * /ssm/managed-instance/activation-tier: standard or advanced *

    *
  • *
  • *

    * /ssm/opsinsights/opscenter: Enabled or Disabled *

    *
  • *
  • *

    * /ssm/parameter-store/default-parameter-tier: Standard, Advanced, * Intelligent-Tiering *

    *
  • *
  • *

    * /ssm/parameter-store/high-throughput-enabled: true or false *

    *
  • */ public void setSettingValue(String settingValue) { this.settingValue = settingValue; } /** *

    * The new value to specify for the service setting. The following list specifies the available values for each * setting. *

    *
      *
    • *

      * /ssm/managed-instance/default-ec2-instance-management-role: The name of an IAM role *

      *
    • *
    • *

      * /ssm/automation/customer-script-log-destination: CloudWatch *

      *
    • *
    • *

      * /ssm/automation/customer-script-log-group-name: The name of an Amazon CloudWatch Logs log group *

      *
    • *
    • *

      * /ssm/documents/console/public-sharing-permission: Enable or Disable *

      *
    • *
    • *

      * /ssm/managed-instance/activation-tier: standard or advanced *

      *
    • *
    • *

      * /ssm/opsinsights/opscenter: Enabled or Disabled *

      *
    • *
    • *

      * /ssm/parameter-store/default-parameter-tier: Standard, Advanced, * Intelligent-Tiering *

      *
    • *
    • *

      * /ssm/parameter-store/high-throughput-enabled: true or false *

      *
    • *
    * * @return The new value to specify for the service setting. The following list specifies the available values for * each setting.

    *
      *
    • *

      * /ssm/managed-instance/default-ec2-instance-management-role: The name of an IAM role *

      *
    • *
    • *

      * /ssm/automation/customer-script-log-destination: CloudWatch *

      *
    • *
    • *

      * /ssm/automation/customer-script-log-group-name: The name of an Amazon CloudWatch Logs log * group *

      *
    • *
    • *

      * /ssm/documents/console/public-sharing-permission: Enable or * Disable *

      *
    • *
    • *

      * /ssm/managed-instance/activation-tier: standard or advanced *

      *
    • *
    • *

      * /ssm/opsinsights/opscenter: Enabled or Disabled *

      *
    • *
    • *

      * /ssm/parameter-store/default-parameter-tier: Standard, Advanced, * Intelligent-Tiering *

      *
    • *
    • *

      * /ssm/parameter-store/high-throughput-enabled: true or false *

      *
    • */ public String getSettingValue() { return this.settingValue; } /** *

      * The new value to specify for the service setting. The following list specifies the available values for each * setting. *

      *
        *
      • *

        * /ssm/managed-instance/default-ec2-instance-management-role: The name of an IAM role *

        *
      • *
      • *

        * /ssm/automation/customer-script-log-destination: CloudWatch *

        *
      • *
      • *

        * /ssm/automation/customer-script-log-group-name: The name of an Amazon CloudWatch Logs log group *

        *
      • *
      • *

        * /ssm/documents/console/public-sharing-permission: Enable or Disable *

        *
      • *
      • *

        * /ssm/managed-instance/activation-tier: standard or advanced *

        *
      • *
      • *

        * /ssm/opsinsights/opscenter: Enabled or Disabled *

        *
      • *
      • *

        * /ssm/parameter-store/default-parameter-tier: Standard, Advanced, * Intelligent-Tiering *

        *
      • *
      • *

        * /ssm/parameter-store/high-throughput-enabled: true or false *

        *
      • *
      * * @param settingValue * The new value to specify for the service setting. The following list specifies the available values for * each setting.

      *
        *
      • *

        * /ssm/managed-instance/default-ec2-instance-management-role: The name of an IAM role *

        *
      • *
      • *

        * /ssm/automation/customer-script-log-destination: CloudWatch *

        *
      • *
      • *

        * /ssm/automation/customer-script-log-group-name: The name of an Amazon CloudWatch Logs log * group *

        *
      • *
      • *

        * /ssm/documents/console/public-sharing-permission: Enable or Disable *

        *
      • *
      • *

        * /ssm/managed-instance/activation-tier: standard or advanced *

        *
      • *
      • *

        * /ssm/opsinsights/opscenter: Enabled or Disabled *

        *
      • *
      • *

        * /ssm/parameter-store/default-parameter-tier: Standard, Advanced, * Intelligent-Tiering *

        *
      • *
      • *

        * /ssm/parameter-store/high-throughput-enabled: true or false *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateServiceSettingRequest withSettingValue(String settingValue) { setSettingValue(settingValue); 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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateServiceSettingRequest == false) return false; UpdateServiceSettingRequest other = (UpdateServiceSettingRequest) 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; 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()); return hashCode; } @Override public UpdateServiceSettingRequest clone() { return (UpdateServiceSettingRequest) super.clone(); } }