public void setVersionAdvertised(boolean versionAdvertised) {
    this.versionAdvertised = versionAdvertised;
  }
Set whether the component needs to advertise a version.

@param versionAdvertised whether the component needs to advertise a version
ambari-server/src/main/java/org/apache/ambari/server/controller/StackServiceComponentResponse.java