public void setStateMessage(String stateMessage) {
        this.stateMessage = stateMessage;
    }
<p>
Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example, if the
proper KMS permissions are not obtained) this field displays error state details to help you diagnose why the
error occurred. This parameter is only returned by <a>DescribeSnapshots</a>.
</p>

@param stateMessage
       Encrypted Amazon EBS snapshots are copied asynchronously. If a snapshot copy operation fails (for example,
       if the proper KMS permissions are not obtained) this field displays error state details to help you
       diagnose why the error occurred. This parameter is only returned by <a>DescribeSnapshots</a>.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/Snapshot.java