public CreateApplicationRequest addWorkerTypeSpecificationsEntry(String key, WorkerTypeSpecificationInput value) {
        if (null == this.workerTypeSpecifications) {
            this.workerTypeSpecifications = new java.util.HashMap<String, WorkerTypeSpecificationInput>();
        }
        if (this.workerTypeSpecifications.containsKey(key))
            throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
        this.workerTypeSpecifications.put(key, value);
        return this;
    }
Add a single WorkerTypeSpecifications entry

@see CreateApplicationRequest#withWorkerTypeSpecifications
@returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emrserverless/src/main/java/com/amazonaws/services/emrserverless/model/CreateApplicationRequest.java