public CreateFacetRequest withObjectType(String objectType) {
        setObjectType(objectType);
        return this;
    }
<p>
Specifies whether a given object created from this facet is of type node, leaf node, policy or index.
</p>
<ul>
<li>
<p>
Node: Can have multiple children but one parent.
</p>
</li>
</ul>
<ul>
<li>
<p>
Leaf node: Cannot have children but can have multiple parents.
</p>
</li>
</ul>
<ul>
<li>
<p>
Policy: Allows you to store a policy document and policy type. For more information, see <a href=
"https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies"
>Policies</a>.
</p>
</li>
</ul>
<ul>
<li>
<p>
Index: Can be created with the Index API.
</p>
</li>
</ul>

@param objectType
       Specifies whether a given object created from this facet is of type node, leaf node, policy or index.</p>
       <ul>
       <li>
       <p>
       Node: Can have multiple children but one parent.
       </p>
       </li>
       </ul>
       <ul>
       <li>
       <p>
       Leaf node: Cannot have children but can have multiple parents.
       </p>
       </li>
       </ul>
       <ul>
       <li>
       <p>
       Policy: Allows you to store a policy document and policy type. For more information, see <a href=
       "https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies"
       >Policies</a>.
       </p>
       </li>
       </ul>
       <ul>
       <li>
       <p>
       Index: Can be created with the Index API.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see ObjectType
aws-java-sdk-clouddirectory/src/main/java/com/amazonaws/services/clouddirectory/model/CreateFacetRequest.java