public DisassociateResourceShareRequest withPrincipals(String... principals) {
        if (this.principals == null) {
            setPrincipals(new java.util.ArrayList<String>(principals.length));
        }
        for (String ele : principals) {
            this.principals.add(ele);
        }
        return this;
    }
<p>
Specifies a list of one or more principals that no longer are to have access to the resources in this resource
share.
</p>
<p>
You can include the following values:
</p>
<ul>
<li>
<p>
An Amazon Web Services account ID, for example: <code>123456789012</code>
</p>
</li>
<li>
<p>
An <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name
(ARN)</a> of an organization in Organizations, for example:
<code>organizations::123456789012:organization/o-exampleorgid</code>
</p>
</li>
<li>
<p>
An ARN of an organizational unit (OU) in Organizations, for example:
<code>organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123</code>
</p>
</li>
<li>
<p>
An ARN of an IAM role, for example: <code>iam::123456789012:role/rolename</code>
</p>
</li>
<li>
<p>
An ARN of an IAM user, for example: <code>iam::123456789012user/username</code>
</p>
</li>
</ul>
<note>
<p>
Not all resource types can be shared with IAM roles and users. For more information, see <a href=
"https://docs.aws.amazon.com/ram/latest/userguide/permissions.html#permissions-rbp-supported-resource-types"
>Sharing with IAM roles and users</a> in the <i>Resource Access Manager User Guide</i>.
</p>
</note>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPrincipals(java.util.Collection)} or {@link #withPrincipals(java.util.Collection)} if you want to
override the existing values.
</p>

@param principals
       Specifies a list of one or more principals that no longer are to have access to the resources in this
       resource share.</p>
       <p>
       You can include the following values:
       </p>
       <ul>
       <li>
       <p>
       An Amazon Web Services account ID, for example: <code>123456789012</code>
       </p>
       </li>
       <li>
       <p>
       An <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource
       Name (ARN)</a> of an organization in Organizations, for example:
       <code>organizations::123456789012:organization/o-exampleorgid</code>
       </p>
       </li>
       <li>
       <p>
       An ARN of an organizational unit (OU) in Organizations, for example:
       <code>organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123</code>
       </p>
       </li>
       <li>
       <p>
       An ARN of an IAM role, for example: <code>iam::123456789012:role/rolename</code>
       </p>
       </li>
       <li>
       <p>
       An ARN of an IAM user, for example: <code>iam::123456789012user/username</code>
       </p>
       </li>
       </ul>
       <note>
       <p>
       Not all resource types can be shared with IAM roles and users. For more information, see <a href=
       "https://docs.aws.amazon.com/ram/latest/userguide/permissions.html#permissions-rbp-supported-resource-types"
       >Sharing with IAM roles and users</a> in the <i>Resource Access Manager User Guide</i>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ram/src/main/java/com/amazonaws/services/ram/model/DisassociateResourceShareRequest.java