public ResolvedArtifact withType(ArtifactsType type) {
        this.type = type.toString();
        return this;
    }
<p>
Specifies the type of artifact.
</p>

@param type
       Specifies the type of artifact.
@return Returns a reference to this object so that method calls can be chained together.
@see ArtifactsType
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/ResolvedArtifact.java