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

com.amazonaws.services.servicecatalog.model.ProvisioningPreferences 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.servicecatalog.model;

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

/**
 * 

* The user-defined preferences that will be applied when updating a provisioned product. Not all preferences are * applicable to all provisioned product type *

*

* One or more Amazon Web Services accounts that will have access to the provisioned product. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The Amazon Web Services accounts specified should be within the list of accounts in the STACKSET * constraint. To get the list of accounts in the STACKSET constraint, use the * DescribeProvisioningParameters operation. *

*

* If no values are specified, the default value is all accounts from the STACKSET constraint. *

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

* One or more Amazon Web Services accounts where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified accounts should be within the list of accounts from the STACKSET constraint. To get * the list of accounts in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all acounts from the STACKSET constraint. *

*/ private java.util.List stackSetAccounts; /** *

* One or more Amazon Web Services Regions where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified Regions should be within the list of Regions from the STACKSET constraint. To get the * list of Regions in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all Regions from the STACKSET constraint. *

*/ private java.util.List stackSetRegions; /** *

* The number of accounts, per Region, for which this operation can fail before Service Catalog stops the operation * in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation in any * subsequent Regions. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

*

* The default value is 0 if no value is specified. *

*/ private Integer stackSetFailureToleranceCount; /** *

* The percentage of accounts, per Region, for which this stack operation can fail before Service Catalog stops the * operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation * in any subsequent Regions. *

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the * next whole number. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

*/ private Integer stackSetFailureTolerancePercentage; /** *

* The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of * StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most one more than the * StackSetFailureToleranceCount. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. *

*/ private Integer stackSetMaxConcurrencyCount; /** *

* The maximum percentage of accounts in which to perform this operation at one time. *

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the * next whole number. This is true except in cases where rounding down would result is zero. In this case, Service * Catalog sets the number as 1 instead. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. *

*/ private Integer stackSetMaxConcurrencyPercentage; /** *

* One or more Amazon Web Services accounts where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified accounts should be within the list of accounts from the STACKSET constraint. To get * the list of accounts in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all acounts from the STACKSET constraint. *

* * @return One or more Amazon Web Services accounts where the provisioned product will be available.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified accounts should be within the list of accounts from the STACKSET constraint. * To get the list of accounts in the STACKSET constraint, use the * DescribeProvisioningParameters operation. *

*

* If no values are specified, the default value is all acounts from the STACKSET constraint. */ public java.util.List getStackSetAccounts() { return stackSetAccounts; } /** *

* One or more Amazon Web Services accounts where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified accounts should be within the list of accounts from the STACKSET constraint. To get * the list of accounts in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all acounts from the STACKSET constraint. *

* * @param stackSetAccounts * One or more Amazon Web Services accounts where the provisioned product will be available.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified accounts should be within the list of accounts from the STACKSET constraint. To * get the list of accounts in the STACKSET constraint, use the * DescribeProvisioningParameters operation. *

*

* If no values are specified, the default value is all acounts from the STACKSET constraint. */ public void setStackSetAccounts(java.util.Collection stackSetAccounts) { if (stackSetAccounts == null) { this.stackSetAccounts = null; return; } this.stackSetAccounts = new java.util.ArrayList(stackSetAccounts); } /** *

* One or more Amazon Web Services accounts where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified accounts should be within the list of accounts from the STACKSET constraint. To get * the list of accounts in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all acounts from the STACKSET constraint. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setStackSetAccounts(java.util.Collection)} or {@link #withStackSetAccounts(java.util.Collection)} if you * want to override the existing values. *

* * @param stackSetAccounts * One or more Amazon Web Services accounts where the provisioned product will be available.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified accounts should be within the list of accounts from the STACKSET constraint. To * get the list of accounts in the STACKSET constraint, use the * DescribeProvisioningParameters operation. *

*

* If no values are specified, the default value is all acounts from the STACKSET constraint. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningPreferences withStackSetAccounts(String... stackSetAccounts) { if (this.stackSetAccounts == null) { setStackSetAccounts(new java.util.ArrayList(stackSetAccounts.length)); } for (String ele : stackSetAccounts) { this.stackSetAccounts.add(ele); } return this; } /** *

* One or more Amazon Web Services accounts where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified accounts should be within the list of accounts from the STACKSET constraint. To get * the list of accounts in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all acounts from the STACKSET constraint. *

* * @param stackSetAccounts * One or more Amazon Web Services accounts where the provisioned product will be available.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified accounts should be within the list of accounts from the STACKSET constraint. To * get the list of accounts in the STACKSET constraint, use the * DescribeProvisioningParameters operation. *

*

* If no values are specified, the default value is all acounts from the STACKSET constraint. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningPreferences withStackSetAccounts(java.util.Collection stackSetAccounts) { setStackSetAccounts(stackSetAccounts); return this; } /** *

* One or more Amazon Web Services Regions where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified Regions should be within the list of Regions from the STACKSET constraint. To get the * list of Regions in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all Regions from the STACKSET constraint. *

* * @return One or more Amazon Web Services Regions where the provisioned product will be available.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified Regions should be within the list of Regions from the STACKSET constraint. To * get the list of Regions in the STACKSET constraint, use the * DescribeProvisioningParameters operation. *

*

* If no values are specified, the default value is all Regions from the STACKSET constraint. */ public java.util.List getStackSetRegions() { return stackSetRegions; } /** *

* One or more Amazon Web Services Regions where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified Regions should be within the list of Regions from the STACKSET constraint. To get the * list of Regions in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all Regions from the STACKSET constraint. *

* * @param stackSetRegions * One or more Amazon Web Services Regions where the provisioned product will be available.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified Regions should be within the list of Regions from the STACKSET constraint. To * get the list of Regions in the STACKSET constraint, use the * DescribeProvisioningParameters operation. *

*

* If no values are specified, the default value is all Regions from the STACKSET constraint. */ public void setStackSetRegions(java.util.Collection stackSetRegions) { if (stackSetRegions == null) { this.stackSetRegions = null; return; } this.stackSetRegions = new java.util.ArrayList(stackSetRegions); } /** *

* One or more Amazon Web Services Regions where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified Regions should be within the list of Regions from the STACKSET constraint. To get the * list of Regions in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all Regions from the STACKSET constraint. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setStackSetRegions(java.util.Collection)} or {@link #withStackSetRegions(java.util.Collection)} if you * want to override the existing values. *

* * @param stackSetRegions * One or more Amazon Web Services Regions where the provisioned product will be available.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified Regions should be within the list of Regions from the STACKSET constraint. To * get the list of Regions in the STACKSET constraint, use the * DescribeProvisioningParameters operation. *

*

* If no values are specified, the default value is all Regions from the STACKSET constraint. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningPreferences withStackSetRegions(String... stackSetRegions) { if (this.stackSetRegions == null) { setStackSetRegions(new java.util.ArrayList(stackSetRegions.length)); } for (String ele : stackSetRegions) { this.stackSetRegions.add(ele); } return this; } /** *

* One or more Amazon Web Services Regions where the provisioned product will be available. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified Regions should be within the list of Regions from the STACKSET constraint. To get the * list of Regions in the STACKSET constraint, use the DescribeProvisioningParameters * operation. *

*

* If no values are specified, the default value is all Regions from the STACKSET constraint. *

* * @param stackSetRegions * One or more Amazon Web Services Regions where the provisioned product will be available.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* The specified Regions should be within the list of Regions from the STACKSET constraint. To * get the list of Regions in the STACKSET constraint, use the * DescribeProvisioningParameters operation. *

*

* If no values are specified, the default value is all Regions from the STACKSET constraint. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningPreferences withStackSetRegions(java.util.Collection stackSetRegions) { setStackSetRegions(stackSetRegions); return this; } /** *

* The number of accounts, per Region, for which this operation can fail before Service Catalog stops the operation * in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation in any * subsequent Regions. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

*

* The default value is 0 if no value is specified. *

* * @param stackSetFailureToleranceCount * The number of accounts, per Region, for which this operation can fail before Service Catalog stops the * operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the * operation in any subsequent Regions.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

*

* The default value is 0 if no value is specified. */ public void setStackSetFailureToleranceCount(Integer stackSetFailureToleranceCount) { this.stackSetFailureToleranceCount = stackSetFailureToleranceCount; } /** *

* The number of accounts, per Region, for which this operation can fail before Service Catalog stops the operation * in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation in any * subsequent Regions. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

*

* The default value is 0 if no value is specified. *

* * @return The number of accounts, per Region, for which this operation can fail before Service Catalog stops the * operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the * operation in any subsequent Regions.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

*

* The default value is 0 if no value is specified. */ public Integer getStackSetFailureToleranceCount() { return this.stackSetFailureToleranceCount; } /** *

* The number of accounts, per Region, for which this operation can fail before Service Catalog stops the operation * in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation in any * subsequent Regions. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

*

* The default value is 0 if no value is specified. *

* * @param stackSetFailureToleranceCount * The number of accounts, per Region, for which this operation can fail before Service Catalog stops the * operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the * operation in any subsequent Regions.

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

*

* The default value is 0 if no value is specified. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningPreferences withStackSetFailureToleranceCount(Integer stackSetFailureToleranceCount) { setStackSetFailureToleranceCount(stackSetFailureToleranceCount); return this; } /** *

* The percentage of accounts, per Region, for which this stack operation can fail before Service Catalog stops the * operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation * in any subsequent Regions. *

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the * next whole number. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

* * @param stackSetFailureTolerancePercentage * The percentage of accounts, per Region, for which this stack operation can fail before Service Catalog * stops the operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't * attempt the operation in any subsequent Regions.

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to * the next whole number. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. */ public void setStackSetFailureTolerancePercentage(Integer stackSetFailureTolerancePercentage) { this.stackSetFailureTolerancePercentage = stackSetFailureTolerancePercentage; } /** *

* The percentage of accounts, per Region, for which this stack operation can fail before Service Catalog stops the * operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation * in any subsequent Regions. *

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the * next whole number. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

* * @return The percentage of accounts, per Region, for which this stack operation can fail before Service Catalog * stops the operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't * attempt the operation in any subsequent Regions.

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to * the next whole number. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. */ public Integer getStackSetFailureTolerancePercentage() { return this.stackSetFailureTolerancePercentage; } /** *

* The percentage of accounts, per Region, for which this stack operation can fail before Service Catalog stops the * operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't attempt the operation * in any subsequent Regions. *

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the * next whole number. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. *

* * @param stackSetFailureTolerancePercentage * The percentage of accounts, per Region, for which this stack operation can fail before Service Catalog * stops the operation in that Region. If the operation is stopped in a Region, Service Catalog doesn't * attempt the operation in any subsequent Regions.

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to * the next whole number. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetFailureToleranceCount or * StackSetFailureTolerancePercentage, but not both. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningPreferences withStackSetFailureTolerancePercentage(Integer stackSetFailureTolerancePercentage) { setStackSetFailureTolerancePercentage(stackSetFailureTolerancePercentage); return this; } /** *

* The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of * StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most one more than the * StackSetFailureToleranceCount. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. *

* * @param stackSetMaxConcurrencyCount * The maximum number of accounts in which to perform this operation at one time. This is dependent on the * value of StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most * one more than the StackSetFailureToleranceCount.

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service * throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. */ public void setStackSetMaxConcurrencyCount(Integer stackSetMaxConcurrencyCount) { this.stackSetMaxConcurrencyCount = stackSetMaxConcurrencyCount; } /** *

* The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of * StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most one more than the * StackSetFailureToleranceCount. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. *

* * @return The maximum number of accounts in which to perform this operation at one time. This is dependent on the * value of StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most * one more than the StackSetFailureToleranceCount.

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service * throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. */ public Integer getStackSetMaxConcurrencyCount() { return this.stackSetMaxConcurrencyCount; } /** *

* The maximum number of accounts in which to perform this operation at one time. This is dependent on the value of * StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most one more than the * StackSetFailureToleranceCount. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. *

* * @param stackSetMaxConcurrencyCount * The maximum number of accounts in which to perform this operation at one time. This is dependent on the * value of StackSetFailureToleranceCount. StackSetMaxConcurrentCount is at most * one more than the StackSetFailureToleranceCount.

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service * throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningPreferences withStackSetMaxConcurrencyCount(Integer stackSetMaxConcurrencyCount) { setStackSetMaxConcurrencyCount(stackSetMaxConcurrencyCount); return this; } /** *

* The maximum percentage of accounts in which to perform this operation at one time. *

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the * next whole number. This is true except in cases where rounding down would result is zero. In this case, Service * Catalog sets the number as 1 instead. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. *

* * @param stackSetMaxConcurrencyPercentage * The maximum percentage of accounts in which to perform this operation at one time.

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to * the next whole number. This is true except in cases where rounding down would result is zero. In this * case, Service Catalog sets the number as 1 instead. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service * throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. */ public void setStackSetMaxConcurrencyPercentage(Integer stackSetMaxConcurrencyPercentage) { this.stackSetMaxConcurrencyPercentage = stackSetMaxConcurrencyPercentage; } /** *

* The maximum percentage of accounts in which to perform this operation at one time. *

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the * next whole number. This is true except in cases where rounding down would result is zero. In this case, Service * Catalog sets the number as 1 instead. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. *

* * @return The maximum percentage of accounts in which to perform this operation at one time.

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to * the next whole number. This is true except in cases where rounding down would result is zero. In this * case, Service Catalog sets the number as 1 instead. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service * throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. */ public Integer getStackSetMaxConcurrencyPercentage() { return this.stackSetMaxConcurrencyPercentage; } /** *

* The maximum percentage of accounts in which to perform this operation at one time. *

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to the * next whole number. This is true except in cases where rounding down would result is zero. In this case, Service * Catalog sets the number as 1 instead. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. *

* * @param stackSetMaxConcurrencyPercentage * The maximum percentage of accounts in which to perform this operation at one time.

*

* When calculating the number of accounts based on the specified percentage, Service Catalog rounds down to * the next whole number. This is true except in cases where rounding down would result is zero. In this * case, Service Catalog sets the number as 1 instead. *

*

* Note that this setting lets you specify the maximum for operations. For large deployments, under certain * circumstances the actual number of accounts acted upon concurrently may be lower due to service * throttling. *

*

* Applicable only to a CFN_STACKSET provisioned product type. *

*

* Conditional: You must specify either StackSetMaxConcurrentCount or * StackSetMaxConcurrentPercentage, but not both. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisioningPreferences withStackSetMaxConcurrencyPercentage(Integer stackSetMaxConcurrencyPercentage) { setStackSetMaxConcurrencyPercentage(stackSetMaxConcurrencyPercentage); 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 (getStackSetAccounts() != null) sb.append("StackSetAccounts: ").append(getStackSetAccounts()).append(","); if (getStackSetRegions() != null) sb.append("StackSetRegions: ").append(getStackSetRegions()).append(","); if (getStackSetFailureToleranceCount() != null) sb.append("StackSetFailureToleranceCount: ").append(getStackSetFailureToleranceCount()).append(","); if (getStackSetFailureTolerancePercentage() != null) sb.append("StackSetFailureTolerancePercentage: ").append(getStackSetFailureTolerancePercentage()).append(","); if (getStackSetMaxConcurrencyCount() != null) sb.append("StackSetMaxConcurrencyCount: ").append(getStackSetMaxConcurrencyCount()).append(","); if (getStackSetMaxConcurrencyPercentage() != null) sb.append("StackSetMaxConcurrencyPercentage: ").append(getStackSetMaxConcurrencyPercentage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProvisioningPreferences == false) return false; ProvisioningPreferences other = (ProvisioningPreferences) obj; if (other.getStackSetAccounts() == null ^ this.getStackSetAccounts() == null) return false; if (other.getStackSetAccounts() != null && other.getStackSetAccounts().equals(this.getStackSetAccounts()) == false) return false; if (other.getStackSetRegions() == null ^ this.getStackSetRegions() == null) return false; if (other.getStackSetRegions() != null && other.getStackSetRegions().equals(this.getStackSetRegions()) == false) return false; if (other.getStackSetFailureToleranceCount() == null ^ this.getStackSetFailureToleranceCount() == null) return false; if (other.getStackSetFailureToleranceCount() != null && other.getStackSetFailureToleranceCount().equals(this.getStackSetFailureToleranceCount()) == false) return false; if (other.getStackSetFailureTolerancePercentage() == null ^ this.getStackSetFailureTolerancePercentage() == null) return false; if (other.getStackSetFailureTolerancePercentage() != null && other.getStackSetFailureTolerancePercentage().equals(this.getStackSetFailureTolerancePercentage()) == false) return false; if (other.getStackSetMaxConcurrencyCount() == null ^ this.getStackSetMaxConcurrencyCount() == null) return false; if (other.getStackSetMaxConcurrencyCount() != null && other.getStackSetMaxConcurrencyCount().equals(this.getStackSetMaxConcurrencyCount()) == false) return false; if (other.getStackSetMaxConcurrencyPercentage() == null ^ this.getStackSetMaxConcurrencyPercentage() == null) return false; if (other.getStackSetMaxConcurrencyPercentage() != null && other.getStackSetMaxConcurrencyPercentage().equals(this.getStackSetMaxConcurrencyPercentage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackSetAccounts() == null) ? 0 : getStackSetAccounts().hashCode()); hashCode = prime * hashCode + ((getStackSetRegions() == null) ? 0 : getStackSetRegions().hashCode()); hashCode = prime * hashCode + ((getStackSetFailureToleranceCount() == null) ? 0 : getStackSetFailureToleranceCount().hashCode()); hashCode = prime * hashCode + ((getStackSetFailureTolerancePercentage() == null) ? 0 : getStackSetFailureTolerancePercentage().hashCode()); hashCode = prime * hashCode + ((getStackSetMaxConcurrencyCount() == null) ? 0 : getStackSetMaxConcurrencyCount().hashCode()); hashCode = prime * hashCode + ((getStackSetMaxConcurrencyPercentage() == null) ? 0 : getStackSetMaxConcurrencyPercentage().hashCode()); return hashCode; } @Override public ProvisioningPreferences clone() { try { return (ProvisioningPreferences) 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.servicecatalog.model.transform.ProvisioningPreferencesMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy