public java.util.Map<String, String> getEnvironment() {
        return environment;
    }
<p>
An environment variable that you can pass into the SageMaker <a
href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html">CreateTrainingJob</a>
API. You can use an existing <a href=
"https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-Environment"
>environment variable from the training container</a> or use your own. See <a
href="https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics-variables.html"
>Define metrics and variables</a> for more information.
</p>
<note>
<p>
The maximum number of items specified for <code>Map Entries</code> refers to the maximum number of environment
variables for each <code>TrainingJobDefinition</code> and also the maximum for the hyperparameter tuning job
itself. That is, the sum of the number of environment variables for all the training job definitions can't exceed
the maximum number specified.
</p>
</note>

@return An environment variable that you can pass into the SageMaker <a
        href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html"
        >CreateTrainingJob</a> API. You can use an existing <a href=
        "https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTrainingJob.html#sagemaker-CreateTrainingJob-request-Environment"
        >environment variable from the training container</a> or use your own. See <a href=
        "https://docs.aws.amazon.com/sagemaker/latest/dg/automatic-model-tuning-define-metrics-variables.html"
        >Define metrics and variables</a> for more information.</p> <note>
        <p>
        The maximum number of items specified for <code>Map Entries</code> refers to the maximum number of
        environment variables for each <code>TrainingJobDefinition</code> and also the maximum for the
        hyperparameter tuning job itself. That is, the sum of the number of environment variables for all the
        training job definitions can't exceed the maximum number specified.
        </p>
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/HyperParameterTrainingJobDefinition.java