public Observation withCodeDeployState(String codeDeployState) {
        setCodeDeployState(codeDeployState);
        return this;
    }
<p>
The status of the CodeDeploy deployment, for example <code>SUCCESS</code> or <code> FAILURE</code>.
</p>

@param codeDeployState
       The status of the CodeDeploy deployment, for example <code>SUCCESS</code> or <code> FAILURE</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-applicationinsights/src/main/java/com/amazonaws/services/applicationinsights/model/Observation.java