/** * <p> * A list of tags that you want to attach to the newly created user. Each tag consists of a key name and an * associated value. For more information about tagging, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM Identities</a> in the <i>IAM User * Guide</i>. * </p> * <note> * <p> * If any one of the tags is invalid or if you exceed the allowed number of tags per user, then the entire request * fails and the user is not created. * </p> * </note> * * @param tags * A list of tags that you want to attach to the newly created user. Each tag consists of a key name and an * associated value. For more information about tagging, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM Identities</a> in the * <i>IAM User Guide</i>.</p> <note> * <p> * If any one of the tags is invalid or if you exceed the allowed number of tags per user, then the entire * request fails and the user is not created. * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserRequest withTags(java.util.Collection<Tag> tags) { setTags(tags); return this; }
setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length));
/** * <p> * A list of tags that you want to attach to the newly created user. Each tag consists of a key name and an * associated value. For more information about tagging, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM Identities</a> in the <i>IAM User * Guide</i>. * </p> * <note> * <p> * If any one of the tags is invalid or if you exceed the allowed number of tags per user, then the entire request * fails and the user is not created. * </p> * </note> * * @param tags * A list of tags that you want to attach to the newly created user. Each tag consists of a key name and an * associated value. For more information about tagging, see <a * href="http://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html">Tagging IAM Identities</a> in the * <i>IAM User Guide</i>.</p> <note> * <p> * If any one of the tags is invalid or if you exceed the allowed number of tags per user, then the entire * request fails and the user is not created. * </p> * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserRequest withTags(java.util.Collection<Tag> tags) { setTags(tags); return this; }
setTags(new com.amazonaws.internal.SdkInternalList<Tag>(tags.length));