public AlternateIdentifier withExternalId(ExternalId externalId) {
        setExternalId(externalId);
        return this;
    }
<p>
The identifier issued to this resource by an external identity provider.
</p>

@param externalId
       The identifier issued to this resource by an external identity provider.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-identitystore/src/main/java/com/amazonaws/services/identitystore/model/AlternateIdentifier.java