public OutputArtifact withName(String name) {
        setName(name);
        return this;
    }
<p>
The name of the output of an artifact, such as "My App".
</p>
<p>
The input artifact of an action must exactly match the output artifact declared in a preceding action, but the
input artifact does not have to be the next action in strict sequence from the action that provided the output
artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different
following actions.
</p>
<p>
Output artifact names must be unique within a pipeline.
</p>

@param name
       The name of the output of an artifact, such as "My App".</p>
       <p>
       The input artifact of an action must exactly match the output artifact declared in a preceding action, but
       the input artifact does not have to be the next action in strict sequence from the action that provided
       the output artifact. Actions in parallel can declare different output artifacts, which are in turn
       consumed by different following actions.
       </p>
       <p>
       Output artifact names must be unique within a pipeline.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codepipeline/src/main/java/com/amazonaws/services/codepipeline/model/OutputArtifact.java