@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DeploymentTargets extends Object implements Serializable, Cloneable
[Service-managed permissions] The AWS Organizations accounts to which StackSets deploys. StackSets does not deploy stack instances to the organization management account, even if the organization management account is in your organization or in an OU in your organization.
For update operations, you can specify either Accounts
or OrganizationalUnitIds
. For create
and delete operations, specify OrganizationalUnitIds
.
Constructor and Description |
---|
DeploymentTargets() |
Modifier and Type | Method and Description |
---|---|
DeploymentTargets |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAccounts()
The names of one or more AWS accounts for which you want to deploy stack set updates.
|
String |
getAccountsUrl()
Returns the value of the AccountsUrl property.
|
List<String> |
getOrganizationalUnitIds()
The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
|
int |
hashCode() |
void |
setAccounts(Collection<String> accounts)
The names of one or more AWS accounts for which you want to deploy stack set updates.
|
void |
setAccountsUrl(String accountsUrl)
Returns the value of the AccountsUrl property.
|
void |
setOrganizationalUnitIds(Collection<String> organizationalUnitIds)
The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
|
String |
toString()
Returns a string representation of this object.
|
DeploymentTargets |
withAccounts(Collection<String> accounts)
The names of one or more AWS accounts for which you want to deploy stack set updates.
|
DeploymentTargets |
withAccounts(String... accounts)
The names of one or more AWS accounts for which you want to deploy stack set updates.
|
DeploymentTargets |
withAccountsUrl(String accountsUrl)
Returns the value of the AccountsUrl property.
|
DeploymentTargets |
withOrganizationalUnitIds(Collection<String> organizationalUnitIds)
The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
|
DeploymentTargets |
withOrganizationalUnitIds(String... organizationalUnitIds)
The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
|
public List<String> getAccounts()
The names of one or more AWS accounts for which you want to deploy stack set updates.
public void setAccounts(Collection<String> accounts)
The names of one or more AWS accounts for which you want to deploy stack set updates.
accounts
- The names of one or more AWS accounts for which you want to deploy stack set updates.public DeploymentTargets withAccounts(String... accounts)
The names of one or more AWS accounts for which you want to deploy stack set updates.
NOTE: This method appends the values to the existing list (if any). Use
setAccounts(java.util.Collection)
or withAccounts(java.util.Collection)
if you want to override
the existing values.
accounts
- The names of one or more AWS accounts for which you want to deploy stack set updates.public DeploymentTargets withAccounts(Collection<String> accounts)
The names of one or more AWS accounts for which you want to deploy stack set updates.
accounts
- The names of one or more AWS accounts for which you want to deploy stack set updates.public void setAccountsUrl(String accountsUrl)
Returns the value of the AccountsUrl property.
accountsUrl
- Returns the value of the AccountsUrl property.public String getAccountsUrl()
Returns the value of the AccountsUrl property.
public DeploymentTargets withAccountsUrl(String accountsUrl)
Returns the value of the AccountsUrl property.
accountsUrl
- Returns the value of the AccountsUrl property.public List<String> getOrganizationalUnitIds()
The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
public void setOrganizationalUnitIds(Collection<String> organizationalUnitIds)
The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
organizationalUnitIds
- The organization root ID or organizational unit (OU) IDs to which StackSets deploys.public DeploymentTargets withOrganizationalUnitIds(String... organizationalUnitIds)
The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
NOTE: This method appends the values to the existing list (if any). Use
setOrganizationalUnitIds(java.util.Collection)
or
withOrganizationalUnitIds(java.util.Collection)
if you want to override the existing values.
organizationalUnitIds
- The organization root ID or organizational unit (OU) IDs to which StackSets deploys.public DeploymentTargets withOrganizationalUnitIds(Collection<String> organizationalUnitIds)
The organization root ID or organizational unit (OU) IDs to which StackSets deploys.
organizationalUnitIds
- The organization root ID or organizational unit (OU) IDs to which StackSets deploys.public String toString()
toString
in class Object
Object.toString()
public DeploymentTargets clone()